Skip to content

Commit

Permalink
codestyle/typos fix
Browse files Browse the repository at this point in the history
  • Loading branch information
karllark committed Sep 12, 2024
1 parent d2117ef commit a54ffbc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ trace if it is necessary.
Contributing
============

Like the `Astropy`_ project, ``dust_extinction`` is made both by and for its
Like the `Astropy`_ project, ``measure_extinction`` is made both by and for its
users. We accept contributions at all levels, spanning the gamut from fixing a
typo in the documentation to developing a major new feature. We welcome
contributors who will abide by the `Python Software Foundation Code of Conduct
<https://www.python.org/psf/conduct/>`_.

``dust_extinction`` follows the same workflow and coding guidelines as
``measure_extinction`` follows the same workflow and coding guidelines as
`Astropy`_. Take a look at the astropy
`developer <https://docs.astropy.org/en/latest/index_dev.html>`_ documentation for
guidelines.
Expand Down
16 changes: 8 additions & 8 deletions measure_extinction/utils/fit_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,14 @@ def get_best_fit_params(sampler):
(indxs,) = np.where(sampler.lnprobability[k] == tmax_lnp)
fit_params_best = sampler.chain[k, indxs[0], :]

ndim = len(fit_params_best)
params_best = np.zeros((ndim + 3))
params_best[0:ndim] = fit_params_best
params_best[ndim] = params_best[3] / params_best[4]
params_best[ndim + 1] = (10 ** params_best[10]) / params_best[3]
params_best[ndim + 2] = (10 ** params_best[10]) / params_best[ndim]

return params_best
#ndim = len(fit_params_best)
#params_best = np.zeros((ndim + 3))
#params_best[0:ndim] = fit_params_best
#params_best[ndim] = params_best[3] / params_best[4]
#params_best[ndim + 1] = (10 ** params_best[10]) / params_best[3]
#params_best[ndim + 2] = (10 ** params_best[10]) / params_best[ndim]

return fit_params_best

Check warning on line 251 in measure_extinction/utils/fit_model.py

View check run for this annotation

Codecov / codecov/patch

measure_extinction/utils/fit_model.py#L251

Added line #L251 was not covered by tests


def get_percentile_params(samples):
Expand Down
1 change: 0 additions & 1 deletion measure_extinction/utils/merge_stis_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def read_stis_archive_format(filename):
sfilename = "%s/%s/%s.mrg" % (args.inpath, args.waveregion, args.starname)
sfilename = f"{args.inpath}{args.starname}.mrg"

Check warning on line 59 in measure_extinction/utils/merge_stis_spec.py

View check run for this annotation

Codecov / codecov/patch

measure_extinction/utils/merge_stis_spec.py#L59

Added line #L59 was not covered by tests


# determine the line for the 1st data (can vary between files)
f = open(sfilename, "r")
k = 0
Expand Down

0 comments on commit a54ffbc

Please sign in to comment.