2.5.9. prismatique.load.defocii
- defocii(filename, skip_validation_and_conversion=False)[source]
From a given
prismatiqueoutput file, load the beam defocii stored or specified therein that were used in the simulation.- Parameters:
- filenamestr
The relative or absolute path to the file containing the beam defocii. Any non-temporary file generated by the function
prismatique.stem.sim.run()orprismatique.hrtem.sim.run(), with originally the basename"stem_sim_params.json","hrtem_sim_params.json", a basename of the form"stem_sim_wavefunction_output_of_subset_"+str(i)+".h5", or"hrtem_sim_wavefunction_output_of_subset_"+str(i)+".h5", 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:
- beam_defociiarray_like (float, ndim=1)
The beam defocii, in units of Å, in ascending order.