2.4.2.1. prismatique.hrtem.output.data_size
- data_size(hrtem_system_model_params, output_params=None, skip_validation_and_conversion=False)[source]
Calculate the data size of the HRTEM simulation output that one could generate according to a given HRTEM system model, and output parameter set.
Note that data size due to HDF5 file overhead and metadata are not taken into account.
- Parameters:
- hrtem_system_model_params
prismatique.hrtem.system.ModelParams The simulation parameters related to the modelling of the HRTEM system. See the documentation for the class
prismatique.hrtem.system.ModelParamsfor a discussion on said parameters.- output_params
prismatique.hrtem.output.Params| None, optional The output parameters for the HRTEM simulation. See the documentation for the class
prismatique.hrtem.output.Paramsfor a discussion on said parameters. Ifoutput_paramsis set to None [i.e. the default value], then the aforementioned simulation parameters are set to default values.- 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.
- hrtem_system_model_params
- Returns:
- output_data_sizeint
The data size in units of bytes.