crtomo.notebook package¶
Subpackages¶
- crtomo.notebook.steps package
- Submodules
- crtomo.notebook.steps.base_step module
- crtomo.notebook.steps.data_import module
step_data_importstep_data_import.apply_next_input()step_data_import.apply_next_input_from_gui()step_data_import.can_run()step_data_import.create_ipywidget_gui()step_data_import.find_previous_step()step_data_import.persistency_load()step_data_import.persistency_store()step_data_import.set_input_new()step_data_import.transfer_input_new_to_applied()
- crtomo.notebook.steps.fe_mesh module
step_fe_meshstep_fe_mesh.apply_next_input()step_fe_mesh.apply_next_input_from_gui()step_fe_mesh.can_run()step_fe_mesh.create_ipywidget_gui()step_fe_mesh.find_previous_step()step_fe_mesh.persistency_load()step_fe_mesh.persistency_store()step_fe_mesh.set_input_new()step_fe_mesh.transfer_input_new_to_applied()
- crtomo.notebook.steps.raw_data_visualization module
step_raw_visualizationstep_raw_visualization.apply_next_input()step_raw_visualization.apply_next_input_from_gui()step_raw_visualization.can_run()step_raw_visualization.create_ipywidget_gui()step_raw_visualization.find_previous_step()step_raw_visualization.persistency_load()step_raw_visualization.persistency_store()step_raw_visualization.set_input_new()step_raw_visualization.transfer_input_new_to_applied()
- Module contents
Submodules¶
crtomo.notebook.nb module¶
- class crtomo.notebook.nb.crtomo_gui_jupyter[source]¶
Bases:
objectOLD DEPRECATED
These were first testing stages.
- class crtomo.notebook.nb.processing_workflow_v1(persistent_directory=None, prepare_gui=True)[source]¶
Bases:
objectProvide one workflow for processing, inversion, and visualization of CR data.
Input is provided only by dictionaries (or, optional, via json strings).
Please note that this workflow represents only one specific way of handling complex-resistivity data. Other workflows may be more appropriate for specific applications.
# Executing the workflow
As a first rule of thumb, each step can only be executed once the previous one is finished. There may be exceptions when it comes to plotting/analysing inversion results.
# Steps of the workflow:
step 1: Data import:
step 2: Raw data visualisation
- step_raw_visualisation = {
‘plot_histograms’: True, ‘plot_pseudosections’: True, // default: type 1 ‘pseudosection_type’: int(1),
}
- __init__(persistent_directory=None, prepare_gui=True)[source]¶
- Parameters:
persistent_directory (None|str) – If given, store input data and, if possible, intermediate results, in a persistent directory. Data is then loaded from this directory during the next initialisation
- class crtomo.notebook.nb.step_inversion_analysis(persistent_directory=None)[source]¶
Bases:
base_step- apply_next_input_from_gui(button)[source]¶
Generate an input dict from the gui elements and apply those new inputs
- can_run()¶
Check if all required steps have been finished
- find_previous_step(starting_step, search_name)¶
- persistency_load()¶
Load state of this step from peristency directory
- persistency_store()¶
Store the current state of the widget in the given persistency directory
- set_input_new(input_new)¶
Apply a new set of inputs
TODO: This is the place to check the input_new dictionary for consistency with self.input_skel
- transfer_input_new_to_applied()¶
Make a copy of the self.input_new dict and store in self.input_applied
This is complicated because some objects cannot be easily copied (e.g., io.BytesIO). Therefore, each step must implement this function by itself.
- class crtomo.notebook.nb.step_inversion_settings(persistent_directory=None)[source]¶
Bases:
base_step- apply_next_input_from_gui(button)[source]¶
Generate an input dict from the gui elements and apply those new inputs
- can_run()¶
Check if all required steps have been finished
- find_previous_step(starting_step, search_name)¶
- persistency_load()¶
Load state of this step from peristency directory
- persistency_store()¶
Store the current state of the widget in the given persistency directory
- set_input_new(input_new)¶
Apply a new set of inputs
TODO: This is the place to check the input_new dictionary for consistency with self.input_skel
- transfer_input_new_to_applied()¶
Make a copy of the self.input_new dict and store in self.input_applied
This is complicated because some objects cannot be easily copied (e.g., io.BytesIO). Therefore, each step must implement this function by itself.