Skip to content

Commit

Permalink
regenerate headers
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden committed Dec 3, 2018
1 parent a8a3557 commit e5bec8c
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 3 deletions.
Binary file modified data/abfs/171116sh_0020_saved.abf
Binary file not shown.
Binary file modified data/abfs/f1_saved.abf
Binary file not shown.
2 changes: 1 addition & 1 deletion data/headers/130618-1-12.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* fileGUID = ``
* holdingCommand = `[-2.292757047572631e+37, -2.4422982394598744e+37, -2.4755296999448575e+37, ..., -2.3426061397760057e+37, -2.242912772441537e+37, -2.143218644516708e+37]`
* protocol = `None`
* protocolPath = `{`
* protocolPath = `None`
* stimulusByChannel = `[ChannelEpochs(ABF, 0)]`
* sweepC = `array (1d) with values like: nan, nan, nan, ..., nan, nan, nan`
* sweepChannel = `0`
Expand Down
Binary file modified data/headers/171116sh_0020_saved.md
Binary file not shown.
Binary file modified data/headers/171116sh_0020_saved.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/headers/f1_saved.md
Binary file not shown.
Binary file modified data/headers/f1_saved.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions data/headers/sine sweep magnitude 20.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
* epochValues = `[-70.0, -70.0, -70.0]`
* fileGUID = `{FA90BECA-056E-4757-9776-ADFD60958D8D}`
* holdingCommand = `[-70.0, 0.0, 0.0, 0.0]`
* protocol = `(untitled)`
* protocolPath = `(untitled)`
* protocol = `None`
* protocolPath = `None`
* stimulusByChannel = `[ChannelEpochs(ABF, 0)]`
* sweepC = `array (1d) with values like: -70.00000, -70.00000, -70.00000, ..., -70.00000, -70.00000, -70.00000`
* sweepChannel = `0`
Expand Down
Binary file modified data/readme.md
Binary file not shown.
17 changes: 17 additions & 0 deletions dev/python/2018-12-03 protocol binary.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""
binary crap keeps ending up parsed as a string. fix this.
"""

import sys
import os
PATH_HERE = os.path.abspath(os.path.dirname(__file__))
PATH_DATA = os.path.abspath(PATH_HERE+"../../../data/abfs/")
PATH_SRC = os.path.abspath(PATH_HERE+"../../../src/")
sys.path.insert(0, PATH_SRC)

import pyabf
import glob

for abfFile in glob.glob(PATH_DATA+"/*.abf"):
abf = pyabf.ABF(abfFile)
print(abf.abfID, abf.protocolPath)

0 comments on commit e5bec8c

Please sign in to comment.