imports
imports#
- class ImportBase[source]#
Bases:
abc.ABCAn overarching class that controls the rest of the processing pipeline. Holds
Uploaderinstances, which can be used for uploading data in the form ofProjectionsinstances. The prenorm_uploader is general, in that it can be used for any type of data. This is why it is in the base class. The subclasses of ImportBase are for creating and holding rawUploaderinstances.- enable_prenorm(*args)[source]#
Makes the prenorm_uploader projections the projections used throughout the app. Refreshes plots in the other tabs to match these.
- class PrenormUploader(Import)[source]#
Bases:
tomopyui.widgets.imports.UploaderBase- create_and_display_metadata_tables()[source]#
Creates metadata dataframe and displays it in self.metadata_table_output.
- create_metadata_callback(name, widget)[source]#
Callback for setting metadata. Creates metadata table and displays it if all required metadata are in self.projections.metadata.metadata
- enter_metadata_output()[source]#
Enables/disables widgets if they are not/are already in the metadata. Displays the box if any of the widgets are not disabled.
- images_in_dir_callback(change, from_select=True)[source]#
Callback for the image selection widget. Displays updated metadata table with image pixel sizes if you select a tiff or npy.
- Parameters
- from_select: bool
If this is false, ind will be the current selected index. Needed for calling back from self.tiff_folder_on.
- import_data()[source]#
Function that calls on io.py (projections) to run import. The function chosen will depend on whether one is uploading a folder, or a
- reset_required_widgets()[source]#
Resets metadata widgets to default values. This also sets the metadata dict values (widget.value = val triggers metadata setting callbacks)
- class RawUploader_ALS832(Import)[source]#
Bases:
tomopyui.widgets.imports.UploaderBaseRaw uploaders are the way you get your raw data (projections, flats, dark fields) into TomoPyUI. It holds a ProjectionsBase subclass (see io.py) that will do all of the data import stuff. the ProjectionsBase subclass for SSRL is RawProjectionsXRM_SSRL62. For you, it could be named RawProjectionsHDF5_APSyourbeamlinenumber().
- import_data()[source]#
This is what is called when you click the blue import button on the frontend.
- update_filechooser_from_quicksearch(h5files)[source]#
This is what is called when you update the quick path search bar. Right now, this is very basic. If you want to see a more complex version of this you can look at the example in PrenormUploader.
This is called after _update_filechooser_from_quicksearch in UploaderBase.
- class RawUploader_APS(Import)[source]#
Bases:
tomopyui.widgets.imports.RawUploader_ALS832See descriptions in RawUploader_ALS832 superclass. You shouldn’t have to do much here other than changing self.projections and self.reset_metadata_to if you change those names. # Francesco: edit here, if needed.
- class RawUploader_SSRL62B(Import)[source]#
Bases:
tomopyui.widgets.imports.UploaderBaseThis uploader has two slots for choosing files and uploading: one for references, one for projections. This is because our data is stored in two separate folders.