Skip to content

Commit

Permalink
Fix formatting in contribution function equation (#283)
Browse files Browse the repository at this point in the history
* type on g_of_t equation formatting

* move pytest import to avoid needing it in docs build
  • Loading branch information
wtbarnes authored May 14, 2024
1 parent 83eb4d2 commit 9ab2c61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fiasco/ions.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ def contribution_function(self, density: u.cm**(-3), **kwargs) -> u.cm**3 * u.er
.. math::
G_{ij} = mathrm{Ab}(X)f_{X,k}N_jA_{ij}\Delta E_{ij}\frac{1}{n_e},
G_{ij} = \mathrm{Ab}(X)f_{X,k}N_jA_{ij}\Delta E_{ij}\frac{1}{n_e},
Note that the contribution function is often defined in differing ways by different authors.
The contribution function is defined as above in :cite:t:`young_chianti_2016`.
Expand Down
3 changes: 2 additions & 1 deletion fiasco/tests/idl/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Helpers for tests related to comparing with IDL output
"""
import pathlib
import pytest

from astropy.utils.data import get_pkg_data_path

Expand Down Expand Up @@ -61,6 +60,8 @@ def run_idl_script(idl_env, script, input_args, save_vars, file_name, version, f
file_path = get_idl_test_output_filepath(file_name, version)
if not file_path.is_file():
if idl_env is None:
# Import here so that this can be used without a hard pytest dependency
import pytest
pytest.skip("""To run the IDL comparison tests, you must:
1. Specify a path to a working IDL executable,
2. Specify a path to the CHIANTI IDL code,
Expand Down

0 comments on commit 9ab2c61

Please sign in to comment.