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 10 months ago

wtbarnes commented 11 months 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.