trident.verify() error

34 views
Skip to first unread message

Alankar Dutta

unread,
Apr 29, 2020, 9:39:36 AM4/29/20
to trident-project-users
Hi,
I am new to trident. I installed Trident according to the Documentation. I was using hm2012_hr.h5 (high res) for the data to Trident. On issuing trident.verify(), I get the following error. Can anyone suggest something?

Regards,
Alankar

Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import trident
>>> trident.verify()

Creating single-cell dataset
----------------------------

yt : [INFO ] 2020-04-29 19:02:41,405 Parameters: current_time = 0.0
yt : [INFO ] 2020-04-29 19:02:41,406 Parameters: domain_dimensions = [1 1 1]
yt : [INFO ] 2020-04-29 19:02:41,424 Parameters: domain_left_edge = [0. 0. 0.]
yt : [INFO ] 2020-04-29 19:02:41,424 Parameters: domain_right_edge = [3.08567758e+22 3.08567758e+22 3.085677
58e+22]
yt : [INFO ] 2020-04-29 19:02:41,425 Parameters: cosmological_simulation = 0.0

Creating ray object through single-cell dataset

D:\Anaconda3\lib\site-packages\yt\units\yt_array.py:978: FutureWarning: Using a non-tuple sequence for multidimensional
indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array
index, `arr[np.array(seq)]`, which will result either in an error or a different result.
ret = super(YTArray, self).__getitem__(item)
D:\Anaconda3\lib\site-packages\yt\fields\fluid_fields.py:201: FutureWarning: Using a non-tuple sequence for multidimensi
onal indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an a
rray index, `arr[np.array(seq)]`, which will result either in an error or a different result.
new_field[slice_3d] = f
yt : [INFO ] 2020-04-29 19:02:41,846 Getting segment at z = 0.0: [0. 0. 0.] unitary to [1. 1. 1.] unitary.
yt : [INFO ] 2020-04-29 19:02:41,848 Getting subsegment: [0.0 unitary, 0.0 unitary, 0.0 unitary] to [0.9999999999999
999 unitary, 0.9999999999999999 unitary, 0.9999999999999999 unitary].
Failed to create ray object
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Anaconda3\lib\site-packages\trident\config.py", line 235, in verify
fields=['density', 'temperature', 'metallicity'])
File "D:\Anaconda3\lib\site-packages\trident\ray_generator.py", line 271, in make_simple_ray
redshift=redshift)
File "D:\Anaconda3\lib\site-packages\trident\light_ray.py", line 607, in make_light_ray
sub_data[field].extend(sub_ray[field][asort])
File "D:\Anaconda3\lib\site-packages\yt\data_objects\data_containers.py", line 275, in __getitem__
f = self._determine_fields([key])[0]
File "D:\Anaconda3\lib\site-packages\yt\data_objects\data_containers.py", line 1128, in _determine_fields
finfo = self.ds._get_field_info("unknown", fname)
File "D:\Anaconda3\lib\site-packages\yt\data_objects\static_output.py", line 753, in _get_field_info
raise YTFieldNotFound((ftype, fname), self)
yt.utilities.exceptions.YTFieldNotFound: Could not find field '('stream', 'relative_velocity_x')' in UniformGridData.
>>>

Cameron Hummels

unread,
May 2, 2020, 6:04:15 PM5/2/20
to Alankar Dutta, trident-project-users
Hi Alankar,


We're going through a bit of churn right now as the yt-4 branch is getting merged into yt's main development branch, which will simplify things a bit and we'll clean up the installation instructions, as they're a bit messy right now.  But I can help you get things working before that goes down.  What sort of simulation data are you looking to use trident with?  Grid-based codes like enzo or particle-based codes like gadget?

Cameron

--
You received this message because you are subscribed to the Google Groups "trident-project-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trident-project-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trident-project-users/966ce965-bf9c-4db4-97a1-ef3c4c43703c%40googlegroups.com.


--
Cameron Hummels
Computational Astrophysicist
California Institute of Technology
Reply all
Reply to author
Forward
0 new messages