<_whitenotifier-5>
[scopehal] sam210723 opened issue #397: 100BASE-FX Decoder - https://git.io/Jty11
<sam210723>
might call it a night there
<sam210723>
all the importer code is in those PRs
<sam210723>
and i added a 100BASE-FX sample as a scope session file
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
sam210723 has quit [Read error: Connection reset by peer]
sam210723 has joined #scopehal
<azonenberg>
Great
<azonenberg>
I'll have a look in a few
juli966 has joined #scopehal
<azonenberg>
sam210723: have a look at lib/scopehal/scopehal.cpp#604, ReadFile
<azonenberg>
that basically does what your read function does, no sense adding a new one
<azonenberg>
your BytesToInt/BytesToFloat are pretty redundant, since you should be able to just reinterpret_cast the char* to float* or uint32_t* directly
<azonenberg>
swapping endianness if needed separately
<azonenberg>
for that matter the entire file header should be possible to create as a packed struct
<azonenberg>
then cast
<azonenberg>
Rather than vendor being "Agilent/Keysight/Rigol" can you use the file magic number to set to "Agilent/Keysight" or "Rigol"?
<azonenberg>
This is safe as long as your target architecture allows unaligned memory accesses (performance isnt a big deal for file loading compared to other stuff, so being slow is OK)
<miek>
all the ReadFromFile calls leak memory?
<azonenberg>
miek: i didnt even look for that because i assumed we were gonna get rid of them anyway
sam210723_ has joined #scopehal
Bird|ghosted has joined #scopehal
noopwafe1 has joined #scopehal
sam210723 has quit [*.net *.split]
Bird|otherbox has quit [*.net *.split]
noopwafel has quit [*.net *.split]
sam210723 has joined #scopehal
Bird|otherbox has joined #scopehal
sam210723 has quit [Ping timeout: 254 seconds]
Bird|otherbox has quit [Ping timeout: 254 seconds]
<azonenberg>
Also, AKL-PT1 update... doing a bunch of larger scale simulations, including one of the left half of the probe with different levels of fidelity for the ENIG loss model
<azonenberg>
One simulation has been running for 8.5 hours and is still going
<azonenberg>
On a single core
<azonenberg>
I really need to just buckle down and buy sonnet pro so i can multithread the solver lol