Skip to content

Commit

Permalink
Duplicate image plate image if it exists
Browse files Browse the repository at this point in the history
The UI expects that all imageseries are the same length. To keep this in sync,
for now we simply create for copies of the image plate image and create the
imageseries from those frames.

Signed-off-by: Brianna Major <[email protected]>
  • Loading branch information
Brianna Major committed Dec 18, 2024
1 parent 8578522 commit 94b808e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hexrdgui/llnl_import_tool_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,14 @@ def import_complete(self):
if self.instrument == 'PXRDIP':
HexrdConfig().load_panel_state['trans'] = (
[UI_TRANS_INDEX_ROTATE_90] * len(self.image_plates))

det_names = HexrdConfig().detector_names
files = [[self.edited_images[det]['img']] for det in det_names]
files = []
for det in det_names:
img = self.edited_images[det]['img']
if self.instrument == 'FIDDLE' and det in self.image_plates:
img = np.asarray([img] * FIDDLE_FRAMES)
files.append([img])
# The ImageLoadManager parent needs to be set to the main window
# because when set to the ui (QDockWidget) the dock widget is
# closed after accepting the image selection. We're not positive
Expand Down

0 comments on commit 94b808e

Please sign in to comment.