You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am trying to convert my own mechanisms to the required npz file.
With my current setup i can't manage to to this. python interpreter.py -i h2o2.yaml
C:\Users\neuma\anaconda3\envs\reac-env\Lib\site-packages\torch\__init__.py:749: UserWarning: torch.set_default_tensor_type() is deprecated as of PyTorch 2.1, please use torch.set_default_dtype() and torch.set_default_device() as alternatives. (Triggered internally at ..\torch\csrc\tensor\python_tensor.cpp:433.)
_C._set_default_tensor_type(t)
Processing mechanism h2o2.yaml
C:\Users\neuma\anaconda3\envs\reac-env\Lib\site-packages\reactorch\solution.py:76: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at ..\torch\csrc\utils\tensor_new.cpp:277.)
self.molecular_weights = torch.Tensor([self.gas.molecular_weights]).T.to(self.device)
Traceback (most recent call last):
File "C:\Users\neuma\Documents\Arrhenius\interpreter.py", line 39, in <module>
sol = rt.Solution(mech_yaml=mech_yaml, device=torch.device('cpu'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\neuma\anaconda3\envs\reac-env\Lib\site-packages\reactorch\solution.py", line 88, in __init__
self.set_reactions()
File "C:\Users\neuma\anaconda3\envs\reac-env\Lib\site-packages\reactorch\import_kinetics.py", line 77, in set_reactions
self.reaction[i] = {'equation': self.gas.reaction_equations(i)}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "build\\python\\cantera\\kinetics.pyx", line 240, in cantera.kinetics.Kinetics.reaction_equations
TypeError: 'int' object is not iterable
My guess is that my cantera/pytorch/reactorch version is uncompatible. I would want to avoid modifying the interpreter.py script. If you could provide me with a requirement.txt to duplicate your environments, that would be great.
Hello,
I am trying to convert my own mechanisms to the required npz file.
With my current setup i can't manage to to this.
python interpreter.py -i h2o2.yaml
My guess is that my cantera/pytorch/reactorch version is uncompatible. I would want to avoid modifying the interpreter.py script. If you could provide me with a requirement.txt to duplicate your environments, that would be great.
conda list of my current environment yields:
The text was updated successfully, but these errors were encountered: