I got the previous problem resolved and instantly hit another one. Sorry, I feel like I am hitting every single obscure problem possible.
I can run the example with the enzo data and it works fine, and I can run the same thing with my athena++ data, but only with hydrogen lines. If I include any other atoms I get this error after it finishes calculating the hydrogen lines:
File "<ipython-input-2-5a28162496c0>", line 1, in <module>
runfile('/mnt/c/Users/rtanner2/OneDrive - NASA/research/python/trident/single_ray_test.py', wdir='/mnt/c/Users/rtanner2/OneDrive - NASA/research/python/trident')
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/spyder_kernels/customize/spydercustomize.py", line 827, in runfile
execfile(filename, namespace)
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/spyder_kernels/customize/spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "/mnt/c/Users/rtanner2/OneDrive - NASA/research/python/trident/single_ray_test.py", line 48, in <module>
sg.make_spectrum(ray, lines=line_list)
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/trident/trident/spectrum_generator.py", line 425, in make_spectrum
min_tau=min_tau, njobs=njobs)
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/trident/trident/absorption_spectrum/absorption_spectrum.py", line 493, in make_spectrum
min_tau=min_tau, njobs=njobs)
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/trident/trident/absorption_spectrum/absorption_spectrum.py", line 709, in _add_lines_to_spectrum
column_density = field_data[line['field_name']] * field_data['dl']
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/yt/data_objects/data_containers.py", line 258, in __getitem__
self.get_data(f)
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/yt/data_objects/selection_objects/data_selection_objects.py", line 211, in get_data
self._generate_fields(fields_to_generate)
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/yt/data_objects/selection_objects/data_selection_objects.py", line 232, in _generate_fields
fd = self._generate_field(field)
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/yt/data_objects/data_containers.py", line 299, in _generate_field
tr = self._generate_fluid_field(field)
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/yt/data_objects/data_containers.py", line 318, in _generate_fluid_field
rv = finfo(gen_obj)
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/yt/fields/derived_field.py", line 297, in __call__
dd = self._function(self, data)
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/yt/fields/geometric_fields.py", line 104, in _ones
tmp = np.ones(data.ires.shape, dtype="float64")
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/yt/data_objects/selection_objects/data_selection_objects.py", line 424, in ires
return self._current_chunk.ires
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/yt/geometry/geometry_handler.py", line 255, in cached_func
tr = self._accumulate_values(n[1:])
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/yt/geometry/geometry_handler.py", line 292, in _accumulate_values
arrs.append(f(self.dobj))
File "/home/rtanner2/anaconda3/lib/python3.7/site-packages/yt/data_objects/index_subobjects/particle_container.py", line 17, in _func_non_indexed
raise YTNonIndexedDataContainer(self)
YTNonIndexedDataContainer: The data container (<class 'yt.data_objects.index_subobjects.particle_container.ParticleContainer'>) is an unindexed type. Operations such as ires, icoords, fcoords and fwidth will not work on it.
-----------------
Drummond Fielding recommended Trident to me and from what I have seen so far with it it looks great. I'm sorry I'm having such a hard time with it.