mlgidGUI 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mlgidgui-1.0.0/CHANGELOG.md +2040 -0
- mlgidgui-1.0.0/LICENSE +21 -0
- mlgidgui-1.0.0/MANIFEST.in +3 -0
- mlgidgui-1.0.0/PKG-INFO +197 -0
- mlgidgui-1.0.0/README.md +148 -0
- mlgidgui-1.0.0/mlgidgui/__init__.py +193 -0
- mlgidgui-1.0.0/mlgidgui/__main__.py +3 -0
- mlgidgui-1.0.0/mlgidgui/ai_values.py +147 -0
- mlgidgui-1.0.0/mlgidgui/array_edit_dialog.py +273 -0
- mlgidgui-1.0.0/mlgidgui/assets/app/mlgid_logo_mlgidgui.png +0 -0
- mlgidgui-1.0.0/mlgidgui/assets/app/mlgid_logo_mlgidgui_dark.png +0 -0
- mlgidgui-1.0.0/mlgidgui/assets/app/mlgidgui.ico +0 -0
- mlgidgui-1.0.0/mlgidgui/assets/app/mlgidgui_128.png +0 -0
- mlgidgui-1.0.0/mlgidgui/assets/app/mlgidgui_16.png +0 -0
- mlgidgui-1.0.0/mlgidgui/assets/app/mlgidgui_24.png +0 -0
- mlgidgui-1.0.0/mlgidgui/assets/app/mlgidgui_256.png +0 -0
- mlgidgui-1.0.0/mlgidgui/assets/app/mlgidgui_32.png +0 -0
- mlgidgui-1.0.0/mlgidgui/assets/app/mlgidgui_48.png +0 -0
- mlgidgui-1.0.0/mlgidgui/assets/app/mlgidgui_64.png +0 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/about.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/chevron-down.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/chevron-right.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/clear-peaks.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/clear-recent.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/close.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/colormap.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/copy-diagnostics.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/cursor-readout.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/dock-conversion.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/dock-display.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/dock-expected.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/dock-logs.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/dock-peaks.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/dock-pipeline.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/dock-profiles.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/dock-tracking.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/dock-tree.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/exit.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/export-csv.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/export-figure.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/file-close.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/file-open.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/file-recent.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/find-peak.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/fullscreen.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/help-controls.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/log-scale.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/next.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/node-dataset.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/node-group.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/node-link.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/pause.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/play.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/playback-settings.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/prev.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/redo.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/refresh.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/reset-layout.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/reset-peaks.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/reset-zoom.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/save-as.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/save.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/theme-dark.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/theme-light.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/undo.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/view-cartesian.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/assets/icons/view-polar.svg +1 -0
- mlgidgui-1.0.0/mlgidgui/browser_widgets.py +324 -0
- mlgidgui-1.0.0/mlgidgui/calibration_dialog.py +720 -0
- mlgidgui-1.0.0/mlgidgui/controls_help.py +341 -0
- mlgidgui-1.0.0/mlgidgui/conversion.py +905 -0
- mlgidgui-1.0.0/mlgidgui/conversion_config.py +216 -0
- mlgidgui-1.0.0/mlgidgui/conversion_panel.py +1848 -0
- mlgidgui-1.0.0/mlgidgui/desktop_entry.py +264 -0
- mlgidgui-1.0.0/mlgidgui/detection_config.py +128 -0
- mlgidgui-1.0.0/mlgidgui/detection_model.py +560 -0
- mlgidgui-1.0.0/mlgidgui/diagnostics.py +181 -0
- mlgidgui-1.0.0/mlgidgui/figure_export_window.py +997 -0
- mlgidgui-1.0.0/mlgidgui/file_dialogs.py +241 -0
- mlgidgui-1.0.0/mlgidgui/file_model.py +3591 -0
- mlgidgui-1.0.0/mlgidgui/fit.py +499 -0
- mlgidgui-1.0.0/mlgidgui/flow_layout.py +293 -0
- mlgidgui-1.0.0/mlgidgui/frame_range.py +94 -0
- mlgidgui-1.0.0/mlgidgui/h5_edit.py +1385 -0
- mlgidgui-1.0.0/mlgidgui/h5_edit_ops.py +438 -0
- mlgidgui-1.0.0/mlgidgui/h5_repack.py +187 -0
- mlgidgui-1.0.0/mlgidgui/icons.py +170 -0
- mlgidgui-1.0.0/mlgidgui/image_viewer.py +1342 -0
- mlgidgui-1.0.0/mlgidgui/image_viewer_interact.py +1990 -0
- mlgidgui-1.0.0/mlgidgui/image_viewer_overlays.py +943 -0
- mlgidgui-1.0.0/mlgidgui/image_viewer_render.py +887 -0
- mlgidgui-1.0.0/mlgidgui/import_dialog.py +305 -0
- mlgidgui-1.0.0/mlgidgui/main_window.py +866 -0
- mlgidgui-1.0.0/mlgidgui/main_window_build.py +2122 -0
- mlgidgui-1.0.0/mlgidgui/main_window_constants.py +65 -0
- mlgidgui-1.0.0/mlgidgui/main_window_dialogs.py +825 -0
- mlgidgui-1.0.0/mlgidgui/main_window_files.py +1374 -0
- mlgidgui-1.0.0/mlgidgui/main_window_frames.py +1591 -0
- mlgidgui-1.0.0/mlgidgui/main_window_matched.py +471 -0
- mlgidgui-1.0.0/mlgidgui/main_window_menus.py +1410 -0
- mlgidgui-1.0.0/mlgidgui/main_window_peaks.py +2993 -0
- mlgidgui-1.0.0/mlgidgui/main_window_pipeline.py +638 -0
- mlgidgui-1.0.0/mlgidgui/main_window_preview.py +686 -0
- mlgidgui-1.0.0/mlgidgui/main_window_sim.py +1428 -0
- mlgidgui-1.0.0/mlgidgui/main_window_structure.py +2376 -0
- mlgidgui-1.0.0/mlgidgui/main_window_tracking.py +1129 -0
- mlgidgui-1.0.0/mlgidgui/main_window_update.py +534 -0
- mlgidgui-1.0.0/mlgidgui/manual_fit.py +533 -0
- mlgidgui-1.0.0/mlgidgui/nexus_schema.py +250 -0
- mlgidgui-1.0.0/mlgidgui/parameter_panel.py +954 -0
- mlgidgui-1.0.0/mlgidgui/peak_clipboard.py +81 -0
- mlgidgui-1.0.0/mlgidgui/peak_link.py +85 -0
- mlgidgui-1.0.0/mlgidgui/peak_lists.py +277 -0
- mlgidgui-1.0.0/mlgidgui/peak_picking.py +131 -0
- mlgidgui-1.0.0/mlgidgui/peak_zoom.py +92 -0
- mlgidgui-1.0.0/mlgidgui/peaks_table_panel.py +939 -0
- mlgidgui-1.0.0/mlgidgui/pen_picker.py +258 -0
- mlgidgui-1.0.0/mlgidgui/phase_tracking.py +981 -0
- mlgidgui-1.0.0/mlgidgui/phase_views_dialogs.py +551 -0
- mlgidgui-1.0.0/mlgidgui/phase_views_window.py +2131 -0
- mlgidgui-1.0.0/mlgidgui/pipeline.py +1755 -0
- mlgidgui-1.0.0/mlgidgui/pipeline_panel.py +1446 -0
- mlgidgui-1.0.0/mlgidgui/polar.py +171 -0
- mlgidgui-1.0.0/mlgidgui/preview_fit.py +117 -0
- mlgidgui-1.0.0/mlgidgui/profile_masking.py +136 -0
- mlgidgui-1.0.0/mlgidgui/profile_viewer.py +971 -0
- mlgidgui-1.0.0/mlgidgui/roi_intensity.py +146 -0
- mlgidgui-1.0.0/mlgidgui/scan_tracking_panel.py +534 -0
- mlgidgui-1.0.0/mlgidgui/selftest.py +202 -0
- mlgidgui-1.0.0/mlgidgui/session.py +405 -0
- mlgidgui-1.0.0/mlgidgui/settings_migration.py +83 -0
- mlgidgui-1.0.0/mlgidgui/simulation_pattern.py +484 -0
- mlgidgui-1.0.0/mlgidgui/skin.py +407 -0
- mlgidgui-1.0.0/mlgidgui/structure_clipboard.py +92 -0
- mlgidgui-1.0.0/mlgidgui/structure_dialogs.py +441 -0
- mlgidgui-1.0.0/mlgidgui/structure_panel.py +1299 -0
- mlgidgui-1.0.0/mlgidgui/structure_tree.py +505 -0
- mlgidgui-1.0.0/mlgidgui/theme.py +114 -0
- mlgidgui-1.0.0/mlgidgui/theme_tokens.py +180 -0
- mlgidgui-1.0.0/mlgidgui/update_check.py +485 -0
- mlgidgui-1.0.0/mlgidgui/update_ui.py +148 -0
- mlgidgui-1.0.0/mlgidgui/viewer_items.py +833 -0
- mlgidgui-1.0.0/mlgidgui/viewer_styles.py +427 -0
- mlgidgui-1.0.0/mlgidgui/welcome_view.py +182 -0
- mlgidgui-1.0.0/mlgidgui/widgets.py +496 -0
- mlgidgui-1.0.0/mlgidgui/workers.py +1270 -0
- mlgidgui-1.0.0/mlgidgui/workflow_rail.py +282 -0
- mlgidgui-1.0.0/mlgidgui.egg-info/PKG-INFO +197 -0
- mlgidgui-1.0.0/mlgidgui.egg-info/SOURCES.txt +275 -0
- mlgidgui-1.0.0/mlgidgui.egg-info/dependency_links.txt +1 -0
- mlgidgui-1.0.0/mlgidgui.egg-info/entry_points.txt +2 -0
- mlgidgui-1.0.0/mlgidgui.egg-info/requires.txt +30 -0
- mlgidgui-1.0.0/mlgidgui.egg-info/top_level.txt +1 -0
- mlgidgui-1.0.0/pyproject.toml +151 -0
- mlgidgui-1.0.0/setup.cfg +4 -0
- mlgidgui-1.0.0/setup.py +29 -0
- mlgidgui-1.0.0/tests/test_add_predicted_gui.py +508 -0
- mlgidgui-1.0.0/tests/test_add_to_detected.py +113 -0
- mlgidgui-1.0.0/tests/test_ai_values.py +113 -0
- mlgidgui-1.0.0/tests/test_array_edit.py +459 -0
- mlgidgui-1.0.0/tests/test_aspect_ratio.py +199 -0
- mlgidgui-1.0.0/tests/test_async_entry_switch.py +142 -0
- mlgidgui-1.0.0/tests/test_async_open.py +208 -0
- mlgidgui-1.0.0/tests/test_batch_fit_2d.py +268 -0
- mlgidgui-1.0.0/tests/test_blocked_tracking.py +90 -0
- mlgidgui-1.0.0/tests/test_branding.py +142 -0
- mlgidgui-1.0.0/tests/test_browser_entry_select.py +101 -0
- mlgidgui-1.0.0/tests/test_bulk_delete.py +412 -0
- mlgidgui-1.0.0/tests/test_button_variants.py +118 -0
- mlgidgui-1.0.0/tests/test_card_language.py +163 -0
- mlgidgui-1.0.0/tests/test_cif_empty_pattern.py +176 -0
- mlgidgui-1.0.0/tests/test_contrast_persists.py +97 -0
- mlgidgui-1.0.0/tests/test_controls_help.py +137 -0
- mlgidgui-1.0.0/tests/test_conversion_overrides.py +931 -0
- mlgidgui-1.0.0/tests/test_delete_peak_row.py +422 -0
- mlgidgui-1.0.0/tests/test_desktop_entry.py +253 -0
- mlgidgui-1.0.0/tests/test_detection_model.py +375 -0
- mlgidgui-1.0.0/tests/test_detection_params.py +396 -0
- mlgidgui-1.0.0/tests/test_diagnostics.py +223 -0
- mlgidgui-1.0.0/tests/test_dock_layout.py +242 -0
- mlgidgui-1.0.0/tests/test_energy_guard.py +183 -0
- mlgidgui-1.0.0/tests/test_fabio_gui.py +729 -0
- mlgidgui-1.0.0/tests/test_fabio_stack.py +146 -0
- mlgidgui-1.0.0/tests/test_figure_export_svg.py +66 -0
- mlgidgui-1.0.0/tests/test_file_browser_delete.py +201 -0
- mlgidgui-1.0.0/tests/test_file_dialogs.py +277 -0
- mlgidgui-1.0.0/tests/test_file_tree_refresh.py +166 -0
- mlgidgui-1.0.0/tests/test_fill_matched_sweep_gui.py +337 -0
- mlgidgui-1.0.0/tests/test_fit_area.py +274 -0
- mlgidgui-1.0.0/tests/test_fit_gaussian.py +421 -0
- mlgidgui-1.0.0/tests/test_fit_mode_selector.py +420 -0
- mlgidgui-1.0.0/tests/test_flow_layout.py +180 -0
- mlgidgui-1.0.0/tests/test_flow_layout_collapse.py +76 -0
- mlgidgui-1.0.0/tests/test_frame_range_parser.py +127 -0
- mlgidgui-1.0.0/tests/test_frame_spinbox.py +41 -0
- mlgidgui-1.0.0/tests/test_frozen_app.py +84 -0
- mlgidgui-1.0.0/tests/test_h5_edit.py +712 -0
- mlgidgui-1.0.0/tests/test_h5_edit_undo.py +231 -0
- mlgidgui-1.0.0/tests/test_h5_repack.py +301 -0
- mlgidgui-1.0.0/tests/test_hermetic_guard.py +71 -0
- mlgidgui-1.0.0/tests/test_icons.py +227 -0
- mlgidgui-1.0.0/tests/test_import_converted.py +438 -0
- mlgidgui-1.0.0/tests/test_inject_fitted_peaks_op.py +282 -0
- mlgidgui-1.0.0/tests/test_lazy_normalize.py +96 -0
- mlgidgui-1.0.0/tests/test_lazy_peaks.py +74 -0
- mlgidgui-1.0.0/tests/test_lazy_raw_loading.py +160 -0
- mlgidgui-1.0.0/tests/test_manual_fit.py +517 -0
- mlgidgui-1.0.0/tests/test_manual_peak_box_ops.py +116 -0
- mlgidgui-1.0.0/tests/test_matched_consolidation.py +125 -0
- mlgidgui-1.0.0/tests/test_matched_identity.py +497 -0
- mlgidgui-1.0.0/tests/test_matched_invalidation_on_refit.py +403 -0
- mlgidgui-1.0.0/tests/test_matched_remap_on_fitted_delete.py +447 -0
- mlgidgui-1.0.0/tests/test_mixin_slots.py +107 -0
- mlgidgui-1.0.0/tests/test_multi_select.py +398 -0
- mlgidgui-1.0.0/tests/test_neighbour_masking.py +214 -0
- mlgidgui-1.0.0/tests/test_nexus_schema.py +72 -0
- mlgidgui-1.0.0/tests/test_no_hardcoded_colours.py +78 -0
- mlgidgui-1.0.0/tests/test_paste_to_range.py +444 -0
- mlgidgui-1.0.0/tests/test_peak_clipboard.py +230 -0
- mlgidgui-1.0.0/tests/test_peak_dataset_bootstrap.py +277 -0
- mlgidgui-1.0.0/tests/test_peak_linking.py +1310 -0
- mlgidgui-1.0.0/tests/test_peak_lists.py +625 -0
- mlgidgui-1.0.0/tests/test_peak_picking.py +616 -0
- mlgidgui-1.0.0/tests/test_peak_roundtrip.py +201 -0
- mlgidgui-1.0.0/tests/test_peak_score_edit.py +251 -0
- mlgidgui-1.0.0/tests/test_peak_zoom.py +255 -0
- mlgidgui-1.0.0/tests/test_peaks_table_interaction.py +252 -0
- mlgidgui-1.0.0/tests/test_pen_picker.py +287 -0
- mlgidgui-1.0.0/tests/test_phase_tracking.py +896 -0
- mlgidgui-1.0.0/tests/test_pipeline_entry_preflight.py +73 -0
- mlgidgui-1.0.0/tests/test_pipeline_frame_scope.py +114 -0
- mlgidgui-1.0.0/tests/test_pipeline_primary_table.py +542 -0
- mlgidgui-1.0.0/tests/test_pipeline_progress.py +361 -0
- mlgidgui-1.0.0/tests/test_pipeline_queue_snapshot.py +112 -0
- mlgidgui-1.0.0/tests/test_polar_to_qxyz.py +92 -0
- mlgidgui-1.0.0/tests/test_profile_overlay_stored.py +283 -0
- mlgidgui-1.0.0/tests/test_progress_accent.py +129 -0
- mlgidgui-1.0.0/tests/test_pygid_incompat_guard.py +78 -0
- mlgidgui-1.0.0/tests/test_quick_select.py +391 -0
- mlgidgui-1.0.0/tests/test_raw_async_gui.py +274 -0
- mlgidgui-1.0.0/tests/test_raw_preview_flip.py +232 -0
- mlgidgui-1.0.0/tests/test_raw_session.py +97 -0
- mlgidgui-1.0.0/tests/test_reset_analysis.py +141 -0
- mlgidgui-1.0.0/tests/test_roi_intensity.py +188 -0
- mlgidgui-1.0.0/tests/test_scan_tracking_gui.py +2855 -0
- mlgidgui-1.0.0/tests/test_score_cutoff.py +62 -0
- mlgidgui-1.0.0/tests/test_selection_sync.py +131 -0
- mlgidgui-1.0.0/tests/test_session_reactivation.py +104 -0
- mlgidgui-1.0.0/tests/test_settings_migration.py +131 -0
- mlgidgui-1.0.0/tests/test_shallow_entry_listing.py +47 -0
- mlgidgui-1.0.0/tests/test_sim_overlay_gui.py +698 -0
- mlgidgui-1.0.0/tests/test_simulation_pattern.py +381 -0
- mlgidgui-1.0.0/tests/test_skin_qss.py +204 -0
- mlgidgui-1.0.0/tests/test_smoke_construction.py +105 -0
- mlgidgui-1.0.0/tests/test_smoke_session.py +181 -0
- mlgidgui-1.0.0/tests/test_smoke_silx_detach.py +118 -0
- mlgidgui-1.0.0/tests/test_status_bar_activity.py +175 -0
- mlgidgui-1.0.0/tests/test_stored_fit_readout.py +254 -0
- mlgidgui-1.0.0/tests/test_structure_clipboard.py +708 -0
- mlgidgui-1.0.0/tests/test_structure_edits.py +503 -0
- mlgidgui-1.0.0/tests/test_structure_layout.py +794 -0
- mlgidgui-1.0.0/tests/test_structure_links.py +424 -0
- mlgidgui-1.0.0/tests/test_structure_panel.py +467 -0
- mlgidgui-1.0.0/tests/test_structure_search.py +259 -0
- mlgidgui-1.0.0/tests/test_structure_tree.py +312 -0
- mlgidgui-1.0.0/tests/test_structure_tree_edits.py +839 -0
- mlgidgui-1.0.0/tests/test_theme_apply.py +71 -0
- mlgidgui-1.0.0/tests/test_theme_persistence.py +44 -0
- mlgidgui-1.0.0/tests/test_theme_tokens.py +141 -0
- mlgidgui-1.0.0/tests/test_undo_redo_shortcut.py +190 -0
- mlgidgui-1.0.0/tests/test_update_check.py +982 -0
- mlgidgui-1.0.0/tests/test_view_preservation.py +53 -0
- mlgidgui-1.0.0/tests/test_viewer_controls.py +136 -0
- mlgidgui-1.0.0/tests/test_viewer_released_frame_source.py +83 -0
- mlgidgui-1.0.0/tests/test_welcome_view.py +155 -0
- mlgidgui-1.0.0/tests/test_wheel_guard.py +139 -0
- mlgidgui-1.0.0/tests/test_workflow_rail.py +333 -0
|
@@ -0,0 +1,2040 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to mlgidGUI (called mlgidLAB until 1.0.0) are recorded
|
|
4
|
+
here. Versions follow [PEP 440](https://peps.python.org/pep-0440/); `aN`
|
|
5
|
+
suffixes are alpha pre-releases.
|
|
6
|
+
|
|
7
|
+
## 1.0.0 (2026-10-30): mlgidLAB is now mlgidGUI
|
|
8
|
+
|
|
9
|
+
The application you know as mlgidLAB is called **mlgidGUI** from this
|
|
10
|
+
release on. It is the same program with a new name, a new logo and a Windows
|
|
11
|
+
installer. The workflow is unchanged; what changed is what you type and
|
|
12
|
+
where it lives.
|
|
13
|
+
|
|
14
|
+
### Read this first: the rename
|
|
15
|
+
|
|
16
|
+
| | Before | Now |
|
|
17
|
+
|---|---|---|
|
|
18
|
+
| Command | `mlgidlab` | `mlgidgui` |
|
|
19
|
+
| Python package | `mlgidlab` | `mlgidgui` |
|
|
20
|
+
| Run as a module | `python -m mlgidlab` | `python -m mlgidgui` |
|
|
21
|
+
| PyPI project | none (installed from GitHub) | `mlgidGUI`, so `pip install mlgidgui` |
|
|
22
|
+
| Repository | `mlgid-project/mlgidLAB` | `mlgid-project/mlgidGUI` (the old addresses redirect) |
|
|
23
|
+
|
|
24
|
+
**What to do**
|
|
25
|
+
|
|
26
|
+
- **Installed a21, a22 or a23:** use **Update now** in the banner (or Help,
|
|
27
|
+
Update now). It installs mlgidGUI from PyPI first and removes mlgidLAB
|
|
28
|
+
only once that worked, so a failed install leaves mlgidLAB as it was. The
|
|
29
|
+
restart prompt then starts mlgidGUI. From a21 and a22 the window can
|
|
30
|
+
freeze once after pip has finished (a bug fixed in a23): the new version
|
|
31
|
+
is installed, so close the window and start `mlgidgui`.
|
|
32
|
+
- **Installed a20 or older, or you prefer to do it by hand:**
|
|
33
|
+
`pip install "mlgidgui[pipeline]"`, then `pip uninstall mlgidlab`.
|
|
34
|
+
- **Windows installer:** run the new installer. It upgrades an earlier
|
|
35
|
+
installation in place and replaces the old launcher and shortcuts.
|
|
36
|
+
- **Scripts that `import mlgidlab`:** change them to `import mlgidgui`.
|
|
37
|
+
There is **no compatibility layer**: the `mlgidlab` package and command
|
|
38
|
+
are gone after the update.
|
|
39
|
+
- **Already have the older mlgidGUI (the annotation tool, up to 0.6.2)?**
|
|
40
|
+
It is a different program with the same name. `pip install --upgrade
|
|
41
|
+
mlgidgui` into the same environment replaces it with this application;
|
|
42
|
+
use a separate environment if you want to keep both. The old tool is
|
|
43
|
+
kept as `mlgid-project/mlgidGUI-legacy`.
|
|
44
|
+
|
|
45
|
+
**What carries over**
|
|
46
|
+
|
|
47
|
+
- Your data files are not touched, and files written by mlgidLAB open as
|
|
48
|
+
before. New files record `mlgidgui` where mlgidLAB recorded `mlgidlab`
|
|
49
|
+
(the `process/mlgidlab` group and the `program` entry); mlgidGUI reads
|
|
50
|
+
both. A file an interrupted mlgidLAB run left half-swapped is still
|
|
51
|
+
repaired.
|
|
52
|
+
- Your settings (recent files, dock layout, theme, colours, update
|
|
53
|
+
preferences) are copied on the first start. The old ones stay where they
|
|
54
|
+
were, so an mlgidLAB installed next to it keeps working.
|
|
55
|
+
- The log folder moved from `.../mlgidlab` to `.../mlgidgui`, and
|
|
56
|
+
`MLGIDGUI_LOG_DIR` replaces `MLGIDLAB_LOG_DIR` (the old name still
|
|
57
|
+
works). Old logs stay in the old folder.
|
|
58
|
+
- On Linux the desktop entry and icons are named `mlgidgui`; the entry
|
|
59
|
+
mlgidLAB installed is removed. GNOME may keep showing a generic icon for
|
|
60
|
+
the first start: press Alt+F2, type `r`, press Enter once (or log in
|
|
61
|
+
again).
|
|
62
|
+
|
|
63
|
+
### Added
|
|
64
|
+
|
|
65
|
+
- **The area that is really fitted is drawn.** Selecting a detected peak
|
|
66
|
+
now outlines, in dashed red, the region pygidFIT fits for it. That region
|
|
67
|
+
is larger than the box you see: radially it is twice as wide (pygidFIT
|
|
68
|
+
uses `radius +- radius_width` where the box is drawn as `radius +-
|
|
69
|
+
radius_width / 2`), angularly the same, and one pixel of its polar grid
|
|
70
|
+
more on every side. It explains why a fitted peak can land outside its
|
|
71
|
+
detected box, and why a neighbour's intensity can leak into a fit. Fitted,
|
|
72
|
+
matched and manual selections do not show it. Settings, Display, "Outline
|
|
73
|
+
the area pygidFIT fits" turns it off (on by default).
|
|
74
|
+
- **A Windows installer.** `mlgidGUI-<version>-windows-x64-full-setup.exe`
|
|
75
|
+
needs no Python and no administrator rights, and includes the full
|
|
76
|
+
pipeline. It is not code-signed, so SmartScreen asks once (More info,
|
|
77
|
+
Run anyway); each release lists its SHA-256. It does not update itself:
|
|
78
|
+
download the next installer. Tested on Windows 11 on a 4-core laptop with
|
|
79
|
+
7.6 GB of RAM and no dedicated GPU.
|
|
80
|
+
- `mlgidgui --self-test` opens a window on a small generated file, reads
|
|
81
|
+
the bundled changelog and icons and, with `--backends`, runs a fit and
|
|
82
|
+
imports every backend. The installer build is checked with it.
|
|
83
|
+
- The mlgidGUI logo replaces the mlgidLAB one (the logo the group chose for
|
|
84
|
+
the name). The window and desktop icon are unchanged.
|
|
85
|
+
|
|
86
|
+
### Changed
|
|
87
|
+
|
|
88
|
+
- **Updates install from PyPI.** Update now runs `pip install
|
|
89
|
+
"mlgidgui[pipeline]==<version>"` with the exact version the banner
|
|
90
|
+
announced (no git URL, and a pre-release works because of the exact pin).
|
|
91
|
+
GitHub is only asked which release is newest.
|
|
92
|
+
- Update now works again for installs from PyPI. Those carry no record of
|
|
93
|
+
the URL they came from, which the app used to read as "unknown install"
|
|
94
|
+
and switched self-update off.
|
|
95
|
+
- The one-time "mlgidLAB is becoming mlgidGUI" notice and its Help entry
|
|
96
|
+
are gone; they did their job in a21 to a23.
|
|
97
|
+
- On Windows the first start deletes the `mlgidlab.exe.old` that moving
|
|
98
|
+
from mlgidLAB leaves in the `Scripts` folder.
|
|
99
|
+
- The click-through manual test plan (`docs/manual_test_plan.html`) is
|
|
100
|
+
removed: it had fallen out of date. A new one will be added later.
|
|
101
|
+
|
|
102
|
+
### Fixed
|
|
103
|
+
|
|
104
|
+
- **An error when a menu was destroyed, and a crash report with it.** The key handler for Ctrl+Z, Ctrl+Y and
|
|
105
|
+
the arrow keys looks at every event in the application, including those
|
|
106
|
+
of widgets that are being destroyed, and handed such a widget back to Qt:
|
|
107
|
+
"Internal C++ object (QMenu) already deleted", followed in one report by a
|
|
108
|
+
segmentation fault. It no longer passes the widget on. We could not
|
|
109
|
+
reproduce the segmentation fault itself, only the error.
|
|
110
|
+
|
|
111
|
+
## 0.1.0a23 — twenty-third alpha (2026-10-28)
|
|
112
|
+
|
|
113
|
+
A fix for the in-app update, found when updating from a21 to a22. No new
|
|
114
|
+
features.
|
|
115
|
+
|
|
116
|
+
### Fixed
|
|
117
|
+
|
|
118
|
+
- **The window froze after "Update now" and never offered the restart.**
|
|
119
|
+
The install had finished, but the handler that closes the progress box
|
|
120
|
+
and asks to restart ran on the install's worker thread instead of the
|
|
121
|
+
window's own, and stopped there. The handler of the update check (the
|
|
122
|
+
banner, the status message, and the confirmation of Update now) and the
|
|
123
|
+
one that stores prefetched frames had the same flaw. All three run on
|
|
124
|
+
the window's thread now. Updates started from this version work. An
|
|
125
|
+
update run by a21 or a22 can still freeze once, after pip has finished:
|
|
126
|
+
the new version is installed, so close the window and start it again.
|
|
127
|
+
|
|
128
|
+
### Changed
|
|
129
|
+
|
|
130
|
+
- Internal: the test suite grew by three tests. They run a real worker
|
|
131
|
+
thread and check where its handlers run, and one of them fails on any
|
|
132
|
+
decorated slot left in a mixin that is not a QObject.
|
|
133
|
+
|
|
134
|
+
## 0.1.0a22 — twenty-second alpha (2026-10-28)
|
|
135
|
+
|
|
136
|
+
A bug-finding and speed pass before the rename to mlgidGUI. No new
|
|
137
|
+
features.
|
|
138
|
+
|
|
139
|
+
### Fixed
|
|
140
|
+
|
|
141
|
+
- **The update check could crash the app.** Two parts of the app both
|
|
142
|
+
deleted the update worker when its thread finished, and when they
|
|
143
|
+
overlapped the process died with a segmentation fault. The startup
|
|
144
|
+
update check runs this on every launch. One owner remains.
|
|
145
|
+
- **A failed image import no longer destroys an earlier one.** Importing
|
|
146
|
+
converted images wrote straight into the output file, so a wrong-sized
|
|
147
|
+
image or a wrong number of angles part-way left a truncated file, and
|
|
148
|
+
re-importing into the default `<folder>_imported.h5` replaced the
|
|
149
|
+
earlier import first. The stack is now written to a temporary file and
|
|
150
|
+
moved into place only when every frame is in.
|
|
151
|
+
- **Ctrl+A on the image no longer freezes the Peaks table.** Selecting
|
|
152
|
+
every peak on a frame took 0.5 s for 1000 peaks and 2.2 s for 2000; it
|
|
153
|
+
now takes a few hundredths of a second.
|
|
154
|
+
- **"Add from HDF5..." in the Conversion metadata no longer reads the
|
|
155
|
+
whole dataset.** Picking the detector stack read all of it (tens of GB
|
|
156
|
+
on a beamtime file) to show one number. It reads one value.
|
|
157
|
+
- **"What's new" now appears after an in-app update.** The changelog was
|
|
158
|
+
not part of the installed package, so the window never had anything to
|
|
159
|
+
show. It ships with the package now.
|
|
160
|
+
- **Recovering an interrupted pipeline run no longer overwrites an
|
|
161
|
+
earlier recovery.** When an interrupted run left its tables behind with
|
|
162
|
+
no swap marker, the recovery saved them as `__mlgidlab_orphan__<name>`;
|
|
163
|
+
a second recovery for the same table replaced the first. Later ones are
|
|
164
|
+
saved as `__mlgidlab_orphan__<name>_2`, `_3`, and so on.
|
|
165
|
+
- **Settings could fail to apply after a peak list was removed.** A
|
|
166
|
+
logging call in the error path used a name that was never defined.
|
|
167
|
+
- **Interpolate tracks no longer leaves the tracking panel stale.** After
|
|
168
|
+
the gaps were filled, the update of the phase information raised an
|
|
169
|
+
`IndexError` (the filled peaks were added to the track but their ids
|
|
170
|
+
were not), so the panel and the phase views did not show the filled
|
|
171
|
+
tracks, and the saved tracks in the file did not get them either. The
|
|
172
|
+
filled peaks themselves were saved as fitted peaks.
|
|
173
|
+
- **Hidden dialogs and menus no longer pile up.** The Structure tab's
|
|
174
|
+
right-click menu, the New group / field / link, Retarget link, Pick
|
|
175
|
+
node, array editor and New attribute dialogs, and the progress dialogs
|
|
176
|
+
of Paste to frames and Fit selected (2D) stayed behind, hidden, after
|
|
177
|
+
every use for the rest of the session.
|
|
178
|
+
- **Windows: the clean-up of leftover temporary folders is switched off.**
|
|
179
|
+
The check for whether the owning process still runs does not work on
|
|
180
|
+
Windows, where it could send Ctrl+C to another process. Folders left
|
|
181
|
+
by a crashed session stay until Windows clears the temp folder.
|
|
182
|
+
|
|
183
|
+
### Changed
|
|
184
|
+
|
|
185
|
+
- The README is redesigned, with the three demo clips (conversion,
|
|
186
|
+
detect/fit/match, tracking) shown separately. Each is attached to the
|
|
187
|
+
release as its own mp4, recorded against this version.
|
|
188
|
+
- `packaging` is now a declared dependency (the updater uses it).
|
|
189
|
+
- Opening a CIF pickle runs the code inside it; the docs now say to
|
|
190
|
+
open only pickles you made or trust.
|
|
191
|
+
- Internal: the restart-prompt test now expects only its own error, test
|
|
192
|
+
comments name symbols instead of line numbers, and the test suite grew
|
|
193
|
+
by fifteen tests.
|
|
194
|
+
|
|
195
|
+
## 0.1.0a21 — twenty-first alpha (2026-10-26)
|
|
196
|
+
|
|
197
|
+
### Added
|
|
198
|
+
|
|
199
|
+
- **mlgidLAB is becoming mlgidGUI.** The app will be renamed mlgidGUI
|
|
200
|
+
with release 1.0.0. You do not have to do anything now. This release
|
|
201
|
+
prepares the move: a one-time notice explains it (also under **Help →
|
|
202
|
+
mlgidLAB is becoming mlgidGUI…**), and when 1.0.0 is published the
|
|
203
|
+
**Update now** button moves the environment instead of upgrading it. It
|
|
204
|
+
installs mlgidGUI from PyPI first and removes mlgidLAB only once that
|
|
205
|
+
worked, so a failed install leaves mlgidLAB as it was. The package and
|
|
206
|
+
command are then called `mlgidgui`; scripts that `import mlgidlab` have
|
|
207
|
+
to be changed, there is no compatibility layer. Your data files keep
|
|
208
|
+
working. Until a 1.0.0 release exists nothing changes in how updating
|
|
209
|
+
behaves. Installs older than this release cannot move themselves:
|
|
210
|
+
update to this release first.
|
|
211
|
+
- **Crash and update logs that survive a reboot.** The crash log moved
|
|
212
|
+
out of the system temp folder, which a reboot empties, into a
|
|
213
|
+
per-user log folder: `~/.local/state/mlgidlab` on Linux,
|
|
214
|
+
`%LOCALAPPDATA%\mlgidlab\Logs` on Windows and `~/Library/Logs/mlgidlab`
|
|
215
|
+
on macOS. It is called `crash.log` and starts a fresh file past 1 MiB.
|
|
216
|
+
Installing an update from inside the app now writes
|
|
217
|
+
`update_install.log` in the same folder: the mlgidLAB and Python
|
|
218
|
+
versions, the platform and the pip command before pip starts, and
|
|
219
|
+
pip's full output and return code after it. The "Update failed" dialog
|
|
220
|
+
names that file.
|
|
221
|
+
- **The workflow strip's play button opens its dock.** Pressing the
|
|
222
|
+
small play button next to a stage now also brings the dock that owns
|
|
223
|
+
the stage forward, so the run's settings and progress are in view.
|
|
224
|
+
Settings has a new **Workflow strip** group to turn this off.
|
|
225
|
+
- **Ctrl+Return runs Add to fitted.** With one manual or detected peak
|
|
226
|
+
selected, Ctrl+Return (or the keypad Ctrl+Enter) does what the Add to
|
|
227
|
+
fitted button does, with the current fit mode. It is a chord because
|
|
228
|
+
it writes to the file. With nothing selected, a fitted or matched
|
|
229
|
+
peak, several peaks, no file or a running step, nothing is written
|
|
230
|
+
and the status bar says why. Use Fit selected (2D) for several peaks.
|
|
231
|
+
- **Down and Up step through the peaks.** With one detected or fitted
|
|
232
|
+
peak selected, Down selects the next peak of the same kind on the
|
|
233
|
+
frame and Up the previous one, by id (a gap left by a deleted peak is
|
|
234
|
+
skipped, and fitted peaks hidden by the tracked-peaks filter are
|
|
235
|
+
passed over). The view zooms exactly as after a click. At the first or
|
|
236
|
+
last peak nothing happens, and so with no selection or several peaks
|
|
237
|
+
selected. Spin boxes, combo boxes, sliders, lists, tables and text
|
|
238
|
+
fields keep Up and Down for themselves.
|
|
239
|
+
- **`T` switches between a detected peak and its fitted peak.** With a
|
|
240
|
+
detected peak selected, `T` selects the fitted peak with the same id,
|
|
241
|
+
and the other way round (also in Edit, Switch detected / fitted). With
|
|
242
|
+
several peaks selected, every one that has a partner is switched and
|
|
243
|
+
the rest are dropped from the selection. Pairing is by id, so it needs
|
|
244
|
+
the peak link in Settings; with the link off, or with no partner, the
|
|
245
|
+
selection stays and the status bar says why.
|
|
246
|
+
|
|
247
|
+
- **Edit > Add detected boxes for fitted peaks.** Older datasets can
|
|
248
|
+
hold fitted peaks that no detected peak produced. This adds, on every
|
|
249
|
+
frame of the active entry, one detected box for each fitted peak that
|
|
250
|
+
has no detected peak with the same id, so each fitted peak has a
|
|
251
|
+
partner afterwards. The new box has the fitted box's position and
|
|
252
|
+
size, so it lies exactly over it; a fitted ring (infinite angular
|
|
253
|
+
width) gets a ring box spanning the entry's angular range instead. The
|
|
254
|
+
score follows the fitted peak's visibility (3, 2, 1 become 1.0, 0.5,
|
|
255
|
+
0.1; a peak with no visibility gets 1.0); everything else a detection
|
|
256
|
+
does not know stays zero. A fitted peak with no usable radius is
|
|
257
|
+
skipped and counted in the status bar. One Ctrl+Z removes the whole
|
|
258
|
+
batch.
|
|
259
|
+
|
|
260
|
+
### Changed
|
|
261
|
+
|
|
262
|
+
- **Matched peaks read the new mlgidbase 0.1.11 format and still read
|
|
263
|
+
the old one.** mlgidbase 0.1.11 stores fitted peak ids in each matched
|
|
264
|
+
structure's `peak_list`; earlier versions stored row positions, and a
|
|
265
|
+
file can hold both. The viewer, the simulation overlay, tracking and
|
|
266
|
+
the CSV export now work out which one each matched dataset holds (a
|
|
267
|
+
`peak_list_kind` attribute that mlgidLAB writes, or the stored values
|
|
268
|
+
when there is none) and show the right peaks, including after ids have
|
|
269
|
+
gaps. Deleting a fitted peak now just drops its id from the matched
|
|
270
|
+
structures instead of shifting numbers, and the first delete or
|
|
271
|
+
matching run converts an older dataset in place. Files matched by an
|
|
272
|
+
older version open exactly as before.
|
|
273
|
+
- **Deleting a matched peak only touches the matched structures.** The
|
|
274
|
+
Delete button on a matched peak used to run mlgidbase's delete, which
|
|
275
|
+
also removed the detected and fitted peaks with that id although the
|
|
276
|
+
dialog said it left them alone. It now takes the peak out of the
|
|
277
|
+
matched structures on the frame and nothing else, and Ctrl+Z puts it
|
|
278
|
+
back.
|
|
279
|
+
- **A fitted delete takes the fit errors with it.** The errors table
|
|
280
|
+
(`fitted_peaks_errors`) is paired with the fitted peaks by id. Deleting
|
|
281
|
+
a fit now removes its errors row too and undo restores it, so the
|
|
282
|
+
table no longer keeps a row for a peak that is gone or hands those
|
|
283
|
+
errors to a later peak that reuses the id. The fitted CSV export
|
|
284
|
+
pairs the error columns by id as well.
|
|
285
|
+
- **Fitting runs keep the detected ids.** With pygidfit 0.1.8 a run
|
|
286
|
+
writes each fit under the id of its detected peak, so the pairing no
|
|
287
|
+
longer needs the re-key pass that followed every run. The pass is gone.
|
|
288
|
+
- **Peak tracking runs through mlgidbase 0.1.11 and works at any scan
|
|
289
|
+
size.** The tracking itself is upstream's now (it no longer builds an
|
|
290
|
+
all-against-all matrix, so the memory check and the GUI's own blocked
|
|
291
|
+
tracker are gone) and the exact peak ids come straight from the table
|
|
292
|
+
it saves, instead of being matched back from coordinates. The result
|
|
293
|
+
is the same tracks as before. The table is saved in the file under
|
|
294
|
+
the entry's analysis group; a refit or appending frames removes it, and
|
|
295
|
+
deleting a fitted peak takes the peak out of it.
|
|
296
|
+
- **Max frame gap.** The scan-tracking panel has a new control that
|
|
297
|
+
stops two peaks being linked when they are more than that many frames
|
|
298
|
+
apart, however much their boxes overlap (off by default). Useful on
|
|
299
|
+
long scans where a peak position comes back later.
|
|
300
|
+
- **Save official figures writes mlgidbase's tracking figure.** It reruns
|
|
301
|
+
the tracking with the panel's settings and saves one figure with the
|
|
302
|
+
q_xy-q_z map beside the chosen axis against frame number, to exactly
|
|
303
|
+
the file you pick. The amplitude axis does not exist upstream and is
|
|
304
|
+
drawn as radius.
|
|
305
|
+
- **Tracks saved in the file show up when the entry opens.** A tracking
|
|
306
|
+
table saved by mlgidbase 0.1.11 (or by an earlier mlgidLAB session) is
|
|
307
|
+
now read when you open the file or switch entries, so the Scan-tracking
|
|
308
|
+
panel, the phase views and the structure column fill in without running
|
|
309
|
+
tracking again. IoU, minimum members and the frame gap are set to the
|
|
310
|
+
values the table was made with, and a line under the status says where
|
|
311
|
+
the tracks came from. It works without the pipeline backend installed.
|
|
312
|
+
A table that no longer matches the fitted peaks is not loaded on its
|
|
313
|
+
own: the panel says how many members are gone and offers **Load saved
|
|
314
|
+
tracks**. A table from before mlgidbase 0.1.11 is named but not read.
|
|
315
|
+
- **Track edits are saved to the file.** Deleting a track and
|
|
316
|
+
Interpolate track now also rewrite the tracking table saved in the
|
|
317
|
+
entry, so the file matches what the Scan-tracking panel shows and the
|
|
318
|
+
edit survives Save and reopening. Tracks are renumbered the way
|
|
319
|
+
mlgidbase numbers them and the phase columns are filled by its own
|
|
320
|
+
rule. A new Track peaks run also replaces the table in the working file
|
|
321
|
+
with the result as shown (the GUI's ring tracks included), so Save keeps
|
|
322
|
+
what you see. Loading a table never changes the file; only a run or an
|
|
323
|
+
edit does. A track cannot be deleted while a pipeline step is running.
|
|
324
|
+
- **Fitting starts from mlgidbase's new clustering defaults.** The
|
|
325
|
+
Fitting form's "Cluster dist (peaks)" and "(rings)" now start at 2 (they
|
|
326
|
+
were 10), as in mlgidbase 0.1.11, so an unedited form fits like a bare
|
|
327
|
+
`run_fitting()`. Peaks are grouped into a joint fit less eagerly than
|
|
328
|
+
before; set 10 to get the old behaviour. The 2D fit of a single peak,
|
|
329
|
+
the fits of injected boxes and the profile neighbour mask follow the
|
|
330
|
+
form's value (the mask used a fixed 10 before).
|
|
331
|
+
- **The manual 2D fit stays identical to the pipeline fit on pygidfit
|
|
332
|
+
0.1.8.** pygidfit now ignores each peak region's brightest pixels
|
|
333
|
+
(above the 99.9th percentile of the region) when it fits, in both the
|
|
334
|
+
pipeline and the single-peak fit; the single-peak fit passes the value
|
|
335
|
+
explicitly so the two cannot drift apart. The neighbour-box helper
|
|
336
|
+
uses pygidfit's corrected pixel scale.
|
|
337
|
+
- **Boxes are drawn in full.** A detected, fitted or manual box whose
|
|
338
|
+
angular width reaches past the image edge (below 0 degrees, say) used
|
|
339
|
+
to be cut off at the edge. It is now drawn from its position and
|
|
340
|
+
angular width, however far that reaches. Rings, which have no finite
|
|
341
|
+
width, still span the image.
|
|
342
|
+
- **The live 2D preview no longer freezes the window.** Selecting a
|
|
343
|
+
detected or manual peak starts a pygidfit fit to preview what Add to
|
|
344
|
+
fitted would save. That fit ran on the main thread, and for a peak in
|
|
345
|
+
a badly conditioned peak-on-ring cluster it took tens of seconds
|
|
346
|
+
(38 s for one peak in the validation set), during which the window did
|
|
347
|
+
not respond, for example after pressing T onto it. The fit now runs
|
|
348
|
+
in the background: selecting returns at once, the status bar says the
|
|
349
|
+
preview is being fitted, and the cyan box and the parameter readout
|
|
350
|
+
fill in when it finishes. Moving to another peak skips fits that have
|
|
351
|
+
not started. A fit already running cannot be stopped, but closing the
|
|
352
|
+
window does not wait for it.
|
|
353
|
+
- **Add to fitted (2D) no longer freezes the window either.** Clicking
|
|
354
|
+
it (or Ctrl+Return) after selecting a slow peak started a second fit
|
|
355
|
+
on the main thread beside the preview's, so the window froze for the
|
|
356
|
+
length of both. The click now returns at once, the button greys out
|
|
357
|
+
and the status bar says the peak is being fitted; the row is written
|
|
358
|
+
when the fit lands. It reuses the preview's result when the same fit
|
|
359
|
+
is already done, or waits for the preview fit that is running, so the
|
|
360
|
+
peak is fitted once. A result is only reused if the peak, the Pipeline
|
|
361
|
+
panel's fit settings and the neighbouring peaks are unchanged. If you
|
|
362
|
+
move to another peak meanwhile, the row is still written but your
|
|
363
|
+
selection stays where it is; if the file or entry changed, nothing is
|
|
364
|
+
written and the log says so. The batch fit and quick select still fit
|
|
365
|
+
directly.
|
|
366
|
+
- **A 2D fit with an infinite angular width is stored as a ring.**
|
|
367
|
+
pygidfit reports a ring as an infinite angular width, but the row was
|
|
368
|
+
saved as a segment unless Save fitted as ring was ticked. Add to
|
|
369
|
+
fitted (2D), Fit selected (2D) and the pipeline Run fitting now type
|
|
370
|
+
such a fit as a ring and store the usual ring angle of 45 degrees (the
|
|
371
|
+
fit gives none). Fits with a finite width are unchanged, and so are
|
|
372
|
+
tracking gap-fill fits.
|
|
373
|
+
- **Selecting a ring zooms back out.** Selecting a ring with a click or
|
|
374
|
+
from the Peaks table now returns the image to the full view, the same
|
|
375
|
+
as Reset zoom, instead of leaving it zoomed in on the box you had
|
|
376
|
+
selected before. It follows the same Settings switch as zooming in on
|
|
377
|
+
a box.
|
|
378
|
+
- **Pipeline is in front at startup.** The right-hand dock column opens
|
|
379
|
+
on Pipeline instead of Display, and whichever tab you bring forward
|
|
380
|
+
stays in front when you open, switch or close files.
|
|
381
|
+
- **No Scan tracking for single-frame data.** Tracking follows peaks
|
|
382
|
+
across frames, so for a converted file whose entry has a single frame
|
|
383
|
+
the Scan tracking dock and the strip's Track stage are hidden, and
|
|
384
|
+
View menu's Scan tracking entry is greyed out. They come back when a
|
|
385
|
+
multi-frame entry is shown, unless you had closed the dock yourself.
|
|
386
|
+
- **Miller indices without spaces.** The Expected pattern orientation
|
|
387
|
+
field accepts three single digits written together, such as `001`,
|
|
388
|
+
`-110` or `1-10`, as well as the spaced forms.
|
|
389
|
+
- **Conversion: Output moved up, and the directory is optional.** The
|
|
390
|
+
Output section now sits right under Selection and starts open. Leave
|
|
391
|
+
the directory empty to write next to the raw data, in the folder of
|
|
392
|
+
the first checked raw file; the empty field shows which folder that
|
|
393
|
+
is, and the Logs dock says where the files went. If that folder is not
|
|
394
|
+
writable, Convert asks you to choose a directory. With raw files from
|
|
395
|
+
several folders, all outputs go to the first file's folder.
|
|
396
|
+
- **The profile curve for a saved peak is the fit you made.** Selecting
|
|
397
|
+
a fitted or matched peak used to draw a fresh Gaussian fitted to the
|
|
398
|
+
profile, so the curve followed the data and could hide a bad stored
|
|
399
|
+
value. It now draws the stored row as saved: the stored centre and
|
|
400
|
+
width (`radius`, `radius_width`, `angle`, `angle_width`), for 1D and
|
|
401
|
+
2D fits alike. A stored value that does not match the data now shows
|
|
402
|
+
as a curve off the profile peak. Only the curve's height and
|
|
403
|
+
background are read from the profile, because the profile is an
|
|
404
|
+
average over the other axis. Manual and detected peaks keep the live
|
|
405
|
+
fit, which previews what Add-to-fitted would save. A fitted ring
|
|
406
|
+
shows its radial curve only.
|
|
407
|
+
- **A saved peak's profile no longer depends on the box it came from.**
|
|
408
|
+
The profiles of a fitted or matched peak averaged over only the
|
|
409
|
+
central ±σ of the other axis, so the peak height changed when you
|
|
410
|
+
clicked from the detected box to the fitted peak made from it. They
|
|
411
|
+
now average over the stored centre ± the full stored width (±2σ).
|
|
412
|
+
Manual and detected peaks are unchanged.
|
|
413
|
+
|
|
414
|
+
### Fixed
|
|
415
|
+
|
|
416
|
+
- **In-app updates can replace the launcher on Windows.** Started from
|
|
417
|
+
`Scripts\mlgidlab.exe`, the app kept that exe open for as long as it ran
|
|
418
|
+
(Python puts the launcher on its import path, and the package-metadata
|
|
419
|
+
lookups the app and its dependencies make at startup keep such an
|
|
420
|
+
archive open). Windows refuses to rename or delete an open file, so the
|
|
421
|
+
update's step that moves the launcher aside never worked and pip failed
|
|
422
|
+
with `[WinError 32]`. The app now takes the launcher off its import path
|
|
423
|
+
at startup and releases any handle before an update. Found by running the
|
|
424
|
+
updater against a live app on a Windows runner.
|
|
425
|
+
- **"Restart now" after an in-app update works again.** Since the
|
|
426
|
+
a16 source split, answering Yes to the restart prompt that follows
|
|
427
|
+
an update raised a `NameError` (`sys` was not imported in the update
|
|
428
|
+
code) and the app never relaunched. It now relaunches. The test that
|
|
429
|
+
covered the prompt expected any exception, so it hid the error.
|
|
430
|
+
- **Closed raw files leave the Selection list.** Closing a raw file
|
|
431
|
+
(Ctrl+W, or Delete on its row in the file browser) used to leave it in
|
|
432
|
+
the Conversion panel's Selection list, with Convert still enabled,
|
|
433
|
+
until the next raw load. Closing now removes exactly that file from
|
|
434
|
+
the file browser, the entry dropdown and the Selection list; the other
|
|
435
|
+
raw files stay open with their ticks. Ctrl+W closes the file the viewer
|
|
436
|
+
is showing, and closing the last raw file closes the raw batch and
|
|
437
|
+
empties the list.
|
|
438
|
+
- **Select several files in the file browser and close them together.**
|
|
439
|
+
Shift-click, Ctrl-click and Ctrl+A now pick several rows, and Delete
|
|
440
|
+
closes every selected file, raw or converted. Converted files with
|
|
441
|
+
unsaved changes are asked about first, and Cancel closes nothing.
|
|
442
|
+
Picking several rows leaves the viewer where it is.
|
|
443
|
+
- **Python 3.11 installs no longer pick PySide6 6.12.0.** That release
|
|
444
|
+
drops a reference to `None` on every Qt method call that returns
|
|
445
|
+
nothing, and Python 3.11 then aborts the whole process with
|
|
446
|
+
`Fatal Python error: none_dealloc` after enough calls. Python 3.12 and
|
|
447
|
+
later are unaffected. The dependency now excludes exactly that version
|
|
448
|
+
on 3.11, so a fresh install resolves to 6.11.2 there; later releases
|
|
449
|
+
are allowed again. If you installed on Python 3.11 in the last few
|
|
450
|
+
days and the app closed by itself, `pip install "PySide6!=6.12.0"`
|
|
451
|
+
fixes it.
|
|
452
|
+
- **Raw files dropped one at a time all appear in Selection.** Each drop
|
|
453
|
+
used to start its own raw batch, so the Conversion panel's Selection
|
|
454
|
+
list showed only the newest file. A raw file dropped or opened while a
|
|
455
|
+
raw batch exists now joins that batch: the Selection list gains a row
|
|
456
|
+
below the ones already there, with your ticks kept, and the viewer
|
|
457
|
+
shows the new file. A file already in the batch is skipped.
|
|
458
|
+
|
|
459
|
+
## 0.1.0a20 — twentieth alpha (2026-10-07)
|
|
460
|
+
|
|
461
|
+
Two independent pieces of work. Detection becomes configurable from the
|
|
462
|
+
Pipeline dock instead of from a YAML file, and the pattern-simulation
|
|
463
|
+
backend moves up one release to fix a q_xy mask that let reflections
|
|
464
|
+
outside the measured range into every simulated pattern.
|
|
465
|
+
|
|
466
|
+
### Added
|
|
467
|
+
|
|
468
|
+
- **Detection parameters live in the Pipeline dock now.** Fitting and
|
|
469
|
+
Matching have always exposed their parameters as spin boxes and
|
|
470
|
+
combos; Detection only had a picker for an mlgidDETECT YAML config
|
|
471
|
+
file, so trying a different score threshold meant leaving the GUI and
|
|
472
|
+
editing a file. The **Detection** section now carries the parameters
|
|
473
|
+
themselves, and the config-file picker is gone.
|
|
474
|
+
|
|
475
|
+
Inline, because these are the three that get touched: **Score
|
|
476
|
+
threshold** (the confidence a box needs to be kept, so it decides
|
|
477
|
+
which peaks are detected and written at all, unlike the Display
|
|
478
|
+
dock's minimum-score slider, which only hides boxes already in the
|
|
479
|
+
file), **NMS IoU** (the overlap at which two boxes of one peak are
|
|
480
|
+
merged) and **Force CPU** (the documented way out of GPU trouble).
|
|
481
|
+
|
|
482
|
+
Everything else mlgidDETECT reads sits under a collapsed
|
|
483
|
+
**Advanced**: class-aware NMS with its separate ring and segment
|
|
484
|
+
overlaps, the dino ensemble switch and both ONNX model paths,
|
|
485
|
+
re-download, log scaling, histogram equalization, clipping with its
|
|
486
|
+
upper and lower percentiles, horizontal flip, and debug logging. A
|
|
487
|
+
**Reset to defaults** button puts the whole section back.
|
|
488
|
+
|
|
489
|
+
Every field starts at mlgidDETECT's own default, so an untouched
|
|
490
|
+
panel runs exactly as it did before, and a test compares the two sets
|
|
491
|
+
key by key so they cannot drift apart. The **Model** box is unchanged
|
|
492
|
+
and still decides which weights are loaded. Pointing **ONNX base** at
|
|
493
|
+
a model file of your own also switches off the weight download
|
|
494
|
+
pre-flight, which has nothing to fetch or check for a file you
|
|
495
|
+
supply.
|
|
496
|
+
|
|
497
|
+
**The form shows only what the chosen model reads.** mlgidDETECT's
|
|
498
|
+
legacy `faster_rcnn` model applies its own fixed post-processing and
|
|
499
|
+
never fuses an ensemble, so the score threshold, the NMS overlaps,
|
|
500
|
+
class-aware NMS, the ensemble switch and the second ONNX path would
|
|
501
|
+
do nothing under it. Those seven rows are hidden while **Model** is
|
|
502
|
+
set to `faster_rcnn` and come back for `dino` and `(default)`, which
|
|
503
|
+
runs dino. Values you entered are kept while a row is hidden.
|
|
504
|
+
|
|
505
|
+
### Changed
|
|
506
|
+
|
|
507
|
+
- **Pipeline pin:** `pygidsim` 0.1.4 to 0.1.7. The q-range mask that
|
|
508
|
+
pygidsim applies to a simulated 2D pattern compared q_z against the
|
|
509
|
+
q_xy limit, so the q_xy ceiling was never enforced and reflections
|
|
510
|
+
beyond the measured q_xy range survived into every pattern. Since
|
|
511
|
+
that pattern is what mlgidMATCH matches against, the **Expected
|
|
512
|
+
pattern** overlay now shows fewer reflections and the ones it shows
|
|
513
|
+
are inside the measured range, and matching chooses between fewer,
|
|
514
|
+
correct candidates. **Re-parse any CIF pickle** built with the old
|
|
515
|
+
version: nothing in a pickle says which pygidsim made it.
|
|
516
|
+
|
|
517
|
+
- **CIF parsing no longer builds a form-factor database it may never
|
|
518
|
+
use.** pygidsim's experiment parameters build it on first access
|
|
519
|
+
instead of on construction, which is work saved every time
|
|
520
|
+
parameters are derived for an entry.
|
|
521
|
+
|
|
522
|
+
- **An empty simulated pattern says so.** pygidsim used to raise a
|
|
523
|
+
named error when a CIF produced no reflections; it now returns empty
|
|
524
|
+
arrays, and mlgidMATCH turned that one step later into numpy's
|
|
525
|
+
`zero-size array to reduction operation maximum which has no
|
|
526
|
+
identity`. Parsing such a CIF now reports what was being simulated
|
|
527
|
+
and the usual cause: no reflection of that structure falls inside the
|
|
528
|
+
entry's q range.
|
|
529
|
+
|
|
530
|
+
- `pygidfit` **stays at 0.1.4.** 0.1.5 exists and changes how fits are
|
|
531
|
+
seeded and solved, but `mlgidbase 0.1.8` requires exactly 0.1.4, so
|
|
532
|
+
it cannot be installed alongside the rest of the stack. Recorded in
|
|
533
|
+
`docs/backend_compatibility.md` for an upstream report.
|
|
534
|
+
|
|
535
|
+
## 0.1.0a19 — nineteenth alpha (2026-09-10)
|
|
536
|
+
|
|
537
|
+
A backend-only release: the pipeline stack moves to **mlgidbase 0.1.8**,
|
|
538
|
+
and with it to **pygid 0.2.17** and **pygidfit 0.1.4**. No GUI features
|
|
539
|
+
were added or removed.
|
|
540
|
+
|
|
541
|
+
### Fixed
|
|
542
|
+
|
|
543
|
+
- **The critical-angle mask really masks now.** Fitting takes a
|
|
544
|
+
*Critical angle* and uses it, together with the incidence angle and
|
|
545
|
+
the wavelength, to cut the image at the sample horizon before fitting.
|
|
546
|
+
pygidfit 0.1.3 computed that cut ten times too small (a stray division
|
|
547
|
+
by ten, from a docstring that claimed the wavelength was in metres
|
|
548
|
+
while every caller passes Angstrom), so the mask covered almost
|
|
549
|
+
nothing. pygidfit 0.1.4 fixes it, and mlgidbase 0.1.8 is the first
|
|
550
|
+
release that allows the new pygidfit, so the pin could finally move.
|
|
551
|
+
|
|
552
|
+
**This changes fitting results** for any run with a non-zero critical
|
|
553
|
+
angle: peaks below the horizon that used to slip through are now
|
|
554
|
+
excluded. The manual 2D fit preview calls the same pygidfit code, so
|
|
555
|
+
preview and pipeline still agree exactly.
|
|
556
|
+
|
|
557
|
+
- **The "Critical angle:" tooltip** described a clustering parameter it
|
|
558
|
+
never was. It now says what the value does.
|
|
559
|
+
|
|
560
|
+
- **The detection Model box beats a config file again.** mlgidbase's
|
|
561
|
+
`load_config` used to drop the model type whenever a detection config
|
|
562
|
+
file was also given (an `==` where an `=` was meant); 0.1.8 fixes
|
|
563
|
+
that, so an explicit choice in the **Model** combo now wins. The
|
|
564
|
+
model pre-flight, which downloads the weights before the run, follows
|
|
565
|
+
the same rule and so fetches the file that will actually be loaded.
|
|
566
|
+
|
|
567
|
+
### Changed
|
|
568
|
+
|
|
569
|
+
- **Pipeline pins:** `mlgidbase` 0.1.5 to 0.1.8, `pygid` 0.2.13 to
|
|
570
|
+
0.2.17, `pygidfit` 0.1.3 to 0.1.4. `mlgiddetect` (0.2.8), `mlgidmatch`
|
|
571
|
+
(0.1.3) and `pygidsim` (0.1.4) are unchanged. mlgidbase 0.1.8 takes
|
|
572
|
+
pygid on a floor rather than an exact pin, so mlgidLAB keeps pinning
|
|
573
|
+
pygid exactly to stop that floor drifting between installs.
|
|
574
|
+
|
|
575
|
+
- **Detected peaks in exported official figures** are drawn as a single
|
|
576
|
+
wedge rather than two arcs, which is mlgidbase 0.1.8's own change. The
|
|
577
|
+
new percentile-based colour limits it also introduced never apply
|
|
578
|
+
here: the export window always sends its own **Intensity** range.
|
|
579
|
+
|
|
580
|
+
- Detection numerics are **not** affected by the mlgidbase bump: the
|
|
581
|
+
configuration defaults 0.1.8 stopped forcing are already mlgidDETECT
|
|
582
|
+
0.2.8's own defaults, and the rest of the config it dropped is read
|
|
583
|
+
nowhere in the installed stack. Verified key by key, and recorded in
|
|
584
|
+
`docs/backend_compatibility.md`.
|
|
585
|
+
|
|
586
|
+
## 0.1.0a18 — eighteenth alpha (2026-09-03)
|
|
587
|
+
|
|
588
|
+
### Added
|
|
589
|
+
|
|
590
|
+
- **Interactive NeXus/HDF5 editing.** A new **Structure** tab, beside
|
|
591
|
+
Image and Data, makes every field, attribute, group and link in the
|
|
592
|
+
open file editable in place. Edits land in the session's working copy
|
|
593
|
+
the moment they are committed; the file on disk is untouched until you
|
|
594
|
+
save, so closing without saving is a complete revert.
|
|
595
|
+
|
|
596
|
+
- Attributes: add, rename, retype, edit, remove. An edited attribute
|
|
597
|
+
keeps its own type, and `NX_class` and `units` come with real
|
|
598
|
+
suggestions instead of a blank box.
|
|
599
|
+
- Structure: create groups and fields from the tree's action row or
|
|
600
|
+
its context menu, with NeXus templates that pre-create what a group
|
|
601
|
+
nearly always has. Rename, move, delete.
|
|
602
|
+
- Links: create hard, soft and external links, see what one points at,
|
|
603
|
+
retarget it, or unlink it — all without following it. **Follow** is
|
|
604
|
+
the only thing that opens an external link, and only on request.
|
|
605
|
+
- Copy and paste, within a file and *between* two open files, plus
|
|
606
|
+
**Paste from file…** for a file that is not open at all. The
|
|
607
|
+
clipboard holds a reference, so copying a large stack costs nothing
|
|
608
|
+
until it is pasted, and copying a link keeps it a link.
|
|
609
|
+
- A value grid for datasets: axis selectors for N-d arrays, one column
|
|
610
|
+
per field for compound tables, and row insert and delete.
|
|
611
|
+
- Undo and redo for all of it, with a running list of what has changed
|
|
612
|
+
that can be copied out as text.
|
|
613
|
+
- **Find** by name, attribute name or attribute value.
|
|
614
|
+
- A **Check** section that reports what would stop the viewer or the
|
|
615
|
+
pipeline from reading the file, and names the fix.
|
|
616
|
+
- Raw detector files are read-only throughout: they have no working
|
|
617
|
+
copy, and the editor never opens one for writing.
|
|
618
|
+
|
|
619
|
+
- **Its own tree**, of every file you have open — so a group can be
|
|
620
|
+
copied out of one and pasted into another without leaving the tab.
|
|
621
|
+
It lists lazily and never follows a link, so a master of external
|
|
622
|
+
scans opens as fast as any other file, and it holds no file handle
|
|
623
|
+
of its own.
|
|
624
|
+
|
|
625
|
+
- The **workflow strip** above the image can be folded away with the
|
|
626
|
+
chevron at its left, and remembers the choice.
|
|
627
|
+
|
|
628
|
+
- The Structure tab is a workspace rather than a page: find and the tree
|
|
629
|
+
on the left, the selected node on the right, the file's health and
|
|
630
|
+
this session's changes below. **Nothing scrolls at the tab level** —
|
|
631
|
+
each section scrolls inside itself — and every division is a splitter
|
|
632
|
+
you can drag, remembered between launches. Each region is drawn as a
|
|
633
|
+
bordered pane, so a section has an edge rather than a rule that stops
|
|
634
|
+
in mid-air.
|
|
635
|
+
|
|
636
|
+
- The Structure tab folds every dock away while it is in front — the
|
|
637
|
+
File browser included, since the tab navigates from its own tree — and
|
|
638
|
+
puts back exactly the ones that were open.
|
|
639
|
+
|
|
640
|
+
Three things it used to do per click are now done once, when you
|
|
641
|
+
leave the tab: rebuilding the File browser after a structural edit,
|
|
642
|
+
switching the image to the entry you last clicked, and loading the
|
|
643
|
+
frame behind the entry combo. All three update something the tab
|
|
644
|
+
hides, and doing them per edit made a large file feel slow for no
|
|
645
|
+
visible benefit. Switching entry from the toolbar while editing is
|
|
646
|
+
now instant; the image catches up when you go back to it.
|
|
647
|
+
|
|
648
|
+
- **Shift-select in the Structure tree, and copy a whole range at once.**
|
|
649
|
+
The tab's tree takes extended selections, and Copy, Cut and Delete act
|
|
650
|
+
on all of it — the context menu says "Copy 6 nodes" so it is clear
|
|
651
|
+
which it means. Everything else stays per-node, since there is no
|
|
652
|
+
sensible reading of "rename these six".
|
|
653
|
+
|
|
654
|
+
The whole batch is **one entry in the changes list and one Ctrl+Z**,
|
|
655
|
+
not one per node. Selecting a group and one of its children copies the
|
|
656
|
+
group once rather than pasting the child twice. A node whose name
|
|
657
|
+
clashes still asks, and backing out of that one leaves the rest of the
|
|
658
|
+
batch to land.
|
|
659
|
+
|
|
660
|
+
- **Find takes a path, and can be told to respect case.** A query with
|
|
661
|
+
a slash is read as a place and then a term: `sample/material` finds a
|
|
662
|
+
match for *material* under a group matching *sample*, and the parts do
|
|
663
|
+
not have to be adjacent. Searching for a slash still works —
|
|
664
|
+
`1/Angstrom` is a unit — because both readings run over the same walk.
|
|
665
|
+
The new **Aa** button matches upper and lower case exactly; it is off
|
|
666
|
+
by default, and flipping it re-runs what is in the box. Between them,
|
|
667
|
+
a two-letter term like `Si` is usable in a file that also contains
|
|
668
|
+
*signal* and *silicon*.
|
|
669
|
+
|
|
670
|
+
Find now also searches **small dataset values**, which is where NeXus
|
|
671
|
+
keeps most of its metadata — a sample name, a chemical formula, a
|
|
672
|
+
start time. Large datasets are skipped by their declared size, so a
|
|
673
|
+
detector stack is never read to answer a search.
|
|
674
|
+
|
|
675
|
+
- **Rename a node where its name is printed.** The Structure tab's
|
|
676
|
+
header splits at the last `/`: where the node lives stays muted and
|
|
677
|
+
read-only, and its own name can be typed over. Double-click it (or
|
|
678
|
+
press F2), Enter commits, Escape puts the old name back, and so does
|
|
679
|
+
clicking away — the same rename as the context menu's, with the same
|
|
680
|
+
undo entry and the same warning on a protected node, minus the
|
|
681
|
+
dialog. The panel now follows a renamed node instead of going on
|
|
682
|
+
naming a path the rename emptied, which also fixes the header after
|
|
683
|
+
the older dialog routes, and after undo and redo.
|
|
684
|
+
|
|
685
|
+
- **A crash log.** A hard crash — a segfault out of Qt, h5py or a
|
|
686
|
+
driver — used to take the window with it and leave nothing behind.
|
|
687
|
+
Every run now appends to `mlgidlab_crash.log` in the system temp
|
|
688
|
+
directory, and a crash writes the Python stack of every thread into
|
|
689
|
+
it. Nothing is written while the app is healthy beyond one line per
|
|
690
|
+
start.
|
|
691
|
+
|
|
692
|
+
- **Correct a detected peak's score.** The *Score* row showed the
|
|
693
|
+
model's confidence and nothing more, so fixing a wrong call meant
|
|
694
|
+
re-labelling the peak from scratch. It is now an editor: **High**,
|
|
695
|
+
**Medium** and **Low** buttons (the same 1.0 / 0.5 / 0.1 an added
|
|
696
|
+
peak has always got) plus a box for any value in between.
|
|
697
|
+
|
|
698
|
+
It applies to everything you have selected, so Ctrl-click a handful
|
|
699
|
+
of peaks and one press relabels all of them — and one Ctrl+Z puts
|
|
700
|
+
them all back. Changing a score only changes the score: the box does
|
|
701
|
+
not move.
|
|
702
|
+
|
|
703
|
+
- **Show another peak table from your file.** If a file has a peak
|
|
704
|
+
table mlgidLAB does not know about — say `Br_peaks` in the analysis
|
|
705
|
+
group — you can now put it on screen. In **Settings → Extra peak
|
|
706
|
+
lists**, add it (the dataset is picked from what the open file
|
|
707
|
+
actually has), give it a name, and say whether it should read and
|
|
708
|
+
look like detected or fitted peaks. It then appears in the Display
|
|
709
|
+
dock as its own layer, with its own show/hide box and its own
|
|
710
|
+
colour, line style and width.
|
|
711
|
+
|
|
712
|
+
It is a display layer and stays one. You can click a box to see its
|
|
713
|
+
numbers and drag it, which writes back to that table and only that
|
|
714
|
+
table. Everything else — the Peaks table, CSV export, fitting,
|
|
715
|
+
matching, peak tracking, Add to fitted, Delete — carries on as if it
|
|
716
|
+
were not there.
|
|
717
|
+
|
|
718
|
+
- **Every overlay's colour, line style and width can be set.** The
|
|
719
|
+
swatch beside a matched structure used to open a colour grid; it now
|
|
720
|
+
opens a small editor with the grid, a row of line-style buttons and a
|
|
721
|
+
width box. The same editor is behind the **Detected peaks** and
|
|
722
|
+
**Fitted peaks** swatches in the Display dock, which were previously
|
|
723
|
+
just pictures.
|
|
724
|
+
|
|
725
|
+
Nothing looks different until you change something: every layer keeps
|
|
726
|
+
the style it has always had, and **Automatic** puts it back.
|
|
727
|
+
|
|
728
|
+
The editor stays open while you work, so you can set a colour and a
|
|
729
|
+
width without reopening it, and the image follows each change as you
|
|
730
|
+
make it. Only what you actually touch is remembered — widen one
|
|
731
|
+
structure's line and it still picks up a fresh colour from the
|
|
732
|
+
palette when the structures in the file change. Your choices are kept
|
|
733
|
+
per structure and per overlay, across files and restarts, and colours
|
|
734
|
+
you had already picked carry over.
|
|
735
|
+
|
|
736
|
+
- **A different incidence angle for every frame.** Conversion's
|
|
737
|
+
*Angle of incidence* took one number, so a scan measured at a varying
|
|
738
|
+
angle came out with every frame labelled — and converted — at the
|
|
739
|
+
same one. It now takes any of three things:
|
|
740
|
+
|
|
741
|
+
- `0.2` — one angle for the whole scan, as before;
|
|
742
|
+
- `0.1, 0.3, 0.5, 0.7` — an angle per frame, written out;
|
|
743
|
+
- `(0.1, 1.5, 13)` — a ramp from 0.1° to 1.5°.
|
|
744
|
+
|
|
745
|
+
**A ramp gives one more angle than its step count**: 13 steps is 14
|
|
746
|
+
angles. That is the same convention pygid uses, so the three numbers
|
|
747
|
+
mean the same thing here as they do there — but because it reads
|
|
748
|
+
backwards, the line under the field always tells you what your text
|
|
749
|
+
came to ("14 angles, 0.1° to 1.5°"), goes red the moment that
|
|
750
|
+
disagrees with what you have selected, and the count is repeated in
|
|
751
|
+
the log when the run starts. Three numbers are a ramp unless you have
|
|
752
|
+
exactly three frames selected, in which case they are three angles.
|
|
753
|
+
|
|
754
|
+
The array has one value per frame of the files you ticked, in order —
|
|
755
|
+
so converting frames 3 and 7 of a fourteen-image stack still wants
|
|
756
|
+
fourteen angles, and uses the fourth and eighth. Scans over 32 frames
|
|
757
|
+
keep the single-value field for now; the reason is upstream and
|
|
758
|
+
reported.
|
|
759
|
+
|
|
760
|
+
The import dialog for already-converted images takes the same thing.
|
|
761
|
+
|
|
762
|
+
- **Transpose sits with the flips.** It was buried in Conversion's
|
|
763
|
+
collapsed *Manual overrides*, which read as a rarely-needed
|
|
764
|
+
correction, and unlike *Flip horizontally* and *Flip vertically* it
|
|
765
|
+
did nothing to the picture in front of you. It is now the third
|
|
766
|
+
checkbox in the **Orientation** row and reorients the live raw
|
|
767
|
+
preview the moment you tick it, in the order pygid applies them, so
|
|
768
|
+
what you see is what the conversion writes. Flipping keeps your zoom;
|
|
769
|
+
transposing refits, because it swaps the frame's width and height.
|
|
770
|
+
|
|
771
|
+
While there: the pixel readout under the cursor was reading the
|
|
772
|
+
*unflipped* frame, so with a flip on it named and measured the wrong
|
|
773
|
+
pixel. It now follows whatever orientation is showing.
|
|
774
|
+
|
|
775
|
+
- **Run the pipeline into a table of your own.** Detection and Fitting
|
|
776
|
+
always overwrote `detected_peaks` and `fitted_peaks`, so trying a
|
|
777
|
+
second model or a second parameter set meant destroying the first
|
|
778
|
+
result. Register an extra peak list in **Settings** and tick
|
|
779
|
+
**Pipeline primary**, and Detection and Fitting read and write that
|
|
780
|
+
table instead of the standard one for its flavour, letting a second
|
|
781
|
+
analysis sit beside the first. One table per flavour.
|
|
782
|
+
|
|
783
|
+
Niche on purpose, and narrow on purpose: nothing else changes. The
|
|
784
|
+
Peaks table, CSV export, peak tracking and matching all keep using
|
|
785
|
+
the standard tables, so with a primary Fitted table matching goes on
|
|
786
|
+
matching a table the pipeline is no longer updating. The Settings
|
|
787
|
+
hint says so.
|
|
788
|
+
|
|
789
|
+
A run interrupted partway (a crash, or the GPU taking the process
|
|
790
|
+
with it) is repaired automatically the next time the file is opened
|
|
791
|
+
or run, and never at the cost of the interrupted run's output.
|
|
792
|
+
|
|
793
|
+
### Changed
|
|
794
|
+
|
|
795
|
+
- **The mouse wheel no longer changes a value.** Scrolling a dock used
|
|
796
|
+
to step whatever field the cursor happened to be over — a `dq`, a
|
|
797
|
+
range, a frame count — which is easy to do without noticing and
|
|
798
|
+
produces a wrong result rather than an error. Comboboxes were already
|
|
799
|
+
protected; spin boxes now are too. The wheel scrolls the panel
|
|
800
|
+
instead, so a long form is no more awkward to move through than
|
|
801
|
+
before. Sliders are unchanged, and so is an open dropdown's list.
|
|
802
|
+
|
|
803
|
+
- **A registered extra peak list treated as detected can now have its
|
|
804
|
+
scores edited**, the same way the built-in detected layer can, since
|
|
805
|
+
relabelling is usually why such a table is registered in the first
|
|
806
|
+
place. The write goes to that list's own dataset and nothing else. A
|
|
807
|
+
list treated as fitted is unaffected, and a table with no score column
|
|
808
|
+
at all now shows no Score row instead of a synthesised `0.000`.
|
|
809
|
+
|
|
810
|
+
### Fixed
|
|
811
|
+
|
|
812
|
+
- **Deleting from a file now frees the space when you save.** HDF5
|
|
813
|
+
unlinks an object without shrinking the file -- the blocks become
|
|
814
|
+
reusable inside that file and its size on disk does not move -- and
|
|
815
|
+
saving was a byte copy of the working copy, so the holes were
|
|
816
|
+
reproduced faithfully and deleting a large stack freed nothing, ever.
|
|
817
|
+
Saving now rewrites the file without them when there is enough to
|
|
818
|
+
reclaim to be worth it, measured by comparing the file's size against
|
|
819
|
+
what its datasets actually occupy. A file with nothing to reclaim
|
|
820
|
+
takes the same byte copy it always did. Chunking, compression,
|
|
821
|
+
attributes and links are all carried across; a link stays a link
|
|
822
|
+
rather than being expanded into a copy of its target. Saving is also
|
|
823
|
+
atomic now: both paths write beside the target and rename into place,
|
|
824
|
+
so an interrupted save cannot leave half a file. The working copy
|
|
825
|
+
still carries the holes until you save, because repacking after every
|
|
826
|
+
delete would rewrite the whole file each time.
|
|
827
|
+
|
|
828
|
+
- **The app icon now shows in the Linux dash, switcher and top bar.**
|
|
829
|
+
The window carried the right icon, but GNOME resolves a window to an
|
|
830
|
+
*application* before it draws any of those surfaces and takes the icon
|
|
831
|
+
from that application's `.desktop` file. mlgidLAB shipped none, so
|
|
832
|
+
there was nothing to resolve to, and on Wayland there is no fallback
|
|
833
|
+
at all because `app_id` is all the compositor gets. The app now
|
|
834
|
+
advertises a desktop file name to Qt and installs a validated
|
|
835
|
+
`mlgidlab.desktop` plus the seven PNG sizes into the user's XDG data
|
|
836
|
+
directory on first run. `Exec` is written as an absolute path, since
|
|
837
|
+
the console script usually lives in a conda env the desktop session's
|
|
838
|
+
`PATH` never sees, and it is refreshed if that environment moves.
|
|
839
|
+
Best-effort throughout: a read-only home costs the dash icon, not the
|
|
840
|
+
launch. Windows already had its counterpart of this fix; this is the
|
|
841
|
+
Linux half.
|
|
842
|
+
|
|
843
|
+
- **The Display dock now reports a saved fitted peak, not a refit of
|
|
844
|
+
it.** Selecting a peak that the pipeline had already fitted showed
|
|
845
|
+
numbers in the Selected-peak panel that did not match the same peak's
|
|
846
|
+
row in the Peaks dock. The panel's Fitted block was fed by the profile
|
|
847
|
+
viewer's live 1D Gaussian for every kind of selection, so the widths
|
|
848
|
+
were FWHM against the dock's stored `2σ` (a fixed 1.177×), the centre
|
|
849
|
+
and width came from a fresh fit of the current profile rather than
|
|
850
|
+
from the file, and the amplitude was a 1D height on an axis-averaged
|
|
851
|
+
profile instead of the stored 2D Gaussian height. A `fitted`,
|
|
852
|
+
`matched` or fitted-flavoured extra-list selection now reads its own
|
|
853
|
+
stored row, in the same quantities and formats the Peaks dock prints,
|
|
854
|
+
and the block is labelled `r / Δr / a / Δa` to match. A **manual**
|
|
855
|
+
peak is unchanged and still previews what Add-to-fitted would write,
|
|
856
|
+
now under a heading that says so. The profile plot's fit curve is
|
|
857
|
+
unchanged in every case: it still follows the data on screen.
|
|
858
|
+
|
|
859
|
+
- **A registered extra peak list now keeps rendering after an entry
|
|
860
|
+
switch.** The layer appeared on the entry it was registered on and
|
|
861
|
+
then stayed blank for the rest of the session — the only way back was
|
|
862
|
+
to remove and re-add it in Settings. The peaks for the frame an entry
|
|
863
|
+
lands on are read on a worker thread, and that read was not asking for
|
|
864
|
+
the registered lists; the window nevertheless recorded the frame as
|
|
865
|
+
loaded, so nothing ever read them. Both worker paths now carry the
|
|
866
|
+
registered dataset names, and an overlay read that predates a
|
|
867
|
+
registration is refetched rather than trusted.
|
|
868
|
+
|
|
869
|
+
- **Every Browse button now starts where you left off.** Opening a
|
|
870
|
+
scan, then picking a mask, then saving a PONI used to drop you in
|
|
871
|
+
three unrelated directories, and several buttons opened at the
|
|
872
|
+
filesystem root every time. There is now one browsing directory for
|
|
873
|
+
the whole app: a dialog opens where the last one finished, whatever
|
|
874
|
+
it was for, and the choice is kept until you change it — across a
|
|
875
|
+
restart as well as within a session. A button that suggests a file
|
|
876
|
+
name still suggests it; only the folder is shared. The calibration
|
|
877
|
+
window's own pickers follow the same directory, including the *Save
|
|
878
|
+
as PONI* button inside it.
|
|
879
|
+
|
|
880
|
+
Every dialog now uses Qt's own file picker rather than the
|
|
881
|
+
platform's, which was already true of Open: any of them can now land
|
|
882
|
+
in a folder of thousands of detector images, and the platform picker
|
|
883
|
+
makes a thumbnail of every one before the listing can be scrolled.
|
|
884
|
+
|
|
885
|
+
- **Opening a second file while editing the first could kill the
|
|
886
|
+
window.** Not an error dialog — the process died outright. After any
|
|
887
|
+
rebuild of the File browser the app puts the user's selection back,
|
|
888
|
+
and that selection was being delivered to the click handler as though
|
|
889
|
+
the user had made it. The handler promotes the selected file to the
|
|
890
|
+
active session, which — with the Structure tab in front — tears the
|
|
891
|
+
browser down again mid-restore, leaving the next line holding an index
|
|
892
|
+
into a model that no longer had one. Qt's sort proxy then walked it.
|
|
893
|
+
Rare, because it needed the restored selection to sit in a file that
|
|
894
|
+
was not already active, which is exactly what opening a second file
|
|
895
|
+
arranges. A restore is now marked as a restore, and the handler
|
|
896
|
+
ignores it.
|
|
897
|
+
|
|
898
|
+
- **The view controls above the image could be dead on a single-frame
|
|
899
|
+
file.** With one frame the whole frame transport is hidden, and the
|
|
900
|
+
layout skips a cluster with nothing visible in it — but a skipped
|
|
901
|
+
widget keeps its default size, so the emptied cluster sat on top of
|
|
902
|
+
the Cartesian / Polar buttons and the colormap picker and swallowed
|
|
903
|
+
every click. Loading a second, multi-frame file appeared to fix it,
|
|
904
|
+
because that gave the cluster real content.
|
|
905
|
+
|
|
906
|
+
- **Flipping the detector image now moves the beam center with it.**
|
|
907
|
+
Ticking *Flip LR* or *Flip UD* on its own flipped the image but left
|
|
908
|
+
the beam center where it was, so the converted frame came out with its
|
|
909
|
+
missing wedge mirrored relative to the data. The cause was the PONI
|
|
910
|
+
autofill: it pre-fills the Manual-override boxes as a readout, and
|
|
911
|
+
those values were being sent back as overrides, which put pygid in the
|
|
912
|
+
one state where it applies the flips to the image but not to the
|
|
913
|
+
center. An untouched override field is no longer treated as an
|
|
914
|
+
override, and a center you *do* type in now genuinely wins over the
|
|
915
|
+
PONI (it never reached the q maps before).
|
|
916
|
+
- **Peaks can be added before the pipeline has ever run.** Drawing a box
|
|
917
|
+
and pressing *Add to detected* / *Add to fitted* — or committing one
|
|
918
|
+
with quick select — failed on any frame that had never been through a
|
|
919
|
+
detection or fitting run, with a warning telling you to run the
|
|
920
|
+
pipeline first. That is every frame of a freshly converted file, so
|
|
921
|
+
labelling from scratch, which is the whole point of quick select, was
|
|
922
|
+
the one case that could not work. The frame's peaks table (and any
|
|
923
|
+
missing analysis group above it) is now created on demand, exactly as
|
|
924
|
+
pygid would have created it.
|
|
925
|
+
|
|
926
|
+
## 0.1.0a17 — seventeenth alpha (2026-08-19)
|
|
927
|
+
|
|
928
|
+
### Added
|
|
929
|
+
|
|
930
|
+
- **Quick select: label without leaving the image.** A new checkbox in
|
|
931
|
+
the Display dock, with a dropdown beside it. While it is on, drawing
|
|
932
|
+
the next box commits the previous one — as a detected peak, a fitted
|
|
933
|
+
one, or both — so labelling a frame is draw, draw, draw instead of
|
|
934
|
+
draw, cross to the panel, press a button, come back. A box drawn on
|
|
935
|
+
top of the pending one replaces it instead, which is how you correct
|
|
936
|
+
an attempt. The last box is committed when you click away, press
|
|
937
|
+
Enter, change frame or turn the mode off; Esc still discards it. One
|
|
938
|
+
Ctrl+Z turns a committed peak back into the box it was drawn as. A fit
|
|
939
|
+
that will not converge never interrupts the run with a dialog — the
|
|
940
|
+
box is kept as a detected peak and the reason goes to the log.
|
|
941
|
+
- **Select and delete peaks from the Peaks tables.** The Detected and
|
|
942
|
+
Fitted tabs now take Ctrl+click, Shift+click and Ctrl+A for several
|
|
943
|
+
rows at once, and the image follows along (and the other way round —
|
|
944
|
+
a multi-selection made on the image now highlights every one of its
|
|
945
|
+
rows in the table). Pressing Delete with rows selected removes them,
|
|
946
|
+
through exactly the same confirmation and undo as the Delete key on
|
|
947
|
+
the image. The Matched tab is unchanged: a row there is a whole
|
|
948
|
+
structure, not a peak.
|
|
949
|
+
- **One fitted peak per detected peak.** A fit is now stored under the id
|
|
950
|
+
of the detected peak it came from, so fitting a peak again replaces its
|
|
951
|
+
fit instead of adding a second one, and the fitted peaks can no longer
|
|
952
|
+
outnumber the detected ones. Deleting a detected peak deletes its fit
|
|
953
|
+
too; deleting a fit leaves the detection alone unless you ask for that
|
|
954
|
+
as well. A hand-drawn box is added to the detected peaks first, so
|
|
955
|
+
every fit has a detection behind it. Both parts are switches in
|
|
956
|
+
Settings — the link is on by default, the reverse delete is off — and
|
|
957
|
+
with the link off everything behaves exactly as it did before.
|
|
958
|
+
- **A hover preview for peak selection.** Moving over the image outlines
|
|
959
|
+
the box a click would take, and when boxes are stacked the status bar
|
|
960
|
+
says how many are under the cursor.
|
|
961
|
+
- **A workflow rail.** A strip above the image showing the five stages
|
|
962
|
+
in order — Convert, Detect, Fit, Match, Track — with what each has
|
|
963
|
+
produced for the current frame. Clicking a stage brings its dock
|
|
964
|
+
forward; the run glyph presses that dock's own Run button, so nothing
|
|
965
|
+
about how a run is configured or queued changes.
|
|
966
|
+
- **A welcome page.** With no file open the window used to be empty
|
|
967
|
+
axes and an empty tree. It now shows the mark, Open and Import, the
|
|
968
|
+
recent files, a reminder that files can be dropped anywhere on the
|
|
969
|
+
window, and — when the analysis backend is not installed — one line
|
|
970
|
+
saying so, which previously only surfaced when a run failed. The
|
|
971
|
+
empty Peaks and Scan-tracking tables say what would fill them.
|
|
972
|
+
- **An application icon.** mlgidLAB now has a window / taskbar / Alt-Tab
|
|
973
|
+
icon, and a family-consistent `mlgidLAB` wordmark in the README and
|
|
974
|
+
the About dialog. Both are drawn from one description of the mlgid
|
|
975
|
+
family mark, whose geometry was measured off the family logo, so the
|
|
976
|
+
app icon is literally the same node graph the rest of mlgid-project
|
|
977
|
+
uses — recoloured to the detector colormap.
|
|
978
|
+
- **Icons in the menus and on the controls.** 43 monochrome SVG glyphs,
|
|
979
|
+
recoloured to the live theme at load time, on the File / Edit / Tools
|
|
980
|
+
/ View / Settings / Help entries, the dock toggles, the dock tabs,
|
|
981
|
+
the playback transport and the file-browser Refresh button.
|
|
982
|
+
|
|
983
|
+
### Changed
|
|
984
|
+
|
|
985
|
+
- **The right-hand docks open wide enough to read.** The column was
|
|
986
|
+
pinned to 350 px, which compressed the Pipeline form (its
|
|
987
|
+
"Config (yaml)" field showed as a stub) — the panels sit in scroll
|
|
988
|
+
areas with the horizontal scrollbar locked off, so a narrow column
|
|
989
|
+
elides rather than scrolls. The width is now measured from the
|
|
990
|
+
panels themselves, including the sections that start collapsed, and
|
|
991
|
+
the window opens at 1600x950 where the screen allows it so there is
|
|
992
|
+
room for it.
|
|
993
|
+
|
|
994
|
+
- **The strips above the image wrap instead of setting a width floor.**
|
|
995
|
+
The viewer's control bar and the workflow rail were single rows whose
|
|
996
|
+
minimum width is the sum of everything in them, which stopped the
|
|
997
|
+
central column from being dragged narrower than about 740 px. Both now
|
|
998
|
+
reflow onto a second row, so the floor is the widest single cluster
|
|
999
|
+
(about 280 px) and the side docks can be pulled out much further.
|
|
1000
|
+
Controls wrap as clusters, never between a label and its own control.
|
|
1001
|
+
|
|
1002
|
+
- **Primary and destructive actions now look like what they are.** Run
|
|
1003
|
+
detection / fitting / matching, Run full pipeline, Convert, Track
|
|
1004
|
+
peaks, Save figure and the calibration "Add to conversion" buttons
|
|
1005
|
+
carry an accent border and label; Delete peak and the metadata Remove
|
|
1006
|
+
read as destructive. The six "Clear" buttons deliberately stay
|
|
1007
|
+
neutral - they clear a path field, not analysis results.
|
|
1008
|
+
- **Progress bars fill with the accent.** The pipeline's two run bars,
|
|
1009
|
+
the CIF parse bar, both status-bar bars and every progress dialog now
|
|
1010
|
+
fill in the theme's accent instead of the default blue, so a run in
|
|
1011
|
+
flight is the one moving, coloured thing on screen.
|
|
1012
|
+
- **The status bar reports activity, not just state.** Unsaved changes
|
|
1013
|
+
show as a dot in front of the file name instead of a `*` glued to it;
|
|
1014
|
+
a pipeline run in flight colours its cell and gets a live bar, and
|
|
1015
|
+
clicking that cell opens the Logs dock; the cursor readout is
|
|
1016
|
+
monospace and now carries `d` and, where the entry has a wavelength,
|
|
1017
|
+
the scattering angle `2θ`. The polar map's azimuth is written `χ` so
|
|
1018
|
+
it cannot be misread as `2θ` beside it.
|
|
1019
|
+
- **The viewer's control strip reads as controls.** Cartesian / Polar is
|
|
1020
|
+
a segmented toggle instead of two radios, Log scale is an on/off
|
|
1021
|
+
button, and the colormap dropdown shows each ramp as a colour chip
|
|
1022
|
+
rather than only its name.
|
|
1023
|
+
- **Every section now has the same shape.** Sections were built three
|
|
1024
|
+
ways (a hand-bolded label, a collapsible header, a group box), so the
|
|
1025
|
+
Display, Pipeline and Conversion docks each read like a different
|
|
1026
|
+
program. They share one card now: title, hairline, body. "Selected
|
|
1027
|
+
peak" loses its box and joins the column it lives in.
|
|
1028
|
+
- **Section headers, tables and the status bar were restyled.**
|
|
1029
|
+
Collapsible sections get a chevron and a hairline rule instead of
|
|
1030
|
+
Qt's stock triangle; the peaks, scan-tracking and conversion tables
|
|
1031
|
+
share one look; status-bar fields separate cleanly with the file name
|
|
1032
|
+
carrying the emphasis.
|
|
1033
|
+
- Colours moved into a semantic token table (`mlgidlab/theme_tokens.py`)
|
|
1034
|
+
behind a scoped stylesheet layer (`mlgidlab/skin.py`). Third-party
|
|
1035
|
+
widgets - silx's tree and data viewer, pyqtgraph's plots, pyFAI's
|
|
1036
|
+
calibration pages - are deliberately untouched.
|
|
1037
|
+
|
|
1038
|
+
### Fixed
|
|
1039
|
+
|
|
1040
|
+
- **The welcome page draws at cold start.** The page the window opens
|
|
1041
|
+
on was empty: an unset label where the wordmark goes, and a "Recent"
|
|
1042
|
+
heading with nothing under it. Everything visible on it is filled by
|
|
1043
|
+
`_refresh_welcome_view`, which was only reachable from
|
|
1044
|
+
`_apply_session_mode` — and that first runs when a file is opened, so
|
|
1045
|
+
the state the page exists for was the one state it never ran in.
|
|
1046
|
+
|
|
1047
|
+
- **The workflow rail no longer reports one run behind.** Run detection
|
|
1048
|
+
and the Detect chip still said "not run"; run matching and Match said
|
|
1049
|
+
"not run" next to three matched phases in the Display dock. The rail
|
|
1050
|
+
counts what the viewer holds, and it was refreshed before the finished
|
|
1051
|
+
run's results were loaded into the viewer, so it always described the
|
|
1052
|
+
previous run. It now refreshes again after the reload.
|
|
1053
|
+
|
|
1054
|
+
- **The 1D profile fit stops refusing narrow peaks and inventing
|
|
1055
|
+
backgrounds.** It used to fit five parameters — peak plus a straight
|
|
1056
|
+
line — inside a window that was exactly the box, where a straight
|
|
1057
|
+
line cannot be identified at all. Narrow boxes got no fit (under
|
|
1058
|
+
about 0.025 Å⁻¹ radially there were too few samples, and the curve
|
|
1059
|
+
was simply cleared), and the ones that did converge could return a
|
|
1060
|
+
background nothing like the data, taking the amplitude with it. Now
|
|
1061
|
+
the window reaches beyond the box, the background is measured from
|
|
1062
|
+
the parts outside it and held fixed, and the peak is fitted on the
|
|
1063
|
+
box with three parameters. A neighbouring peak in that outside
|
|
1064
|
+
region is recognised and left out of the background. The drawn curve
|
|
1065
|
+
no longer extends past the data the fit was based on.
|
|
1066
|
+
- **A single-peak 2D fit no longer wanders onto its neighbour.** "Add to
|
|
1067
|
+
fitted" and "Fit selected (2D)" handed pygidfit one box at a time.
|
|
1068
|
+
pygidfit masks and joint-fits only the boxes it gets in one call, so
|
|
1069
|
+
a neighbouring peak's intensity sat unmasked inside the target's fit
|
|
1070
|
+
region and could pull the result out of the box that was drawn. Both
|
|
1071
|
+
paths now pass the frame's nearby peak boxes along with the target,
|
|
1072
|
+
which is the same input the pipeline fit gets for a whole frame. Far
|
|
1073
|
+
boxes, rings and duplicates are filtered out, so a click still costs
|
|
1074
|
+
one fit rather than a frame's worth.
|
|
1075
|
+
- **The hover outline no longer lingers.** It could survive the cursor
|
|
1076
|
+
leaving: a re-render while a run was in flight left it painted, and a
|
|
1077
|
+
re-render after the pointer had left the window redrew it. Every exit
|
|
1078
|
+
now clears it — leaving the plot or the viewer, a run starting, a
|
|
1079
|
+
view-mode switch, and closing the file.
|
|
1080
|
+
- **Highlights cover the box they mark, and look the same on every
|
|
1081
|
+
kind.** The hover preview was translucent, so a detected box's dashed
|
|
1082
|
+
red showed through it as pink while a fitted box's cyan did not. Both
|
|
1083
|
+
the preview and the selection outline are now solid, opaque and wider
|
|
1084
|
+
than any overlay pen; the preview is the accent colour and the
|
|
1085
|
+
selection stays white, so "under the cursor" and "selected" remain
|
|
1086
|
+
distinguishable.
|
|
1087
|
+
- **A small peak box inside a larger one is selectable.** Boxes had to
|
|
1088
|
+
be hit exactly, so missing an 8 px detection by three pixels selected
|
|
1089
|
+
the box around it — and with only that box in the stack there was
|
|
1090
|
+
nothing to step to. Clicks now carry a few pixels of tolerance.
|
|
1091
|
+
- **A selected matched peak is highlighted like every other peak.** The
|
|
1092
|
+
structure's own box was painted over the white selection outline (the
|
|
1093
|
+
matched overlay is rebuilt on every render, so it ended up on top),
|
|
1094
|
+
leaving a sliver of white instead of a highlight. Fitted and detected
|
|
1095
|
+
were never affected.
|
|
1096
|
+
- **Clicking overlapping peak boxes now has a rule you can see.** Which
|
|
1097
|
+
box a click took used to come down to table order, which is invisible
|
|
1098
|
+
(each overlay kind is drawn as one path with one pen). The familiar
|
|
1099
|
+
kind priority still comes first (manual, fitted, detected, matched),
|
|
1100
|
+
and inside a kind the **smallest box wins**, so a box drawn inside
|
|
1101
|
+
another is reachable instead of being shadowed by it. Clicking the
|
|
1102
|
+
same spot again steps to the next box underneath, so the outer one is
|
|
1103
|
+
still one click away: a click never hands back the box that is already
|
|
1104
|
+
selected.
|
|
1105
|
+
- **Rings no longer swallow the peaks in their band.** A ring's box
|
|
1106
|
+
spans every angle at its radius, so it used to compete with every spot
|
|
1107
|
+
peak there. A ring is now picked by clicking within a few pixels of
|
|
1108
|
+
its inner or outer radius.
|
|
1109
|
+
- **The light theme is correct again.** Roughly 30 colours were
|
|
1110
|
+
hardcoded for the dark theme and never followed a theme switch: the
|
|
1111
|
+
figure-export preview painted a dark rectangle inside a light window,
|
|
1112
|
+
status-bar separators stayed dark grey, the CIF-cache line's four
|
|
1113
|
+
states were washed out, table striping was near-invisible, and the
|
|
1114
|
+
peak-selection highlight and profile curve were white on a white
|
|
1115
|
+
plot ground.
|
|
1116
|
+
|
|
1117
|
+
## 0.1.0a16 — sixteenth alpha (2026-08-13)
|
|
1118
|
+
|
|
1119
|
+
### Changed
|
|
1120
|
+
|
|
1121
|
+
- **Internal: source layout split into focused modules.** No
|
|
1122
|
+
user-visible changes. ``main_window.py`` (12,500 lines) and
|
|
1123
|
+
``image_viewer.py`` (4,700 lines) are now assembled from plain mixin
|
|
1124
|
+
modules (``main_window_*.py``, ``image_viewer_*.py``,
|
|
1125
|
+
``viewer_*.py``); the conversion vocabulary moved to a Qt-free
|
|
1126
|
+
``conversion_config.py`` (removing the package's only import cycle);
|
|
1127
|
+
small shared widgets live in ``widgets.py``; duplicated h5py, undo,
|
|
1128
|
+
teardown and progress-dialog idioms were collapsed into single
|
|
1129
|
+
helpers. Every previously importable name still resolves from its
|
|
1130
|
+
old module via re-export shims.
|
|
1131
|
+
|
|
1132
|
+
## 0.1.0a15 — fifteenth alpha (2026-08-11)
|
|
1133
|
+
|
|
1134
|
+
### Added
|
|
1135
|
+
|
|
1136
|
+
- **Integrated ROI intensity as a second tracking metric.** The
|
|
1137
|
+
amplitude-evolution tab gains a Metric selector: "amplitude" (the
|
|
1138
|
+
fitted peak amplitude, as before — the default) or "integrated
|
|
1139
|
+
intensity (ROI)" — the background-subtracted integrated intensity
|
|
1140
|
+
of a q-space box around each tracked peak, summed from the image
|
|
1141
|
+
data itself. The ROI trace has a value on EVERY frame: frames where
|
|
1142
|
+
the fit failed (or before the peak first appeared) center the box
|
|
1143
|
+
on the nearest fitted position, so fit dropouts no longer punch
|
|
1144
|
+
gaps or spurious zeros into the evolution curves, and the value is
|
|
1145
|
+
proportional to the diffracting volume instead of swinging with the
|
|
1146
|
+
fit's amplitude-width trade-off on clipped peaks. The local
|
|
1147
|
+
background is the pooled MEDIAN per-pixel intensity of two strips
|
|
1148
|
+
flanking the box radially (along q_z for near-axis peaks, along
|
|
1149
|
+
q_xy otherwise) times the box area — two flanks so a neighboring
|
|
1150
|
+
peak under one of them cannot poison the estimate, the median so a
|
|
1151
|
+
bright feature under part of the strips is ignored outright. Box
|
|
1152
|
+
half-widths (default 0.03 Å⁻¹) and strip gap/width (2 px / 4 px)
|
|
1153
|
+
are adjustable next to the selector. Traces are computed in the
|
|
1154
|
+
background (one full pass over the scan, progress in the status
|
|
1155
|
+
bar) and cached until tracking, the entry or the ROI settings
|
|
1156
|
+
change; grouping, per-structure medians, normalization, smoothing,
|
|
1157
|
+
the frame interval, track selection and the CSV export all work
|
|
1158
|
+
identically for both metrics.
|
|
1159
|
+
- **Expected pattern: orientation modes instead of the big hkl
|
|
1160
|
+
list.** The overlay's orientation is now picked by mode: "matched"
|
|
1161
|
+
(the current frame's matched orientations for the structure,
|
|
1162
|
+
probability-labelled, with a clear hint when the frame has none),
|
|
1163
|
+
"random (powder rings)" (the orientation-free ring pattern), or
|
|
1164
|
+
"user-specified hkl" — type the three Miller indices directly
|
|
1165
|
+
instead of scrolling every symmetry-distinct orientation. Typed
|
|
1166
|
+
indices are validated against the structure's precomputed
|
|
1167
|
+
orientations: equivalent spellings (2 2 0, 0 0 -1, 0 0 1 for a
|
|
1168
|
+
stored 0 0 2) resolve automatically with a note, and invalid or
|
|
1169
|
+
unsimulated indices show a red hint plus a status-bar message
|
|
1170
|
+
instead of failing silently. Until the mode is touched it follows
|
|
1171
|
+
the data: matched when matches exist, random otherwise.
|
|
1172
|
+
- **Amplitude CSV export: one row per frame, metric recorded.** The
|
|
1173
|
+
export now writes a row for EVERY frame of the exported range per
|
|
1174
|
+
track (or structure, in median mode) — frames without a value carry
|
|
1175
|
+
an explicit `nan` instead of being silently skipped, so plotting
|
|
1176
|
+
the CSV can no longer interpolate across fit gaps unnoticed. The
|
|
1177
|
+
provenance line records the selected metric (plus the ROI geometry
|
|
1178
|
+
when active), and the value column is named after the metric.
|
|
1179
|
+
- **Amplitude evolution: zero baseline and brightest-tracks limit.**
|
|
1180
|
+
Two new controls on the phase-views amplitude tab. "Zeros at
|
|
1181
|
+
start/end" (median mode) pads each structure's MEDIAN curve with
|
|
1182
|
+
zero-intensity points from the visible start to its first observed
|
|
1183
|
+
frame and from its last one to the visible end, so the evolution
|
|
1184
|
+
rises from zero at frame 0 and falls back to zero after vanishing.
|
|
1185
|
+
The zeros are added to the finished median only — individual tracks
|
|
1186
|
+
never contribute zeros to the statistics, so a track absent on some
|
|
1187
|
+
frames cannot drag the median down there; gaps inside the series
|
|
1188
|
+
stay open. "Select tracks…" opens a per-structure table of every
|
|
1189
|
+
track — sortable by track id, frame count, first/last frame, mean
|
|
1190
|
+
|q| and mean amplitude — with a checkbox per track: untick a track
|
|
1191
|
+
and it drops out of that structure's grouped band and median
|
|
1192
|
+
immediately (the plots update live next to the modeless dialog, and
|
|
1193
|
+
the button shows how many tracks are off). Next to the tables, a
|
|
1194
|
+
non-interactive scan preview with a frame slider shows the SELECTED
|
|
1195
|
+
row's track on the image: clicking a row jumps the slider to the
|
|
1196
|
+
track's first frame, rings its peaks on the current frame in the
|
|
1197
|
+
structure colour and draws the full trajectory faintly — judging a
|
|
1198
|
+
faint or spurious track is a matter of looking, not of reading
|
|
1199
|
+
numbers. The selection resets on
|
|
1200
|
+
a new tracking run or a track deletion. The amplitude CSV export
|
|
1201
|
+
mirrors both controls and records them in its provenance line, and
|
|
1202
|
+
the phase-views frame interval now spans the whole scan (not just
|
|
1203
|
+
the tracked frames) so frame 0 is always reachable.
|
|
1204
|
+
- **Frame interval for the phase views.** A window-wide "Frames:
|
|
1205
|
+
from..to" control in the tracking views narrows the trajectories and
|
|
1206
|
+
amplitude-evolution plots to that interval (members outside it are
|
|
1207
|
+
not drawn); the q-map and waterfall stay frame-complete. Bounds
|
|
1208
|
+
follow the tracked scan and reset to the full range on a new
|
|
1209
|
+
tracking run; the amplitude CSV export mirrors the visible interval
|
|
1210
|
+
and records it in its provenance line.
|
|
1211
|
+
- **Frame range for pipeline operations.** The Frames dropdown of
|
|
1212
|
+
Detection, Fitting and Matching gains a "Frame range…" option with
|
|
1213
|
+
an expression field (comma-separated indices and inclusive A-B
|
|
1214
|
+
ranges, e.g. `0-34,40`): only those frames are processed. The range
|
|
1215
|
+
is validated against the scan when you press Run — malformed input
|
|
1216
|
+
or a range entirely outside the scan blocks the run with a message;
|
|
1217
|
+
frames partly outside are dropped with a log note. Progress totals
|
|
1218
|
+
follow the restricted count.
|
|
1219
|
+
- **Pick your own colour per matched structure.** The colour swatch in
|
|
1220
|
+
the matched-peaks legend (Display dock and its Expected-pattern
|
|
1221
|
+
twin) is a button now: clicking it opens a compact grid of 40
|
|
1222
|
+
preset colours plus "Automatic" (back to the assigned palette
|
|
1223
|
+
colour) and "More…" (full colour dialog). The chosen colour follows
|
|
1224
|
+
the structure everywhere — image overlays in both box and marker
|
|
1225
|
+
style, both legends, the selected-peak swatch, and the phase-views
|
|
1226
|
+
window (q-map, amplitude bands, structure toggles and legend) for
|
|
1227
|
+
that CIF. Colours are remembered across sessions per structure
|
|
1228
|
+
(CIF + hkl), in any file.
|
|
1229
|
+
- **"Single entry in single file" conversion output mode.** All
|
|
1230
|
+
selected images convert into ONE fresh entry of one new file — each
|
|
1231
|
+
image becomes a frame of a real N-frame scan instead of its own
|
|
1232
|
+
`entry_NNNN` group. The result browses with the frame slider and
|
|
1233
|
+
can be peak-tracked across the scan (impossible with N sibling
|
|
1234
|
+
entries), and the auto-open at the end is a single file. Mutually
|
|
1235
|
+
exclusive with append-to-existing-entry; a post-run check warns if
|
|
1236
|
+
any frame was diverted because its detector size didn't match.
|
|
1237
|
+
- **Import pre-converted images as one scan.** For q-space maps
|
|
1238
|
+
produced outside mlgidLAB: File → Import images as converted scan…
|
|
1239
|
+
stacks N image files as one N-frame scan saved to a new .h5 (no
|
|
1240
|
+
conversion runs — the pixels are copied verbatim, streamed with
|
|
1241
|
+
constant memory). Optional q_xy/q_z ranges give the entry real
|
|
1242
|
+
reciprocal-space axes; without them it shows pixel axes. Opening a
|
|
1243
|
+
batch of float-pixel images offers this flow automatically (raw
|
|
1244
|
+
detector frames are integer counts; interpolated maps are float) —
|
|
1245
|
+
one click opens them as raw instead if the guess is wrong.
|
|
1246
|
+
- **Imported scans can run the full pipeline when you supply the
|
|
1247
|
+
wavelength.** Typing the beam wavelength (with the q ranges) in the
|
|
1248
|
+
import dialog makes detection, fitting and matching work on the
|
|
1249
|
+
imported scan: the entry gets a real wavelength + incidence angle
|
|
1250
|
+
and documented zero placeholders for the detector fields none of
|
|
1251
|
+
the three operations consume (verified against mlgidbase 0.1.5 with
|
|
1252
|
+
a real fitting run). Without the wavelength the import is view-only
|
|
1253
|
+
and pipeline runs are refused with a message explaining how to
|
|
1254
|
+
re-import.
|
|
1255
|
+
- **Track list: structure column and Delete-to-remove.** The
|
|
1256
|
+
Scan-tracking table now shows which matched crystal structures each
|
|
1257
|
+
track belongs to (dominant phase first, filled once Matching has
|
|
1258
|
+
run), and pressing Delete on a selected row removes that track from
|
|
1259
|
+
the results — from the table, the phase views, the only-tracked
|
|
1260
|
+
filter and the phase colouring. Display state only: no peaks are
|
|
1261
|
+
deleted from the file.
|
|
1262
|
+
- **Progress indicator for big image-batch loads.** While the file
|
|
1263
|
+
browser streams a batch's rows in, the status bar shows a small
|
|
1264
|
+
determinate "Browser: n/N files" bar (separate from the open/load
|
|
1265
|
+
indicator, which the first image's async load drives). Only appears
|
|
1266
|
+
for batches of 10 or more files; clears when the fill completes.
|
|
1267
|
+
- **"Select all" in the conversion Selection tree.** One checkbox
|
|
1268
|
+
above the file/entry tree checks or unchecks the whole batch (0.02 s
|
|
1269
|
+
even at 6000 image files); its state mirrors manual edits as
|
|
1270
|
+
checked, unchecked, or partial. A click never lands on "partial" —
|
|
1271
|
+
anything mixed becomes fully checked.
|
|
1272
|
+
- **File-browser rows for image files are clickable now.** Clicking a
|
|
1273
|
+
TIFF/CBF/EDF row in the file browser selects that image in the entry
|
|
1274
|
+
dropdown and shows it in the viewer — the same behavior clicking an
|
|
1275
|
+
`entry_*` group has for NeXus files. Double-click additionally
|
|
1276
|
+
renders the image in the Data tab. Previously image rows were inert,
|
|
1277
|
+
which made the browser feel dead for image batches.
|
|
1278
|
+
|
|
1279
|
+
### Changed
|
|
1280
|
+
|
|
1281
|
+
- **The Controls & shortcuts reference (F1) is a real dialog now.**
|
|
1282
|
+
Modeless and filterable (type to narrow, e.g. "paste" or "track"),
|
|
1283
|
+
with grouped sections and key badges, styled for both the dark and
|
|
1284
|
+
light theme and following live theme switches. The inventory is
|
|
1285
|
+
complete: it now lists the copy/paste shortcuts, Ctrl+A,
|
|
1286
|
+
Ctrl+click multi-select, F11, F5, the tracking-table Delete key,
|
|
1287
|
+
trajectory-point and colour-swatch clicks, drag & drop, and more
|
|
1288
|
+
that the old static box omitted; two wrong entries were corrected
|
|
1289
|
+
(Esc deletes the selected manual peak; ROI dragging resizes manual
|
|
1290
|
+
and detected peaks only).
|
|
1291
|
+
|
|
1292
|
+
### Fixed
|
|
1293
|
+
|
|
1294
|
+
- **Phase-views colours match the Display legend.** The tracking
|
|
1295
|
+
views (q-map, amplitude bands, structure toggles, legend) used
|
|
1296
|
+
their own hue wheel and only followed the matched-peaks legend for
|
|
1297
|
+
hand-picked custom colours — an automatically coloured structure
|
|
1298
|
+
showed one colour in the Display dock and a different one in the
|
|
1299
|
+
views. The host now pushes the viewer's EFFECTIVE per-CIF colours
|
|
1300
|
+
(automatic palette plus custom picks, a pick on any hkl row of a
|
|
1301
|
+
CIF winning for that CIF) at window open, on every pick and on
|
|
1302
|
+
every tracking run, so both sides always agree.
|
|
1303
|
+
- **Amplitude plot x-axis no longer runs away.** The amplitude
|
|
1304
|
+
evolution's auto-range could inflate the frame axis far beyond the
|
|
1305
|
+
data (thousands of frames on a 350-frame scan): the grouped view's
|
|
1306
|
+
pixel-sized structure labels fed back into the range computation.
|
|
1307
|
+
The labels are excluded from ranging now and the x-axis is pinned to
|
|
1308
|
+
the tracked frame interval — the same range the CSV export covers.
|
|
1309
|
+
- **Phase colouring follows the frames matching actually claimed.** A
|
|
1310
|
+
track fitted on frames x..y but matched only from frame z was
|
|
1311
|
+
painted with its phase colour over the whole span. The views now
|
|
1312
|
+
attribute each tracked peak per frame: in the trajectories
|
|
1313
|
+
("matched" colouring), the grouped/median amplitude bands, the
|
|
1314
|
+
q-map phase overlay and its legend, the claimed members render in
|
|
1315
|
+
the phase colour and the never-claimed ones as unmatched grey. The
|
|
1316
|
+
"unmatched" toggle then shows/hides exactly the unclaimed portions;
|
|
1317
|
+
the amplitude CSV export in median mode groups the same way.
|
|
1318
|
+
- **Amplitude band labels no longer sit on the curves.** The structure
|
|
1319
|
+
labels of the grouped amplitude view were vertically centred inside
|
|
1320
|
+
their band; they now sit in the gap above the band's top reference
|
|
1321
|
+
line.
|
|
1322
|
+
- **Opening large image batches no longer freezes the window.** With
|
|
1323
|
+
1000 detector TIFFs the open froze the GUI for ~8 s on warm NVMe
|
|
1324
|
+
(longer on cold or network storage) before anything rendered; with
|
|
1325
|
+
6000 the browser was unusable. Causes, all fixed: every image spun
|
|
1326
|
+
up its own classifier thread (classification is a pure extension
|
|
1327
|
+
check — it now runs inline); every image became a full silx browser
|
|
1328
|
+
row, each insert decoding the whole image on the GUI thread AND
|
|
1329
|
+
pinning its pixels for the session (~10 MB per row — the browser
|
|
1330
|
+
alone held ~10 GB for a 1000-file batch); and the recent-files menu
|
|
1331
|
+
was rebuilt once per file (now one batched update). Image files are
|
|
1332
|
+
now listed as lightweight name-only rows (no decode, no pixel
|
|
1333
|
+
memory, streamed in chunks off a timer), so ALL files of a batch
|
|
1334
|
+
appear in the browser regardless of size. For 6000 detector images:
|
|
1335
|
+
first image renders in ~0.5 s, the browser fills within ~7 s in the
|
|
1336
|
+
background, clicks answer in ~1 ms, and memory stays flat. Rows
|
|
1337
|
+
queued behind a tree detach are re-queued by the reattach, so
|
|
1338
|
+
pipeline runs and session closes stay consistent mid-fill (the
|
|
1339
|
+
reattach itself previously re-froze the window on every pipeline
|
|
1340
|
+
run while a big batch was open).
|
|
1341
|
+
- **The Open dialog stays responsive in huge image directories.**
|
|
1342
|
+
File → Open now uses Qt's own dialog with a constant-time icon
|
|
1343
|
+
provider instead of the platform-native picker: native dialogs
|
|
1344
|
+
preview/thumbnail image files, which made a directory of thousands
|
|
1345
|
+
of detector TIFFs take ages to even list. The last-visited
|
|
1346
|
+
directory now also persists across app restarts.
|
|
1347
|
+
- **Closing no longer lags with a big batch open.** Emptying the file
|
|
1348
|
+
browser (session close, app exit, and the detach before every
|
|
1349
|
+
pipeline run or save) removed rows one at a time — each removal a
|
|
1350
|
+
model event the sort proxy and view reacted to, quadratic overall.
|
|
1351
|
+
The browser now empties in a single model reset; h5 file handles
|
|
1352
|
+
are still released per row.
|
|
1353
|
+
- **The pipeline progress bar no longer lags the log and jumps at the
|
|
1354
|
+
end.** The per-frame bar counted only mlgidbase's "Saved … peaks"
|
|
1355
|
+
lines, but frames that produce nothing end with a different line
|
|
1356
|
+
instead (matching: "No solutions …"; detection: "No peaks detected
|
|
1357
|
+
…" or "Detection failed …"). On runs with such frames the bar fell
|
|
1358
|
+
behind the log output and then leapt to 100% when the run finished.
|
|
1359
|
+
Those skip lines now count as completed frames too, so the bar
|
|
1360
|
+
tracks the log one-to-one. Most visible on matching, where
|
|
1361
|
+
no-solution frames are routine.
|
|
1362
|
+
- **Peak tracking no longer gets the app killed on big scans — it
|
|
1363
|
+
runs in bounded memory instead.** mlgidBASE's tracking compares
|
|
1364
|
+
every fitted peak of the scan with every other one in a dense
|
|
1365
|
+
matrix, so its memory grows with the square of the total peak count
|
|
1366
|
+
(64 bytes per peak pair, measured) — a 602-frame scan with ~44k
|
|
1367
|
+
fitted peaks needs over 120 GB and the kernel OOM-killed the whole
|
|
1368
|
+
window mid-run. The pipeline now pre-estimates that need against
|
|
1369
|
+
the machine's available memory and, when the dense run would not
|
|
1370
|
+
fit, computes the identical result with a memory-safe blocked
|
|
1371
|
+
equivalent: the IoU streams in row blocks keeping only the
|
|
1372
|
+
above-threshold pairs, and tracks come from sparse connected
|
|
1373
|
+
components — same boxes, same IoU formula, same threshold and
|
|
1374
|
+
length semantics, verified edge-for-edge and payload-for-payload
|
|
1375
|
+
against the official upstream run. The 602-frame scan that used to
|
|
1376
|
+
kill the app now tracks in ~80 s within ~1.3 GB (122 tracks).
|
|
1377
|
+
Only the official mlgidBASE figure export still needs the dense
|
|
1378
|
+
upstream run; on oversized scans it refuses with the numbers and
|
|
1379
|
+
points at the phase-views image export instead.
|
|
1380
|
+
- **The tracking dialog shows a busy marquee instead of freezing at
|
|
1381
|
+
95%.** The old bar faked progress toward 95% within seconds and
|
|
1382
|
+
then sat there for the rest of the run (tracking is one opaque
|
|
1383
|
+
mlgidBASE call with no per-frame progress). It is now an honest
|
|
1384
|
+
indeterminate busy bar that animates for the whole run; the
|
|
1385
|
+
Interpolate-track dialog keeps its real per-frame percentages.
|
|
1386
|
+
|
|
1387
|
+
## 0.1.0a14 — fourteenth alpha (2026-08-05)
|
|
1388
|
+
|
|
1389
|
+
Hotfix on `0.1.0a13`: the in-GUI updater could not update a running
|
|
1390
|
+
install on Windows. No other changes, no on-disk schema changes.
|
|
1391
|
+
|
|
1392
|
+
### Fixed
|
|
1393
|
+
|
|
1394
|
+
- **In-GUI updates work on Windows.** "Update now" failed with
|
|
1395
|
+
`[WinError 32]` when the app was started via the Start-menu /
|
|
1396
|
+
`Scripts\mlgidlab.exe` launcher: pip's uninstall of the old version
|
|
1397
|
+
has to remove that exe, but Windows locks the image file of a running
|
|
1398
|
+
process. The updater now renames the launcher aside before running pip
|
|
1399
|
+
(renaming a running exe is allowed) and restores it if the install
|
|
1400
|
+
fails; stale backups are cleaned up on the next update. The pip child
|
|
1401
|
+
also no longer flashes a transient console window under the windowed
|
|
1402
|
+
launcher.
|
|
1403
|
+
|
|
1404
|
+
## 0.1.0a13 — thirteenth alpha (2026-08-04)
|
|
1405
|
+
|
|
1406
|
+
Hotfix on `0.1.0a12`: detection was unusable on a fresh install that had
|
|
1407
|
+
never run mlgidDETECT from a terminal. No other changes, no on-disk
|
|
1408
|
+
schema changes.
|
|
1409
|
+
|
|
1410
|
+
### Fixed
|
|
1411
|
+
|
|
1412
|
+
- **Detection models now download on a GUI-only install.** mlgidDETECT
|
|
1413
|
+
ships no `.onnx` weights; it fetches them on first use into a per-user
|
|
1414
|
+
cache. That download crashed in any GUI process without a usable
|
|
1415
|
+
console — notably on Windows, where the `gui-scripts` entry point runs
|
|
1416
|
+
under `pythonw.exe` and `sys.stdout` is `None`, so mlgidDETECT's
|
|
1417
|
+
progress bar died on its first `sys.stdout.write`. The failure was
|
|
1418
|
+
then invisible twice over: the aborted transfer left a **zero-byte
|
|
1419
|
+
`.onnx`** in the cache, which mlgidDETECT's existence-only check
|
|
1420
|
+
accepts forever after (so no later run retried the download), and
|
|
1421
|
+
every symptom surfaced as the same opaque *"Detection failed. Couldn't
|
|
1422
|
+
load the model."* Anyone who had installed mlgidDETECT separately, and
|
|
1423
|
+
so had a populated cache, was unaffected — which is why this survived
|
|
1424
|
+
release testing.
|
|
1425
|
+
|
|
1426
|
+
The GUI now pre-flights the model before handing off to mlgidbase:
|
|
1427
|
+
it guarantees writable `stdout`/`stderr` for the backend call,
|
|
1428
|
+
downloads through a temp file that is only moved into place once the
|
|
1429
|
+
byte count matches the server's `Content-Length`, reports progress and
|
|
1430
|
+
errors through the Pipeline log panel, and names the cache directory
|
|
1431
|
+
and source URL when a download fails so it can be completed by hand on
|
|
1432
|
+
a proxied or air-gapped machine.
|
|
1433
|
+
|
|
1434
|
+
Existing broken installs self-heal: truncated and zero-byte cache
|
|
1435
|
+
entries are removed and re-fetched on the next detection run. Complete
|
|
1436
|
+
models are reused as before, verified once per session against the
|
|
1437
|
+
server's size, and an unreachable server never invalidates a good
|
|
1438
|
+
cached copy.
|
|
1439
|
+
|
|
1440
|
+
### Changed
|
|
1441
|
+
|
|
1442
|
+
- `mlgiddetect==0.2.8` is now declared explicitly in the `[pipeline]`
|
|
1443
|
+
extra. It still resolves identically through mlgidbase; the GUI simply
|
|
1444
|
+
imports it directly now (for the model cache directory and URL table),
|
|
1445
|
+
and this repo declares what it imports.
|
|
1446
|
+
|
|
1447
|
+
## 0.1.0a12 — twelfth alpha (2026-07-23)
|
|
1448
|
+
|
|
1449
|
+
Feature alpha on `0.1.0a11`: the Expected-pattern workflow and the move
|
|
1450
|
+
to the released mlgid backend stack. No on-disk schema changes.
|
|
1451
|
+
|
|
1452
|
+
### Added
|
|
1453
|
+
|
|
1454
|
+
- **Expected pattern workflow.** A new right-side "Expected pattern"
|
|
1455
|
+
dock overlays the forward-simulated reflections of a parsed CIF on
|
|
1456
|
+
the image (diamonds for spots, dashed arcs for rings, marker size
|
|
1457
|
+
encodes simulated intensity; CIF + orientation combos are fed from
|
|
1458
|
+
the Pipeline panel's parsed-CIF cache). Reflections are colour-coded:
|
|
1459
|
+
green = explained by a peak matched to the selected phase, orange =
|
|
1460
|
+
missed. Click markers (or **Select missed**) to select reflections,
|
|
1461
|
+
then **Add selected peaks (fit + match)**: each selected position is
|
|
1462
|
+
injected as a detected box, 2D-fitted and re-matched; injected peaks
|
|
1463
|
+
the matcher does not claim are rolled back. **Find all matched
|
|
1464
|
+
structures (all frames)** applies every matched (CIF, orientation)
|
|
1465
|
+
combo across the whole scan with per-structure reflection caps.
|
|
1466
|
+
Safety rails: matched-solution snapshots are union-merged back after
|
|
1467
|
+
every re-match, and duplicate matched structures are consolidated at
|
|
1468
|
+
write and read, so existing identifications never disappear. The dock
|
|
1469
|
+
also carries a matched-structures legend mirroring the Display legend
|
|
1470
|
+
both ways.
|
|
1471
|
+
- **Editable frame index.** A spinbox next to the frame slider seeks to
|
|
1472
|
+
a typed frame number; slider, spinbox and the "/ max" label stay in
|
|
1473
|
+
sync with the active stack.
|
|
1474
|
+
|
|
1475
|
+
### Changed
|
|
1476
|
+
|
|
1477
|
+
- **Backend stack: released PyPI pins.** The `[pipeline]` extra moves
|
|
1478
|
+
to `mlgidbase==0.1.5` / `pygid==0.2.13`; `mlgiddetect 0.2.8` arrives
|
|
1479
|
+
transitively and carries per-Python CUDA 12 `onnxruntime-gpu` pins,
|
|
1480
|
+
so the GUI's own onnxruntime pin is dropped (`networkx` is now
|
|
1481
|
+
declared here — mlgidbase needs it but does not declare it).
|
|
1482
|
+
Detection defaults to the new 2-class DINO model of mlgiddetect
|
|
1483
|
+
0.2.6+ — detections differ from the previous single-class model; the
|
|
1484
|
+
legacy model stays reachable via a detection config with
|
|
1485
|
+
`ONNX_BASE: dino_old`. GPU selection is native to mlgiddetect now
|
|
1486
|
+
(ORT provider + driver probe, CPU fallback); the GUI's torch-based
|
|
1487
|
+
workarounds are removed.
|
|
1488
|
+
- **Peak tracking targets the mlgidbase 0.1.5 contract.** Per-member
|
|
1489
|
+
amplitudes come from `track_peaks`' per-component return value; a
|
|
1490
|
+
too-old mlgidbase fails with a named "needs mlgidbase >= 0.1.5"
|
|
1491
|
+
error instead of a raw AttributeError.
|
|
1492
|
+
- **Min-intensity cutoff is a single spinbox** with adaptive-decimal
|
|
1493
|
+
stepping (arrow/wheel steps scale with the current value's
|
|
1494
|
+
magnitude), replacing the linear slider that was useless for the
|
|
1495
|
+
decades-spanning simulated intensities.
|
|
1496
|
+
|
|
1497
|
+
### Fixed
|
|
1498
|
+
|
|
1499
|
+
- **Ring tracks no longer appear twice.** mlgidbase 0.1.5 can natively
|
|
1500
|
+
track rings stored with a finite angle (for example rings injected by
|
|
1501
|
+
the GUI), which would have duplicated the GUI's own radial ring
|
|
1502
|
+
tracking; native ring components are dropped so every physical ring
|
|
1503
|
+
yields exactly one track.
|
|
1504
|
+
|
|
1505
|
+
### Removed
|
|
1506
|
+
|
|
1507
|
+
- Dead code retired in a sweep: the legacy 2D-preview override path in
|
|
1508
|
+
the profile viewer, the unused 1D-Gaussian helpers in `fit.py`, and
|
|
1509
|
+
stale helpers in the polar/clipboard/conversion modules. No behavior
|
|
1510
|
+
change; the corresponding test module went with it.
|
|
1511
|
+
|
|
1512
|
+
## 0.1.0a11 — eleventh alpha (2026-07-10)
|
|
1513
|
+
|
|
1514
|
+
Feature alpha on `0.1.0a10`: cross-frame peak tracking with interactive
|
|
1515
|
+
views, gap filling and export. No on-disk schema changes; the
|
|
1516
|
+
`[pipeline]` pins are unchanged. The tracking features need an
|
|
1517
|
+
mlgidbase build newer than the pinned `0.1.3` release (`track_peaks`);
|
|
1518
|
+
they detect a too-old build and say so — everything else runs on the
|
|
1519
|
+
pins.
|
|
1520
|
+
|
|
1521
|
+
### Added
|
|
1522
|
+
|
|
1523
|
+
- **Cross-frame peak tracking.** A new **Scan tracking** dock runs
|
|
1524
|
+
mlgidBASE's `track_peaks` over the active entry and lists the surviving
|
|
1525
|
+
tracks (frame span, member count, matched structures). Clicking a row
|
|
1526
|
+
jumps the viewer to the track's first frame and selects its fitted peak;
|
|
1527
|
+
selecting a tracked peak mid-scan highlights its row without bouncing the
|
|
1528
|
+
frame. A **Show only tracked peaks** filter hides all non-tracked
|
|
1529
|
+
fitted/matched peaks during playback. Rings are tracked GUI-side (radial
|
|
1530
|
+
overlap across frames), since upstream tracking covers spots only.
|
|
1531
|
+
Results invalidate automatically when fitting rewrites the entry.
|
|
1532
|
+
- **Phase tracking views.** **Show views…** opens a window with four
|
|
1533
|
+
interactive tabs: per-track trajectories of any axis vs frame (click a
|
|
1534
|
+
point to jump the viewer there); a (q_xy, q_z) map of the tracks,
|
|
1535
|
+
optionally over a nan-mean image of a chosen frame window; amplitude
|
|
1536
|
+
evolution with smoothing/normalization, grouping by matched structure, a
|
|
1537
|
+
median-per-structure mode with a transparent interquartile band, and thin
|
|
1538
|
+
dashed max/min reference lines per structure; and a frame × |q| radial
|
|
1539
|
+
waterfall of the whole scan. Tracks colour by matched phase (CIF) with
|
|
1540
|
+
per-structure show/hide toggles that govern every view at once, and
|
|
1541
|
+
**Save official mlgidBASE figures…** writes upstream's own matplotlib
|
|
1542
|
+
exports.
|
|
1543
|
+
- **Plot data + image export.** Every views-window plot exports its numbers
|
|
1544
|
+
to CSV — complete tables with track/structure identity per row; the
|
|
1545
|
+
amplitude export follows the displayed mode (median rows carry
|
|
1546
|
+
median/quartile columns) and matrix exports carry their axes — and its
|
|
1547
|
+
rendering to PNG/SVG. The image export is styled interactively: choose
|
|
1548
|
+
the structures to include, line width/style, marker size, output width
|
|
1549
|
+
and an optional white background. Both work per plot or for several
|
|
1550
|
+
plots at once.
|
|
1551
|
+
- **Interpolate track (real gap filling).** For a tracked spot peak fitted
|
|
1552
|
+
on some frames of its span but missing in between, the Scan-tracking
|
|
1553
|
+
dock's **Interpolate track** button injects a detected box at the
|
|
1554
|
+
estimated position (size from the bracketing frames), runs the same 2D
|
|
1555
|
+
fit the pipeline uses, re-matches it ONLY against the structures the
|
|
1556
|
+
track was found in (a gap fill can never introduce a new structure), and
|
|
1557
|
+
adds the new peaks to the track. Ring tracks are filled along |q| with
|
|
1558
|
+
the ring conventions preserved; a progress dialog mirrors the pipeline
|
|
1559
|
+
panel's per-frame progress across the fit + re-match chain.
|
|
1560
|
+
- **Matched display styles.** A style combo next to the Matched-peaks
|
|
1561
|
+
toggle: **Boxes** (as before) or **Markers** — screen-fixed circles for
|
|
1562
|
+
peaks and dashed arcs for rings, one colour per structure with the shape
|
|
1563
|
+
distinguishing ring from peak. The palette is a new set of ten
|
|
1564
|
+
well-separated hues, so ten structures stay tellable apart.
|
|
1565
|
+
- **"Unmatched fitted peaks" display group.** A grey row under Matched
|
|
1566
|
+
peaks showing every fitted peak no loaded structure claims (off by
|
|
1567
|
+
default) — the whole frame can read in marker style, and tracking
|
|
1568
|
+
coverage is easy to judge.
|
|
1569
|
+
- **CIF-parse progress.** A small busy indicator next to "Parse CIFs"
|
|
1570
|
+
while the CIF files are being parsed.
|
|
1571
|
+
- **Open detector images (TIFF/CBF/EDF).** Standalone image files now open in
|
|
1572
|
+
raw mode alongside HDF5 detector files, using the same view + Conversion
|
|
1573
|
+
workflow (pygid reads them via `fabio`). Selecting several images — or
|
|
1574
|
+
dropping a folder of them — opens each as its own entry (one per file, in
|
|
1575
|
+
natural filename order), switchable from the entry combo and the file
|
|
1576
|
+
browser; converting writes each checked image to NeXus. HDF5/NeXus handling
|
|
1577
|
+
is unchanged.
|
|
1578
|
+
|
|
1579
|
+
### Fixed
|
|
1580
|
+
|
|
1581
|
+
- **Matched-structure colours and visibility are stable across frames.**
|
|
1582
|
+
Both were keyed by the structure's position in the per-frame list, so a
|
|
1583
|
+
structure could change colour from frame to frame and hiding it did not
|
|
1584
|
+
persist to other frames; both now key to the structure's identity
|
|
1585
|
+
(CIF + hkl).
|
|
1586
|
+
|
|
1587
|
+
## 0.1.0a10 — tenth alpha (2026-07-01)
|
|
1588
|
+
|
|
1589
|
+
Feature alpha on `0.1.0a9`. No on-disk schema or backend changes; the
|
|
1590
|
+
`[pipeline]` pins are unchanged. Adds in-app update notifications and
|
|
1591
|
+
self-update, plus a live raw-preview flip.
|
|
1592
|
+
|
|
1593
|
+
### Added
|
|
1594
|
+
|
|
1595
|
+
- **In-app update notifications.** On launch mlgidLAB checks GitHub for a
|
|
1596
|
+
newer release and, if one exists, shows a dismissible banner above the
|
|
1597
|
+
tabs (`Help → Check for updates…` runs the same check on demand). A first
|
|
1598
|
+
launch after updating also shows an offline "what's new" dialog built from
|
|
1599
|
+
the bundled changelog. Everything is best-effort and silent when offline.
|
|
1600
|
+
- **One-click self-update.** For a normal pip install the banner offers an
|
|
1601
|
+
**Update now** button that pip-installs the new release into the current
|
|
1602
|
+
environment (`pip install --upgrade "mlgidlab[pipeline]? @ git+…@<tag>"`,
|
|
1603
|
+
run off the GUI thread), then offers to restart. `Help → Update now…` runs
|
|
1604
|
+
the same check + install on demand, and `Help → Automatically install
|
|
1605
|
+
updates` (off by default) does it on launch after one confirmation.
|
|
1606
|
+
Self-update is disabled for editable / development installs (the banner
|
|
1607
|
+
keeps only "View release"); the `[pipeline]` extra is preserved when it is
|
|
1608
|
+
installed.
|
|
1609
|
+
- **Live raw-preview flip.** Ticking the Conversion panel's Flip L-R /
|
|
1610
|
+
Flip U-D checkboxes now flips the raw preview to match the orientation the
|
|
1611
|
+
conversion will write (mirrors pygid's flipud-then-fliplr on the file-order
|
|
1612
|
+
frame); the converted display is unchanged.
|
|
1613
|
+
|
|
1614
|
+
## 0.1.0a9 — ninth alpha (2026-06-30)
|
|
1615
|
+
|
|
1616
|
+
Feature + bugfix alpha on `0.1.0a8`. No on-disk schema or backend
|
|
1617
|
+
changes; the `[pipeline]` pins are unchanged. Converted files written by
|
|
1618
|
+
older mlgid versions now load and show their peaks, and ML detection
|
|
1619
|
+
uses the GPU by default.
|
|
1620
|
+
|
|
1621
|
+
### Added
|
|
1622
|
+
|
|
1623
|
+
- **Loads converted files from older mlgid versions.** Entries are now
|
|
1624
|
+
recognised by `NX_class == "NXentry"`, not just an `entry`/`entry_*`
|
|
1625
|
+
name, so files whose entry is named after the sample (mlgidFIT writes
|
|
1626
|
+
`<sample>`) open and list their entry. Detected and fitted peaks are
|
|
1627
|
+
read from the older analysis layout (`analysis/NNNNN`,
|
|
1628
|
+
`detected_peaks/results`, columnar `fitted_peaks`) in addition to the
|
|
1629
|
+
current pygid structured format. The current format is unchanged and
|
|
1630
|
+
external-link masters stay on the fast open path.
|
|
1631
|
+
- **ML detection runs on the GPU by default.** When onnxruntime's CUDA
|
|
1632
|
+
provider is available the detector now uses it (~0.13 s/frame vs
|
|
1633
|
+
~3.9 s on CPU) instead of being pinned to the CPU by a torch-only
|
|
1634
|
+
availability check. The matching step's device handling is unchanged.
|
|
1635
|
+
|
|
1636
|
+
### Fixed
|
|
1637
|
+
|
|
1638
|
+
- **Per-session temporary working copies no longer pile up in the system
|
|
1639
|
+
temp dir.** They are PID-tagged, removed on exit (including abnormal
|
|
1640
|
+
exit, via an `atexit` handler), and any left by a killed prior run are
|
|
1641
|
+
swept on startup. The test suite likewise cleans its per-run config
|
|
1642
|
+
root, which previously leaked one directory per run.
|
|
1643
|
+
|
|
1644
|
+
## 0.1.0a8 — eighth alpha (2026-06-29)
|
|
1645
|
+
|
|
1646
|
+
Bugfix alpha on `0.1.0a7`. No on-disk schema or backend changes; the
|
|
1647
|
+
`[pipeline]` pins are unchanged.
|
|
1648
|
+
|
|
1649
|
+
### Fixed
|
|
1650
|
+
|
|
1651
|
+
- **Polar view no longer mixes solid-black and transparent masked
|
|
1652
|
+
regions.** Grid points outside the converted image's data box are now
|
|
1653
|
+
filled with NaN (rendered transparent) instead of 0 (which painted a
|
|
1654
|
+
solid colormap-bottom block), matching the NaN-masked detector pixels
|
|
1655
|
+
already produced upstream. "No data" is now a single consistent value
|
|
1656
|
+
end to end. Affects the polar display only; the Cartesian view is
|
|
1657
|
+
unchanged.
|
|
1658
|
+
|
|
1659
|
+
## 0.1.0a7 — seventh alpha (2026-06-12)
|
|
1660
|
+
|
|
1661
|
+
Feature alpha on `0.1.0a6`. Large-file and raw-file performance,
|
|
1662
|
+
conversion-workflow upgrades, and file-management additions. No on-disk
|
|
1663
|
+
schema or backend changes; the `[pipeline]` pins are unchanged.
|
|
1664
|
+
|
|
1665
|
+
### Added
|
|
1666
|
+
|
|
1667
|
+
- **Raw files browse from the file browser.** Clicking a detector
|
|
1668
|
+
dataset (or its scan group) displays it in the image viewer, exactly
|
|
1669
|
+
like NeXus `entry_*` nodes.
|
|
1670
|
+
- **PONI autofill.** Loading a PONI file pre-fills the Manual-override
|
|
1671
|
+
fields (centerX/centerY/SDD/wavelength) with the values pygid derives
|
|
1672
|
+
from it — a readout you can tweak instead of blank fields.
|
|
1673
|
+
- **Append-frames conversion mode.** Converted images can be added as
|
|
1674
|
+
new frames of an existing entry in the output file (entry dropdown in
|
|
1675
|
+
the Output section), instead of always creating a new entry.
|
|
1676
|
+
- **File-browser Refresh** (button + `F5`). Re-syncs open files with
|
|
1677
|
+
disk: deleted originals close (kept open with a warning when they
|
|
1678
|
+
have unsaved changes), files changed on disk reload when clean, and
|
|
1679
|
+
conflicts are reported without touching your edits.
|
|
1680
|
+
|
|
1681
|
+
### Changed
|
|
1682
|
+
|
|
1683
|
+
- **Conversion panel layout.** Flip horizontally/vertically moved out
|
|
1684
|
+
of Manual overrides into the Experimental-parameters form (always
|
|
1685
|
+
honoured when checked); Manual overrides is now a collapsible
|
|
1686
|
+
subsection whose fields are value-driven — "(unset)" reads from the
|
|
1687
|
+
PONI, a set value overrides it.
|
|
1688
|
+
- **Entry lists keep the file's own order** (acquisition order on
|
|
1689
|
+
beamline masters) in the Display dropdown and Conversion selection
|
|
1690
|
+
tree, instead of alphabetical sorting (`10.1` no longer sorts before
|
|
1691
|
+
`2.1`).
|
|
1692
|
+
- **Switching between open files is instant.** The previous file is
|
|
1693
|
+
restored from memory, on the entry you were viewing, with no
|
|
1694
|
+
re-reading from disk.
|
|
1695
|
+
- **Re-opening an already-open file replaces the old instance** (e.g.
|
|
1696
|
+
the conversion auto-open after appending to an open output file) —
|
|
1697
|
+
one file, one entry in the browser. Unsaved changes still prompt.
|
|
1698
|
+
|
|
1699
|
+
### Fixed
|
|
1700
|
+
|
|
1701
|
+
- **Big raw files open without freezing the GUI.** Frames are read
|
|
1702
|
+
lazily on demand instead of materializing the whole 3D stack; the
|
|
1703
|
+
metadata walk runs off-thread with a real progress bar (scan progress
|
|
1704
|
+
for raw files, MB-by-MB copy progress for converted ones), and all
|
|
1705
|
+
opens — including from the Recent menu — go through the background
|
|
1706
|
+
worker.
|
|
1707
|
+
- **LIMA/Eiger detector files are recognized as raw.** Files with
|
|
1708
|
+
`entry_*`-style roots but no mlgid data layout previously
|
|
1709
|
+
misclassified as NeXus and failed with "component not found".
|
|
1710
|
+
|
|
1711
|
+
### Install
|
|
1712
|
+
|
|
1713
|
+
```bash
|
|
1714
|
+
# GUI only (view + edit existing NeXus results, in-GUI pyFAI calibration)
|
|
1715
|
+
pip install "git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a7"
|
|
1716
|
+
|
|
1717
|
+
# Full pipeline (adds detection / fitting / matching + raw conversion)
|
|
1718
|
+
pip install "mlgidlab[pipeline] @ git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a7"
|
|
1719
|
+
|
|
1720
|
+
mlgidlab # launch
|
|
1721
|
+
```
|
|
1722
|
+
|
|
1723
|
+
The `[pipeline]` extra pins the same verified-good backend set as
|
|
1724
|
+
`0.1.0a1`: `mlgidbase==0.1.3`, `pygid==0.2.10`, `pygidfit==0.1.3`,
|
|
1725
|
+
`mlgidmatch==0.1.3`, `pygidsim==0.1.4`.
|
|
1726
|
+
|
|
1727
|
+
## 0.1.0a6 — sixth alpha (2026-06-09)
|
|
1728
|
+
|
|
1729
|
+
Feature alpha on `0.1.0a5`. New image-viewer and export controls plus a
|
|
1730
|
+
theme fix. No on-disk schema or backend changes; the `[pipeline]` pins
|
|
1731
|
+
are unchanged.
|
|
1732
|
+
|
|
1733
|
+
### Added
|
|
1734
|
+
|
|
1735
|
+
- **Image aspect-ratio control** in the viewer toolbar (`Fit` /
|
|
1736
|
+
`Default` / `Custom`). `Default` (the startup choice) uses a per-mode
|
|
1737
|
+
shape — 1:1 for Cartesian, 2:1 for polar — and follows mode switches;
|
|
1738
|
+
`Custom` locks an on-screen width:height ratio; `Fit` stretches to
|
|
1739
|
+
fill. Scrolling over a single axis switches to `Custom` and adjusts
|
|
1740
|
+
the ratio live (x wider, y taller); double-clicking the image snaps
|
|
1741
|
+
back to `Default`.
|
|
1742
|
+
- **Remove a file with `Delete`.** Pressing `Delete` with a row selected
|
|
1743
|
+
in the file browser closes that file, mirroring `File → Close`
|
|
1744
|
+
(`Ctrl+W`).
|
|
1745
|
+
- **SVG figure export.** Tools → Export figure now saves vector **SVG**
|
|
1746
|
+
as well as raster PNG — the format follows the file extension you pick.
|
|
1747
|
+
|
|
1748
|
+
### Changed
|
|
1749
|
+
|
|
1750
|
+
- **Clear / Reset / delete-peak confirmations default to Yes**, so a
|
|
1751
|
+
single Enter confirms.
|
|
1752
|
+
|
|
1753
|
+
### Fixed
|
|
1754
|
+
|
|
1755
|
+
- **Light theme is actually light.** Both themes now apply a real
|
|
1756
|
+
qdarkstyle palette (dark / light) rather than falling back to the OS
|
|
1757
|
+
palette, so light mode reads as light on every desktop. Switching
|
|
1758
|
+
themes restyles the whole UI immediately — window chrome, plots, and
|
|
1759
|
+
the contrast slider — instead of only after a restart.
|
|
1760
|
+
|
|
1761
|
+
### Install
|
|
1762
|
+
|
|
1763
|
+
```bash
|
|
1764
|
+
# GUI only (view + edit existing NeXus results, in-GUI pyFAI calibration)
|
|
1765
|
+
pip install "git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a6"
|
|
1766
|
+
|
|
1767
|
+
# Full pipeline (adds detection / fitting / matching + raw conversion)
|
|
1768
|
+
pip install "mlgidlab[pipeline] @ git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a6"
|
|
1769
|
+
|
|
1770
|
+
mlgidlab # launch
|
|
1771
|
+
```
|
|
1772
|
+
|
|
1773
|
+
The `[pipeline]` extra pins the same verified-good backend set as
|
|
1774
|
+
`0.1.0a1`: `mlgidbase==0.1.3`, `pygid==0.2.10`, `pygidfit==0.1.3`,
|
|
1775
|
+
`mlgidmatch==0.1.3`, `pygidsim==0.1.4`.
|
|
1776
|
+
|
|
1777
|
+
## 0.1.0a5 — fifth alpha (2026-06-05)
|
|
1778
|
+
|
|
1779
|
+
Documentation-only alpha on `0.1.0a4`. No code, on-disk schema, or
|
|
1780
|
+
backend changes; the `[pipeline]` pins are unchanged. Cut to publish the
|
|
1781
|
+
alpha manual test plan and ship the example dataset as a release asset.
|
|
1782
|
+
|
|
1783
|
+
### Added
|
|
1784
|
+
|
|
1785
|
+
- **Public manual test plan** (`docs/manual_test_plan.html`) — a
|
|
1786
|
+
self-contained, click-through checklist (13 areas, ~30-45 min) that
|
|
1787
|
+
records pass/fail per step and copies an email-ready summary. Open it
|
|
1788
|
+
in any browser; progress autosaves locally. Linked from the README.
|
|
1789
|
+
- **Example dataset as a release asset.** The reference files the test
|
|
1790
|
+
plan uses (NeXus stacks, a raw Eiger frame + PONI/mask, the matching
|
|
1791
|
+
CIF pickle) ship as `example.zip` attached to this release instead of
|
|
1792
|
+
living in the repo, so the clone stays small. Download it and unzip
|
|
1793
|
+
next to the test plan.
|
|
1794
|
+
|
|
1795
|
+
### Install
|
|
1796
|
+
|
|
1797
|
+
```bash
|
|
1798
|
+
# GUI only (view + edit existing NeXus results, in-GUI pyFAI calibration)
|
|
1799
|
+
pip install "git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a5"
|
|
1800
|
+
|
|
1801
|
+
# Full pipeline (adds detection / fitting / matching + raw conversion)
|
|
1802
|
+
pip install "mlgidlab[pipeline] @ git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a5"
|
|
1803
|
+
|
|
1804
|
+
mlgidlab # launch
|
|
1805
|
+
```
|
|
1806
|
+
|
|
1807
|
+
The `[pipeline]` extra pins the same verified-good backend set as
|
|
1808
|
+
`0.1.0a1`: `mlgidbase==0.1.3`, `pygid==0.2.10`, `pygidfit==0.1.3`,
|
|
1809
|
+
`mlgidmatch==0.1.3`, `pygidsim==0.1.4`.
|
|
1810
|
+
|
|
1811
|
+
## 0.1.0a4 — fourth alpha (2026-06-03)
|
|
1812
|
+
|
|
1813
|
+
Bug-fix alpha on `0.1.0a3`. No on-disk schema or backend changes;
|
|
1814
|
+
the `[pipeline]` pins are unchanged.
|
|
1815
|
+
|
|
1816
|
+
### Fixed
|
|
1817
|
+
|
|
1818
|
+
- **Contrast no longer resets when you edit or run the pipeline.** The
|
|
1819
|
+
contrast set with the histogram slider is now remembered and reused
|
|
1820
|
+
across re-renders (adding a peak, running the pipeline, scrubbing
|
|
1821
|
+
frames), instead of snapping back to the auto-computed default. It
|
|
1822
|
+
still re-auto-contrasts when the data actually changes: opening a file,
|
|
1823
|
+
switching entries, or toggling log/linear. Switching Cartesian/Polar
|
|
1824
|
+
keeps it (same data, just resampled).
|
|
1825
|
+
|
|
1826
|
+
### Install
|
|
1827
|
+
|
|
1828
|
+
```bash
|
|
1829
|
+
# GUI only (view + edit existing NeXus results, in-GUI pyFAI calibration)
|
|
1830
|
+
pip install "git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a4"
|
|
1831
|
+
|
|
1832
|
+
# Full pipeline (adds detection / fitting / matching + raw conversion)
|
|
1833
|
+
pip install "mlgidlab[pipeline] @ git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a4"
|
|
1834
|
+
|
|
1835
|
+
mlgidlab # launch
|
|
1836
|
+
```
|
|
1837
|
+
|
|
1838
|
+
The `[pipeline]` extra pins the same verified-good backend set as
|
|
1839
|
+
`0.1.0a1`: `mlgidbase==0.1.3`, `pygid==0.2.10`, `pygidfit==0.1.3`,
|
|
1840
|
+
`mlgidmatch==0.1.3`, `pygidsim==0.1.4`.
|
|
1841
|
+
|
|
1842
|
+
## 0.1.0a3 — third alpha (2026-06-02)
|
|
1843
|
+
|
|
1844
|
+
Bug-fix alpha on `0.1.0a2`. No on-disk schema or backend changes;
|
|
1845
|
+
the `[pipeline]` pins are unchanged.
|
|
1846
|
+
|
|
1847
|
+
### Fixed
|
|
1848
|
+
|
|
1849
|
+
- **Deleting a fitted peak no longer wipes all matched structures.**
|
|
1850
|
+
Matched `peak_list` entries are positions into `fitted_peaks`, which
|
|
1851
|
+
shift when a row is removed, so the previous code cleared every
|
|
1852
|
+
`matched_*` solution on the frame as a blunt invalidation. It now
|
|
1853
|
+
reindexes instead: the deleted peak is dropped from any structure
|
|
1854
|
+
that referenced it, the surviving indices shift to keep pointing at
|
|
1855
|
+
the same peaks, structures that didn't reference it are left intact,
|
|
1856
|
+
and no structure is removed (one that loses its last peak is kept,
|
|
1857
|
+
just no longer drawn).
|
|
1858
|
+
|
|
1859
|
+
### Install
|
|
1860
|
+
|
|
1861
|
+
```bash
|
|
1862
|
+
# GUI only (view + edit existing NeXus results, in-GUI pyFAI calibration)
|
|
1863
|
+
pip install "git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a3"
|
|
1864
|
+
|
|
1865
|
+
# Full pipeline (adds detection / fitting / matching + raw conversion)
|
|
1866
|
+
pip install "mlgidlab[pipeline] @ git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a3"
|
|
1867
|
+
|
|
1868
|
+
mlgidlab # launch
|
|
1869
|
+
```
|
|
1870
|
+
|
|
1871
|
+
The `[pipeline]` extra pins the same verified-good backend set as
|
|
1872
|
+
`0.1.0a1`: `mlgidbase==0.1.3`, `pygid==0.2.10`, `pygidfit==0.1.3`,
|
|
1873
|
+
`mlgidmatch==0.1.3`, `pygidsim==0.1.4`.
|
|
1874
|
+
|
|
1875
|
+
## 0.1.0a2 — second alpha (2026-06-02)
|
|
1876
|
+
|
|
1877
|
+
Second evaluation alpha. Incremental on `0.1.0a1`: a crash fix on the
|
|
1878
|
+
hot interaction path, more robust undo/redo, a small peak-editing
|
|
1879
|
+
addition, and repository slimming. No on-disk schema or backend
|
|
1880
|
+
changes: `0.1.0a1` files load unchanged and the `[pipeline]` pins are
|
|
1881
|
+
the same verified-good set.
|
|
1882
|
+
|
|
1883
|
+
### Fixed
|
|
1884
|
+
|
|
1885
|
+
- **Viewer no longer crashes during a write.** Moving the cursor over
|
|
1886
|
+
the polar plot, or toggling the Cartesian/Polar view, while a write
|
|
1887
|
+
was in flight (pipeline run, ROI commit, Add-to-fitted, clear-peaks,
|
|
1888
|
+
Save As) raised `RuntimeError: FrameSource not acquired` on every
|
|
1889
|
+
event, because the frame reader's file handle is closed for the
|
|
1890
|
+
duration of that write. The cursor readout now degrades to a blank
|
|
1891
|
+
intensity and the view toggle defers its render until the handle
|
|
1892
|
+
reopens, instead of throwing.
|
|
1893
|
+
- **Undo/redo survives shortcut conflicts.** `Ctrl+Z` / `Ctrl+Shift+Z`
|
|
1894
|
+
/ `Ctrl+Y` are now intercepted before the ambiguous-shortcut
|
|
1895
|
+
resolver, so they keep working even when silx mask-tools or pyFAI
|
|
1896
|
+
peak-picking (pulled in by the calibration dialog) register the same
|
|
1897
|
+
chords. Multi-level undo/redo across consecutive delete and paste
|
|
1898
|
+
operations was also fixed; earlier ops are no longer dropped from
|
|
1899
|
+
history.
|
|
1900
|
+
|
|
1901
|
+
### Added
|
|
1902
|
+
|
|
1903
|
+
- **Confidence level for Add-to-detected.** Committing a manual box to
|
|
1904
|
+
`detected_peaks` now writes the score chosen in the Parameter panel
|
|
1905
|
+
(High = 1.0 / Medium = 0.5 / Low = 0.1) instead of a fixed value; the
|
|
1906
|
+
add stays undoable.
|
|
1907
|
+
|
|
1908
|
+
### Changed
|
|
1909
|
+
|
|
1910
|
+
- Removed the bundled `example/` dataset (~150 MB of HDF5 / mask /
|
|
1911
|
+
prepared-CIF binaries) from the repository to keep clones small; the
|
|
1912
|
+
getting-started guide walks through opening your own data.
|
|
1913
|
+
- README slimmed and reorganised; added
|
|
1914
|
+
[`docs/getting_started.md`](docs/getting_started.md) (per-OS install +
|
|
1915
|
+
first-file walkthrough) and
|
|
1916
|
+
[`docs/backend_compatibility.md`](docs/backend_compatibility.md)
|
|
1917
|
+
(backend version policy).
|
|
1918
|
+
|
|
1919
|
+
### Install
|
|
1920
|
+
|
|
1921
|
+
```bash
|
|
1922
|
+
# GUI only (view + edit existing NeXus results, in-GUI pyFAI calibration)
|
|
1923
|
+
pip install "git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a2"
|
|
1924
|
+
|
|
1925
|
+
# Full pipeline (adds detection / fitting / matching + raw conversion)
|
|
1926
|
+
pip install "mlgidlab[pipeline] @ git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a2"
|
|
1927
|
+
|
|
1928
|
+
mlgidlab # launch
|
|
1929
|
+
```
|
|
1930
|
+
|
|
1931
|
+
The `[pipeline]` extra pins the same verified-good backend set as
|
|
1932
|
+
`0.1.0a1`: `mlgidbase==0.1.3`, `pygid==0.2.10`, `pygidfit==0.1.3`,
|
|
1933
|
+
`mlgidmatch==0.1.3`, `pygidsim==0.1.4`.
|
|
1934
|
+
|
|
1935
|
+
## 0.1.0a1 — first alpha (2026-05-29)
|
|
1936
|
+
|
|
1937
|
+
First public alpha of **mlgidLAB**, a desktop GUI for the
|
|
1938
|
+
[mlgidBASE](https://github.com/mlgid-project/mlgidBASE) GIWAXS analysis
|
|
1939
|
+
pipeline. It wraps the full `pygid → mlgidDETECT → pygidFIT → mlgidMATCH`
|
|
1940
|
+
workflow — raw detector frames can be converted to NeXus, then detected,
|
|
1941
|
+
fitted, matched, reviewed, and edited, all in one PySide6 window. The
|
|
1942
|
+
upstream algorithms are unchanged; mlgidLAB adds visual control.
|
|
1943
|
+
|
|
1944
|
+
This is an **alpha** for evaluation inside the research group: the core
|
|
1945
|
+
detect → fit → match → edit loop works end-to-end, but expect rough
|
|
1946
|
+
edges. Please report issues (see *Known limitations* below).
|
|
1947
|
+
|
|
1948
|
+
### Highlights
|
|
1949
|
+
|
|
1950
|
+
**View & navigate**
|
|
1951
|
+
- Open NeXus or raw HDF5 by content auto-detection (File → Open,
|
|
1952
|
+
drag-and-drop, or Open recent). Multiple files open at once.
|
|
1953
|
+
- Cartesian (q_xy / q_z) ↔ polar image toggle; raw files show the
|
|
1954
|
+
detector image in pixels. Frame slider + Play, colormap, histogram
|
|
1955
|
+
levels, log/linear contrast, live cursor readout.
|
|
1956
|
+
- Lazy frame loading with bounded per-frame LRU caches and a
|
|
1957
|
+
background prefetcher, so multi-GB stacks open on a laptop.
|
|
1958
|
+
|
|
1959
|
+
**Convert (raw → NeXus)**
|
|
1960
|
+
- Multi-file batch conversion; GID / Transmission geometry and all
|
|
1961
|
+
four pygid conversion types.
|
|
1962
|
+
- PONI + mask + angle-of-incidence inputs, with an embedded pyFAI
|
|
1963
|
+
calibration dialog (Create… buttons) seeded from the active scan.
|
|
1964
|
+
- Separate-files or separate-datasets output, append-vs-overwrite.
|
|
1965
|
+
|
|
1966
|
+
**Detect / fit / match**
|
|
1967
|
+
- Run Detection, Fitting, Matching (or the full pipeline) from the
|
|
1968
|
+
Pipeline dock; every mlgidBASE parameter is exposed.
|
|
1969
|
+
- Matching from a preprocessed CIF pickle, raw `.cif` files, or a CIF
|
|
1970
|
+
folder; per-entry experimental parameters from instrument metadata.
|
|
1971
|
+
- Run scopes: active entry / all entries / active frame / all frames.
|
|
1972
|
+
|
|
1973
|
+
**Edit peaks**
|
|
1974
|
+
- Manual peaks via `Ctrl+Alt`-drag; commit with Add-to-detected or
|
|
1975
|
+
Add-to-fitted (2D pygidfit, or 1D scipy fallback) with a live cyan
|
|
1976
|
+
preview box and on-image ROI resize.
|
|
1977
|
+
- **Multi-select** detected *or* fitted peaks with `Ctrl+click`
|
|
1978
|
+
(kind-aware) and `Ctrl+A` (all of the current kind on the frame).
|
|
1979
|
+
- **Copy/paste** detected peaks with `Ctrl+C` / `Ctrl+V`, and
|
|
1980
|
+
**paste to a frame range** (`Ctrl+Shift+V`, e.g. `0-34,37`).
|
|
1981
|
+
- **Batch 2D fit** ("Fit selected (2D)") over every selected detected
|
|
1982
|
+
peak, with a cancellable progress dialog.
|
|
1983
|
+
- **Bulk delete** a multi-selection (`Delete`); single and bulk delete
|
|
1984
|
+
are both **undoable** (`Ctrl+Z` / `Ctrl+Shift+Z`), including the
|
|
1985
|
+
fitted 2D-shape parameters.
|
|
1986
|
+
|
|
1987
|
+
**Inspect & export**
|
|
1988
|
+
- Peaks dock: sortable Detected / Fitted / Matched tables with
|
|
1989
|
+
bidirectional click-sync to the image; Display dock overlay toggles
|
|
1990
|
+
+ score / probability / CIF-name filters.
|
|
1991
|
+
- Profiles dock: live radial + angular Gaussian fits of the selected
|
|
1992
|
+
peak.
|
|
1993
|
+
- Tools → Export figure… (matplotlib via mlgidbase), Export peaks as
|
|
1994
|
+
CSV…, Clear / Reset peaks at frame / entry / all scopes.
|
|
1995
|
+
- Help → Controls & shortcuts (F1), About, Copy diagnostics.
|
|
1996
|
+
|
|
1997
|
+
### Install
|
|
1998
|
+
|
|
1999
|
+
Requires **Python ≥ 3.11** (Linux, macOS, Windows).
|
|
2000
|
+
|
|
2001
|
+
```bash
|
|
2002
|
+
# GUI only (view + edit existing NeXus results, in-GUI pyFAI calibration)
|
|
2003
|
+
pip install "git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a1"
|
|
2004
|
+
|
|
2005
|
+
# Full pipeline (adds detection / fitting / matching + raw conversion)
|
|
2006
|
+
pip install "mlgidlab[pipeline] @ git+https://github.com/mlgid-project/mlgidLAB@v0.1.0a1"
|
|
2007
|
+
|
|
2008
|
+
mlgidlab # launch
|
|
2009
|
+
```
|
|
2010
|
+
|
|
2011
|
+
The `[pipeline]` extra pins the verified-good backend set:
|
|
2012
|
+
`mlgidbase==0.1.3`, `pygid==0.2.10`, `pygidfit==0.1.3`,
|
|
2013
|
+
`mlgidmatch==0.1.3`, `pygidsim==0.1.4`. The GUI runs without them in
|
|
2014
|
+
view-only mode (Run buttons disabled). See
|
|
2015
|
+
[`docs/getting_started.md`](docs/getting_started.md) for per-OS install
|
|
2016
|
+
detail and a first-file walkthrough, and
|
|
2017
|
+
[`docs/backend_compatibility.md`](docs/backend_compatibility.md) for the
|
|
2018
|
+
backend version policy.
|
|
2019
|
+
|
|
2020
|
+
### Known limitations
|
|
2021
|
+
|
|
2022
|
+
- **Alpha**: APIs, file layout, and UI may change before a stable
|
|
2023
|
+
release. Back up data before editing.
|
|
2024
|
+
- The `[pipeline]` extra installs the heavy ML stack (torch + the
|
|
2025
|
+
in-house mlgid packages); first install is large.
|
|
2026
|
+
- `mlgidMATCH` is GPL-3.0 while mlgidlab is MIT — it is an optional,
|
|
2027
|
+
separately-installed dependency the GUI only calls (aggregation, not
|
|
2028
|
+
a derived work).
|
|
2029
|
+
- Some error paths in the calibration dialog and background workers
|
|
2030
|
+
log rather than surface to the UI; if an operation seems to do
|
|
2031
|
+
nothing, check the Logs dock.
|
|
2032
|
+
- mlgidlab's fitted-peak add/delete touches `fitted_peaks` only, not
|
|
2033
|
+
the paired `fitted_peaks_errors`; re-run Matching after editing
|
|
2034
|
+
fitted peaks (matched indices reference the fitted-row ordering).
|
|
2035
|
+
|
|
2036
|
+
### License & contact
|
|
2037
|
+
|
|
2038
|
+
MIT — see [`LICENSE`](LICENSE). Maintainer: Nico Lerch
|
|
2039
|
+
(<nico.lerch@uni-tuebingen.de>); issues via
|
|
2040
|
+
https://github.com/mlgid-project/mlgidLAB/issues.
|