You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present the ABF file writer has a fixed scaling factor (fInstrumentScaleFactor, fSignalGain, fADCProgrammableGain, etc). This causes the ABF writer to crash if ABF values being saved are outside the range supported by the fixed scaling factor. For example, the current code will crash on voltage-clamp ABFs with data greater than +/- 1000 pA.
To correct this issue, the ABF writer will be made smarter by using a custom scaling factor determined by the maximum and minimum data values. This ticket will track progress toward this end.
A new ABF (f1.abf) was added to the data section to test against.
Relevant code (the section where the fixed scale factors are defined) is:
At present the ABF file writer has a fixed scaling factor (
fInstrumentScaleFactor
,fSignalGain
,fADCProgrammableGain
, etc). This causes the ABF writer to crash if ABF values being saved are outside the range supported by the fixed scaling factor. For example, the current code will crash on voltage-clamp ABFs with data greater than +/- 1000 pA.To correct this issue, the ABF writer will be made smarter by using a custom scaling factor determined by the maximum and minimum data values. This ticket will track progress toward this end.
A new ABF (f1.abf) was added to the data section to test against.
Relevant code (the section where the fixed scale factors are defined) is:
pyABF/src/pyabf/abfWriter.py
Lines 54 to 67 in 59aa70b
note: the original discussion about ABF1 file writing was at: #60 (comment)
The text was updated successfully, but these errors were encountered: