rice-solar-physics / pydrad

Python tools for setting up HYDRAD runs and parsing output
https://pydrad.readthedocs.io
MIT License
4 stars 3 forks source link

Added functionality to read .trm files #128

Closed jwreep closed 3 years ago

jwreep commented 3 years ago

Fixes #99

Parses the .trm files into pydrad.

For example:

>>> from pydrad.parse import Strand
>>> s = Strand('/path/to/HYDRAD', read_Hstate='True', read_trm='True')
>>> p = s[1]
>>> p.electron_heat
jwreep commented 3 years ago

@wtbarnes, Please review!

jwreep commented 3 years ago

The pytest is hanging for me... Presumably it shouldn't take more than 10 minutes?

wtbarnes commented 3 years ago

The pytest is hanging for me... Presumably it shouldn't take more than 10 minutes?

Hmm. No it should not. That's strange. It takes a minute or two on my laptop. Maybe something weird is happening with HYDRAD? The test suite actually runs a very short simulation when you provide the hydrad_dir option.