Skip to content

Commit

Permalink
Check for bruker-generated multi_tiff
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalbakshi committed Apr 23, 2024
1 parent deff0fa commit 3ad3ed4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions element_interface/prairie_view_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def _extract_prairieview_metadata(xml_filepath: str):

bidirectional_scan = False # Does not support bidirectional
roi = 0
multi_tiff = xml_root.find(".//Sequence/Frame/File/[@page]") is not None
recording_start_time = xml_root.find(".//Sequence/[@cycle='1']").attrib.get("time")

# Get all channels and find unique values
Expand Down Expand Up @@ -310,6 +311,7 @@ def _extract_prairieview_metadata(xml_filepath: str):
frame_period=frame_period,
bidirectional=bidirectional_scan,
bidirectional_z=bidirection_z,
multi_tiff=multi_tiff,
scan_datetime=scan_datetime,
usecs_per_line=usec_per_line,
scan_duration=total_scan_duration,
Expand Down

0 comments on commit 3ad3ed4

Please sign in to comment.