Topological Material Analysis 0.5
Analyse the structures of materials using tools from TDA
|
Functions | |
read_configuration (str configuration_file, str configuration) | |
import a specified structure from a configuration file | |
read_computation_settings (str settings_file, settings_name) | |
import a specified settings from a file | |
load_configuration_settings () | |
Load the configuration settings. | |
load_computation_settings () | |
Load the computation settings. | |
write_dgm_csv (dgm, file_path, plot_name="") | |
Save a digram as a csv file, with the option to save a plot as well. | |
save_plots () | |
Save plots to a directory. | |
toma_io.load_computation_settings | ( | ) |
Load the computation settings.
Load computation settings from the session state
This function reads computation settings from st.session_state and loads them into the session state. It uses read_computation_settings() to parse the settings file and extract:
toma_io.load_configuration_settings | ( | ) |
Load the configuration settings.
Load configuration settings from the session state
This function reads configuration settings from st.session_state and loads them into the session state. It uses read_configuration() to parse the config file and extract:
The settings are read from:
The parsed settings are stored back in st.session_state as:
toma_io.read_computation_settings | ( | str | settings_file, |
settings_name ) |
import a specified settings from a file
settings_file | path to the file to use for configurations |
settings_name | name of the structure to use |
toma_io.read_configuration | ( | str | configuration_file, |
str | configuration ) |
import a specified structure from a configuration file
configuration_file | path to the file to use for configurations |
configuration | name of the structure to use |
toma_io.save_plots | ( | ) |
Save plots to a directory.
Save plots to a directory
This function saves plots to a specified directory. It uses the following from st.session_state:
toma_io.write_dgm_csv | ( | dgm, | |
file_path, | |||
plot_name = "" ) |
Save a digram as a csv file, with the option to save a plot as well.
dgm | the diagram to be saved, and plotted |
dir | directory in which to save the files |
name | name of the structure |
save_plot | save the plots as well |