2.5.11. prismatique.load.hrtem_beam_tilts
- hrtem_beam_tilts(filename, skip_validation_and_conversion=False)[source]
From a given HRTEM simulation output file, load the beam tilts stored or specified therein that were used in the simulation.
- Parameters:
- filenamestr
The relative or absolute path to the file containing the beam tilts. Any non-temporary file generated by the function
prismatique.hrtem.sim.run(), with originally the basename"hrtem_sim_params.json", or a basename of the form"hrtem_sim_wavefunction_output_of_subset_"+str(i)+".h5", whereiis a nonnegative integer.See the documentation for the class
prismatique.hrtem.output.Paramsfor a discussion on the layout and structure ofprismatiqueHRTEM 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_tiltsarray_like (float, shape=(
num_tilts,2)) If we let
num_tiltsbe the number of beam tilts, thenbeam_tilts[i][0]andbeam_tilts[i][1]are the \(x\)- and \(y\)-components of theith beam tilt in units of mrads, where0<=i<num_vectors.
- beam_tiltsarray_like (float, shape=(