Skip to content

Conversation

@LucaNagel
Copy link

A new property reco_type for 2dseq files was created. This now checks the VisuCoreFrameType in the visu_pars file.
Depending on the value (IMAGINARY_IMAGE + REAL_IMAGE, IMAGINARY_IMAGE, REAL_IMAGE, PHASE_IMAGE or MAGNITUDE_IMAGE (default)), in deserialize in the schemas.py and loads the data accordingly.
This means that complex reconstructed data (REAL_IMAGE AND IMAGINARY_IMAGE) will be loaded as complex data

…there is now a new property reco_type which uses VisuCoreFrameType to determine if the reco was magnitude or real and imaginary. This will be upgraded to also read in in real or imaginray or phase or IR reconstructed data
@tomas-psorn
Copy link
Contributor

tomas-psorn commented Oct 14, 2025

Hi @LucaNagel, sorry for taking so long to response. I would prefer not to do this change in order to keep the inner logic of data reading as simple as possible. At the same time, a solution for your problem is actually already implemented in the API, it's called FrameGroupMerger, here's an example of how it's used:

from brukerapi.dataset import Dataset
from brukerapi.mergers import FrameGroupMerger
d = FrameGroupMerger.merge(Dataset(<path>), 'FG_COMPLEX')`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants