GuckLab / impose

Align microscopy images using custom-defined structural patterns and superimpose those on data from other imaging modalities.
GNU General Public License v3.0
1 stars 0 forks source link

Close bmlab session after loading data #48

Closed raimund-schluessler closed 2 years ago

raimund-schluessler commented 2 years ago

Currently the files loaded by bmlab are locked until Impose is quit. Since we only need them once to load the data, this PR fixes this.

paulmueller commented 2 years ago

What happens if multiple bmlab files are opened? Is everything always copied into memory?

raimund-schluessler commented 2 years ago

What happens if multiple bmlab files are opened?

Currently, if multiple bmlab files are opened, multiple sessions are created and all loaded files are still locked after the data was loaded. With this change, they get unlocked after the data was loaded into memory.

Is everything always copied into memory?

Yes, in this regard fmt_bm_bmlab.py behaves just as the other format loaders. All data is copied into the Impose memory.