HolyLab / Imagine

A graphical interface for recording with OCPI microscopes.
1 stars 1 forks source link

Re: Old imagine file compatability? #61

Closed mdhe1248 closed 6 years ago

mdhe1248 commented 6 years ago
imgr = load("/mnt/donghoon_031/20170510/exp1_20170510_warpallRestrict.imagine")

I obtained the error below:

Error encountered while loading "/mnt/donghoon_031/20170510/exp1_20170510_warpallRestrict.imagine"
Fatal error:
ERROR: KeyError: key "bidirection" not found

My imagine file looks like this:

IMAGINE
[general]
header version=7.0
app version=2.0, build (Jan 10 2017, 15:21:08)
date and time=2017-05-10T21:36:27
byte order=l
rig=ocpi-1

[misc params]
stimulus file content=
comment=
ai data file=F:/jerry/20170510/exp1_20170510.ai
image data file=F:/jerry/20170510/exp1_20170510.cam
piezo=bidirection:0;output scan rate:10000.0;start position:0.0 um;stop position:300.0 um

[ai]
nscans=-1
channel list=0 1 2 3
label list=piezo$stimuli$camera frame TTL$heartbeat
scan rate=10000.0
min sample=-2048
max sample=2047
min input=-10.0
max input=10.0

[camera]
original image depth=14
saved image depth=14
image width=561
image height=541
number of frames requested=330000
nStacks=5498
idle time between stacks=1.4 s
pre amp gain=
gain=0.0
exposure time=0.01 s
vertical shift speed=
vertical clock vol amp=-1.0
readout rate=
pixel order=x y z
frame index offset=0
frames per stack=60
pixel data type=float32
camera=edge.main
um per pixel=0.577
binning=hbin:1;hstart:161;hend:1280;vbin:1;vend:1620;vstart:541
angle from horizontal (deg)=-1.0

I used to be able to load the file. Advise me please!

mdhe1248 commented 6 years ago

I submitted a fix in ImagineFormat. Please check that out.