Error using vary with Structure from the examples
In a texts session -r
:
Input > vary ((water: Structure from file 'water.xyz', Structure from file 'water.xyz'))
Type error: None:1:495 --> [[2.6458860545198877, 0.0, 0.0], [0.0, 2.6458860545198877, 0.0], [0.0, 0.0, 2.6458860545198877]] <--
element in 'cell' must have type FloatArray but has type FloatSubArray
Input > vary ((water: Structure from file 'water.xyz', Structure from file 'water.xyz'))
Traceback (most recent call last):
File "vre-language/src/virtmat/language/utilities/errors.py", line 302, in wrapper
return func(*args, **kwargs)
File "vre-language/src/virtmat/language/interpreter/session_manager.py", line 117, in get_model_value
return getattr(self.session.get_model(*args, uuid=self.uuid, **kwargs), 'value', '')
File "vre-language/src/virtmat/language/interpreter/session.py", line 149, in get_model
self.process_models(model_str, model_path)
File "vre-language/src/virtmat/language/interpreter/session.py", line 225, in process_models
strns, paths, varies = self._process_strings_paths(model_str, model_path)
File "vre-language/src/virtmat/language/interpreter/session.py", line 257, in _process_strings_paths
strns, varies = self._update_models(*self._parse_vary(model_str_))
File "vre-language/src/virtmat/language/interpreter/session.py", line 407, in _update_models
df_old = self.get_vary_df()
File "vre-language/src/virtmat/language/interpreter/session.py", line 345, in get_vary_df
assert len(info) == len(self.uuids)
AssertionError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "vre-language/src/virtmat/language/utilities/errors.py", line 302, in wrapper
return func(*args, **kwargs)
File "vre-language/src/virtmat/language/interpreter/session_manager.py", line 154, in process_input
output = self.get_model_value(model_str=input_str)
File "vre-language/src/virtmat/language/utilities/errors.py", line 337, in wrapper
raise RuntimeError('non-handled exception') from err
RuntimeError: non-handled exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "vre-language/src/virtmat/language/utilities/errors.py", line 302, in wrapper
return func(*args, **kwargs)
File "vre-language/src/virtmat/language/cli/run_session.py", line 93, in main
mgr.main_loop()
File "vre-language/src/virtmat/language/interpreter/session_manager.py", line 133, in main_loop
if self.process_input(input_str):
File "vre-language/src/virtmat/language/utilities/errors.py", line 337, in wrapper
raise RuntimeError('non-handled exception') from err
RuntimeError: non-handled exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "python-3.10.12/bin/texts", line 8, in <module>
sys.exit(texts())
File "vre-language/src/virtmat/language/cli/__init__.py", line 28, in texts
clargs.func(clargs)
File "vre-language/src/virtmat/language/utilities/errors.py", line 337, in wrapper
raise RuntimeError('non-handled exception') from err
RuntimeError: non-handled exception