1
General Questions and Answers / Re: Configurations from MomentTensorPotentialTraining object
« on: June 2, 2022, 17:28 »
Thanks Anders.
I had already tried that, but the issue is that the object is not a Trajectory, but a RandomDisplacementsParameters object, so I just get:
I also looked in the reference manual (https://docs.quantumatk.com/manual/Types/RandomDisplacementsParameters/RandomDisplacementsParameters.html), but I can only access the original configuration with the referenceConfigurations() function, not the whole trajectory with repetitions, strain and so on.
I'm attaching the HDF5 file in case you can take a look. I can see all the configurations in the GUI with the Trajectory Analyzer tool, but I would like to be able to extract these with a script since there are about 200 configurations.
Thanks for your help.
I had already tried that, but the issue is that the object is not a Trajectory, but a RandomDisplacementsParameters object, so I just get:
Code
$ sets[0].configurations()
AttributeError: 'RandomDisplacementsParameters' object has no attribute 'configurations'
I also looked in the reference manual (https://docs.quantumatk.com/manual/Types/RandomDisplacementsParameters/RandomDisplacementsParameters.html), but I can only access the original configuration with the referenceConfigurations() function, not the whole trajectory with repetitions, strain and so on.
I'm attaching the HDF5 file in case you can take a look. I can see all the configurations in the GUI with the Trajectory Analyzer tool, but I would like to be able to extract these with a script since there are about 200 configurations.
Thanks for your help.