2.5.18. prismatique.load.num_frozen_phonon_configs_in_subset
- num_frozen_phonon_configs_in_subset(filename, skip_validation_and_conversion=False)[source]
From a given
prismatiqueoutput file that stores data related to a frozen phonon configuration subset, load the number of frozen phonon configurations making up the subset.See the documentation for the class
prismatique.thermal.Paramsfor a discussion on frozen phonon configurations and subsets thereof.- Parameters:
- filenamestr
The relative or absolute path to the file containing
prismatiqueoutput related to the frozen phonon configuration subset of interest. Any non-temporary file generated by the functionprismatique.sample.generate_potential_slices(),prismatique.sample.generate_S_matrices(),prismatique.stem.sim.run(), orprismatique.hrtem.sim.run()with originally a basename of the form"potential_slices_of_subset_"+str(i)+".h5","S_matrices_of_subset_"+str(i)+".h5","stem_sim_wavefunction_output_of_subset_"+str(i)+".h5", or"hrtem_sim_wavefunction_output_of_subset_"+str(i)+".h5"is valid, whereiis a nonnegative integer.See the documentation for the classes
prismatique.stem.output.Paramsandprismatique.hrtem.output.Paramsfor discussions on the layout and structure ofprismatiqueSTEM and HRTEM simulation output files respectively.- skip_validation_and_conversionbool, optional
If
skip_validation_and_conversionis set toFalse, then validations and conversions are performed on the above parameters.Otherwise, if
skip_validation_and_conversionis set toTrue, no validations and conversions are performed on the above parameters. This option is desired primarily when the user wants to avoid potentially expensive validation and/or conversion operations.
- Returns:
- num_configs_in_subsetint
The number of frozen phonon configurations in the subset specified by the output file.