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

Fix "truthiness" check in `is_required` filter #160

Closed wtbarnes closed 1 year ago

wtbarnes commented 1 year ago

This is a bugfix for a check on whether certain parameters are required or not. With the latest version of astropy, the current method throws an exception because calling is/is not on a Quantity is ambiguous. This now just checks whether the value is undefined as far as Jinja is concerned.