cosedaUI.importers package

Submodules

cosedaUI.importers.import_emd_window module

Dialog and worker to import EMD files/folders and convert them to H5/INI.

class cosedaUI.importers.import_emd_window.EMDImportThread(*args, **kwargs)[source]

Bases: QThread

Worker thread that converts EMD inputs to H5/INI artifacts and reports status.

file_progress

alias of int

finished

alias of bool

run()[source]

Perform EMD conversion work, emitting progress and final result/INI list.

status_update

alias of str

class cosedaUI.importers.import_emd_window.ImportEMDWindow(*args, **kwargs)[source]

Bases: QDialog

add_emd_file()[source]

Add one or more .emd files to the selection list, avoiding duplicates.

add_emd_folder()[source]

Add a folder path; later expanded to include all .emd files inside.

closeEvent(event)[source]

Stop monitor cleanly and keep the dialog alive while a worker runs.

dragEnterEvent(event)[source]
dropEvent(event)[source]
import_finished(success, message, ini_files)[source]

Handle completion of the import, reporting results and adding INIs to the workspace.

init_ui()[source]

Build the import dialog UI controls and wiring.

remove_selected_items()[source]

Remove the currently selected rows from the selection list.

start_import()[source]

Validate inputs, resolve .emd files, and start the conversion worker thread.

start_monitor(input_paths)[source]

Start polling selected EMD sources and import stable files.

stop_monitor()[source]

Stop scanning for new EMD files.

update_status(message)[source]

Append a status message to the log text area.

cosedaUI.importers.import_h5_window module

Dialog for importing existing HDF5 datasets and creating plain INS metadata.

class cosedaUI.importers.import_h5_window.ImportH5Window(*args, **kwargs)[source]

Bases: QDialog

Dialog to import an existing HDF5: - Creates a plain INS file alongside the HDF5. - Moves and renames the HDF5 into the INS output folder.

browse_dest()[source]

Pick a destination folder for the INS/HDF5 outputs.

browse_file()[source]

Pick one or more HDF5 files to import.

import_h5()[source]

Create plain INS files and move the selected HDF5 files.

cosedaUI.importers.import_mrc_window module

Dialog and worker to import MRC files/folders, create INIs, and convert to H5.

class cosedaUI.importers.import_mrc_window.ImportMRCWindow(*args, **kwargs)[source]

Bases: QDialog

UI to batch-import MRC folders and kick off conversion to H5.

add_mrc_file()[source]

Add one or more .mrc files to the list.

add_mrc_folder()[source]

Add a folder containing MRC files to the list.

dragEnterEvent(event)[source]
dropEvent(event)[source]
import_finished(success, message, ini_files)[source]

Handle completion of the import process and update workspace on success.

init_ui()[source]

Build the import dialog controls and wiring.

remove_selected_folders()[source]

Remove selected folder entries from the list.

start_import()[source]

Validate selection and start the worker thread to convert MRCs.

update_status(message)[source]

Append status messages to the log box.

class cosedaUI.importers.import_mrc_window.MRCImportThread(*args, **kwargs)[source]

Bases: QThread

Worker thread to create INI files from MRC sources and run batch conversion.

file_progress

alias of int

finished

alias of bool

run()[source]

Perform INI creation and MRC conversion across all selected folders.

status_update

alias of str

cosedaUI.importers.import_tiff_window module

Dialog and worker to import TIFF folders, generate INI, and convert to H5.

class cosedaUI.importers.import_tiff_window.ImportTiffWindow(*args, **kwargs)[source]

Bases: QDialog

UI to select a TIFF folder, set compression, and launch conversion to H5/INI.

import_finished(success, message)[source]

Handle completion, surface result, and auto-add generated INI to the workspace.

init_ui()[source]

Build the UI controls for selecting a folder and setting TIFF conversion options.

select_tiff_folder()[source]

Prompt the user to choose a TIFF folder and update the input field.

start_import()[source]

Validate input, start the TIFF import worker, and wire up status callbacks.

update_status(message)[source]

Append a status line to the log text box.

class cosedaUI.importers.import_tiff_window.TiffImportThread(*args, **kwargs)[source]

Bases: QThread

finished

alias of bool

run()[source]

Execute TIFF import and conversion, emitting progress and final status.

status_update

alias of str

Module contents

Importer dialogs for bringing raw data into COSEDA.

class cosedaUI.importers.ImportEMDWindow(*args, **kwargs)[source]

Bases: QDialog

add_emd_file()[source]

Add one or more .emd files to the selection list, avoiding duplicates.

add_emd_folder()[source]

Add a folder path; later expanded to include all .emd files inside.

closeEvent(event)[source]

Stop monitor cleanly and keep the dialog alive while a worker runs.

dragEnterEvent(event)[source]
dropEvent(event)[source]
import_finished(success, message, ini_files)[source]

Handle completion of the import, reporting results and adding INIs to the workspace.

init_ui()[source]

Build the import dialog UI controls and wiring.

remove_selected_items()[source]

Remove the currently selected rows from the selection list.

start_import()[source]

Validate inputs, resolve .emd files, and start the conversion worker thread.

start_monitor(input_paths)[source]

Start polling selected EMD sources and import stable files.

stop_monitor()[source]

Stop scanning for new EMD files.

update_status(message)[source]

Append a status message to the log text area.

class cosedaUI.importers.ImportH5Window(*args, **kwargs)[source]

Bases: QDialog

Dialog to import an existing HDF5: - Creates a plain INS file alongside the HDF5. - Moves and renames the HDF5 into the INS output folder.

browse_dest()[source]

Pick a destination folder for the INS/HDF5 outputs.

browse_file()[source]

Pick one or more HDF5 files to import.

import_h5()[source]

Create plain INS files and move the selected HDF5 files.

class cosedaUI.importers.ImportMRCWindow(*args, **kwargs)[source]

Bases: QDialog

UI to batch-import MRC folders and kick off conversion to H5.

add_mrc_file()[source]

Add one or more .mrc files to the list.

add_mrc_folder()[source]

Add a folder containing MRC files to the list.

dragEnterEvent(event)[source]
dropEvent(event)[source]
import_finished(success, message, ini_files)[source]

Handle completion of the import process and update workspace on success.

init_ui()[source]

Build the import dialog controls and wiring.

remove_selected_folders()[source]

Remove selected folder entries from the list.

start_import()[source]

Validate selection and start the worker thread to convert MRCs.

update_status(message)[source]

Append status messages to the log box.

class cosedaUI.importers.ImportTiffWindow(*args, **kwargs)[source]

Bases: QDialog

UI to select a TIFF folder, set compression, and launch conversion to H5/INI.

import_finished(success, message)[source]

Handle completion, surface result, and auto-add generated INI to the workspace.

init_ui()[source]

Build the UI controls for selecting a folder and setting TIFF conversion options.

select_tiff_folder()[source]

Prompt the user to choose a TIFF folder and update the input field.

start_import()[source]

Validate input, start the TIFF import worker, and wire up status callbacks.

update_status(message)[source]

Append a status line to the log text box.