2.6.11. prismatique.sample.potential_slice_subset_data_size
- potential_slice_subset_data_size(sample_specification, subset_idx=0, skip_validation_and_conversion=False)[source]
Calculate the data size of a specified subset of potential slices that one could generate according to a given sample model.
See the documentation for the classes
prismatique.discretization.Paramsandprismatique.thermal.Paramsfor discussions on potential slices and frozen phonon configuration subsets respectively.Note that data size due to HDF5 file overhead and metadata are not taken into account.
- Parameters:
- sample_specification
prismatique.sample.ModelParams|prismatique.sample.PotentialSliceSubsetIDs The simulation parameters specifying the sample model.
If
sample_specificationis of the typeprismatique.sample.ModelParams, thensample_specificationsspecifies sample model parameters that are used to construct the model from scratch, i.e. the potential slices for each frozen phonon configuration subset are calculated from said model parameters. See the documentation for the classesprismatique.discretization.Paramsandprismatique.thermal.Paramsfor discussions on potential slices and frozen phonon configuration subsets respectively. Note that of parameters stored insample_specification, only the following are used:sample_specification
discretization_params
sample_supercell_reduced_xy_dims_in_pixels
interpolation_factors
num_slices
thermal_params
num_frozen_phonon_configs_per_subset
num_subsets
Otherwise, if
sample_specificationis an instance of the classprismatique.sample.PotentialSliceSubsetIDsthensample_specificationspecifies a set of files, where each file stores the pre-calculated potential slices for a frozen phonon configuration subset. See the documentation for the aforementioned class for a further discussion on specifying pre-calculated potential slices.- subset_idxint, optional
The index specifying the frozen phonon configuration subset of which we want to calculate the size of the potential slice file. Must satisfy
0<=subset_idx<prismatique.sample.num_frozen_phonon_config_subsets(sample_specification).- 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.
- sample_specification
- Returns:
- data_sizeint
The data size in units of bytes.