|
Topological Material Analysis 0.5
Analyse the structures of materials using tools from TDA
|
Functions | |
| read_sample (str structure_file, str configuration) | |
| import a specified sample range from a configuration file | |
| read_oineus_settings (str structure_file, str setting_name) | |
| import settings for kernel/image/cokernel | |
| sample_at (str file_path, str format, sample_index, int repeat_x, int repeat_y, int repeat_z, atom_list, radius_list) | |
| Sample a structure at a particular time, with cell repetitions. | |
| weighted_alpha_diode (points) | |
| Use diode to fill the weighted alpha shapes. | |
| convert_simps_to_oineus (list simplices) | |
| Diode is set to create simplices for dionysus, so we need to convert them to the correct type for oineus. | |
| oineus_compare (x, y) | |
| Comparison to compare list of simplicies to get them in the order for oineus. | |
| sub_complex (pd.DataFrame points, float z_upper, float z_lower) | |
| Given the points, and the upper and lower thresholds in the 'z'-component. | |
| oineus_filtration (pd.DataFrame points, oineus.ReductionParams params) | |
| Given a set of points, compute the oineus.filtration of the alpha complex. | |
| oineus_pair (pd.DataFrame points, list sub) | |
| Given a set of points, and the points that are in the subset L, construct the complexes and map between them. | |
| oineus_process (pd.DataFrame points, oineus.ReductionParams params) | |
| Given some points with weights, and the number of threads to use, obtain the persistent homology of the weighted alpha complex of these points, using oineus. | |
| oineus_kernel_image_cokernel (pd.DataFrame points, oineus.ReductionParams params, float upper_threshold, float lower_threshold) | |
| Given points, and parameters for oineus, calculate the kernel/image/cokernel persistence as desired. | |
| calculate_APF (dgm) | |
| Calcualte the APF from a diagram. | |
| compute () | |
| test () | |
| define various functions needed for later | |
| process.calculate_APF | ( | dgm | ) |
Calcualte the APF from a diagram.
| dgm | the diargam you want to calculate the APF for |
| process.compute | ( | ) |
| process.convert_simps_to_oineus | ( | list | simplices | ) |
Diode is set to create simplices for dionysus, so we need to convert them to the correct type for oineus.
| simplices | a list of simplices from diode |
| process.oineus_compare | ( | x, | |
| y ) |
Comparison to compare list of simplicies to get them in the order for oineus.
| x | simplex to compare |
| y | simplex to compare |
| process.oineus_filtration | ( | pd.DataFrame | points, |
| oineus.ReductionParams | params ) |
Given a set of points, compute the oineus.filtration of the alpha complex.
| points | pd.DataFrame containing points and their weights |
| params | oineus.ReductionParams which contains the settings for oineus |
| process.oineus_kernel_image_cokernel | ( | pd.DataFrame | points, |
| oineus.ReductionParams | params, | ||
| float | upper_threshold, | ||
| float | lower_threshold ) |
Given points, and parameters for oineus, calculate the kernel/image/cokernel persistence as desired.
| points | pd.DataFrame of the points, with columns 'x','y','z','w' corresponding to the coordinates and weights respectively |
| kernel | boolean parameter to set if kernel persistence is calculated |
| image | boolean parameter to set if image persistence is calculated |
| cokernel | boolean parameter to set if cokernel persistence is calculated |
| n_threads | number of threads to use in oineus |
| upper_threshold | float, z-coordinate above which points are in the subcomplex |
| lower_threshold | float z-coordinate below which points are in the subcomplex |
| process.oineus_pair | ( | pd.DataFrame | points, |
| list | sub ) |
Given a set of points, and the points that are in the subset L, construct the complexes and map between them.
The subcomplex L will consists of all simplices whose vertex are in the subset.
| points | pd.DataFrame containing the points and their weights |
| sub | a list containing the indices of the points on which we construct the subcomplex |
| process.oineus_process | ( | pd.DataFrame | points, |
| oineus.ReductionParams | params ) |
Given some points with weights, and the number of threads to use, obtain the persistent homology of the weighted alpha complex of these points, using oineus.
| points | pd.DataFrame of the points, with colums 'x','y','z','w' |
| params | oineus.ReudctionParams |
| process.read_oineus_settings | ( | str | structure_file, |
| str | setting_name ) |
import settings for kernel/image/cokernel
| file_path | path to the ini file containing the settings |
| settings_name | name of the settings to use |
| process.read_sample | ( | str | structure_file, |
| str | configuration ) |
import a specified sample range from a configuration file
| file_path | path to the file to use for configurations |
| sample_range | name of the structure to use |
| process.sample_at | ( | str | file_path, |
| str | format, | ||
| sample_index, | |||
| int | repeat_x, | ||
| int | repeat_y, | ||
| int | repeat_z, | ||
| atom_list, | |||
| radius_list ) |
Sample a structure at a particular time, with cell repetitions.
| atoms | initial configuration |
| sample_index | time to sample at |
| repeat_x | repetition in x dir |
| repeat_y | repetition in y dir |
| repeat_z | repetition in z dir @parm atom_list list of atoms in the config |
| radius_list | list of radii to use for the atoms |
| process.sub_complex | ( | pd.DataFrame | points, |
| float | z_upper, | ||
| float | z_lower ) |
Given the points, and the upper and lower thresholds in the 'z'-component.
| points | pd.DataFrame containing of the points. |
| z_upper | float giving the upper threshold, any point above this is in the subcomplex |
| z_lower | float giving the lower threshold, any point below this is in the subcomplex |
| process.test | ( | ) |
define various functions needed for later
| process.weighted_alpha_diode | ( | points | ) |
Use diode to fill the weighted alpha shapes.
| points | pd.DataFrame with columns 'x', 'y', 'z' for coordinates, and column 'w' with the weights. |