Skip to content

Commit

Permalink
fixing some PEP8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
karllark committed Nov 15, 2023
1 parent c94e5ec commit d8655f7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions measure_extinction/tests/test_plot_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
plot_average,
)


@pytest.mark.skip(reason="failing due to changes in matplotlib")
def test_plot_extinction():
# get the location of the data files
Expand Down
9 changes: 7 additions & 2 deletions measure_extinction/utils/fit_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,13 @@ def lnlike(self, params, obsdata, modeldata):
lnl = 0.0
for cspec in hi_ext_modsed.keys():
gvals = self.weights[cspec] > 0
chiarr = np.square((obsdata.data[cspec].fluxes[gvals].value - (hi_ext_modsed[cspec][gvals] * (norm_data / norm_model)))
* self.weights[cspec][gvals])
chiarr = np.square(
(
obsdata.data[cspec].fluxes[gvals].value
- (hi_ext_modsed[cspec][gvals] * (norm_data / norm_model))
)
* self.weights[cspec][gvals]
)
lnl += -0.5 * np.sum(chiarr)

return lnl
Expand Down
2 changes: 1 addition & 1 deletion measure_extinction/utils/merge_iue_spec.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import argparse
import numpy as np
#import numpy as np
import pkg_resources

from astropy.table import Table
Expand Down

0 comments on commit d8655f7

Please sign in to comment.