Also, I have updated to 2023 -V verison and when I ran optimization, an error appeared like below[/b]
Traceback (most recent call last):
File "/home/edrl_04/QuantumATK/QuantumATK-U-2022.12-SP1/bin/../atkpython/bin/atkpython", line 8, in <module>
sys.exit(__run_atkpython())
File "zipdir/ATKExecutables/atkwrappers/__init__.py", line 879, in __run_atkpython
File "Device_Interface_2023_NiSi2_100.py", line 542, in <module>
optimize_geometry_parameters = OptimizeGeometryParameters(
TypeError: __init__() got an unexpected keyword argument 'trajectory_object_id'
My python file was shown below
nlsave('Device_Interface_2023_NiSi2_100.hdf5', device_interface_silicon_alpha_100_nisi2_100)
# %% OptimizeDeviceConfiguration
restart_strategy = RestartFromTrajectory(
trajectory_filename=None,
object_id=None
)
optimize_geometry_parameters = OptimizeGeometryParameters(
max_forces=0.02*eV/Angstrom,
max_stress=0.1*GPa,
max_steps=200,
max_step_length=0.2*Angstrom,
constraints=[],
trajectory_filename=None,
trajectory_object_id=None
optimize_cell=False,
optimizer_method=LBFGS(),
target_stress=None,
pre_step_hook=None,
post_step_hook=None,
constrain_bravais_lattice=True,
trajectory_interval=1,
restart_strategy=restart_strategy,
enable_optimization_stop_file=True,
write_raw_stress=None,
write_raw_forces=None
)
optimize_device_configuration = OptimizeDeviceConfiguration(
device_configuration=device_interface_silicon_alpha_100_nisi2_100,
filename='Device_Interface_2023_NiSi2_100.hdf5',
object_id='opt_device_conf',
calculator=None,
optimization_region_length=10.0*Angstrom,
optimization_region_center=None,
passivate_electrode_surfaces=(True, True),
optimize_geometry_parameters=optimize_geometry_parameters,
log_filename_prefix='optimizedeviceconfiguration',
perform_device_optimization=False
)
optimize_device_configuration.update()
optimized_device_configuration = optimize_device_configuration.result()
nlsave('Device_Interface_2023_NiSi2_100.hdf5', optimized_device_configuration, object_id='opt_device_conf_1')
This error didn't occured in 2020 version so I am wondering what would have caused that error.
Thank you