Skip to content

Commit

Permalink
Merge pull request #1187 from Anselmoo/feature/feature-perc
Browse files Browse the repository at this point in the history
fix: 🐛 add missing `100%x` in FitReport class
  • Loading branch information
Anselmoo authored Feb 19, 2024
2 parents 39ad51e + e1a1703 commit 6c459e1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
32 changes: 16 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "SpectraFit"
version = "1.0.0.post0"
version = "1.0.0.post1"
description = "Fast fitting of 2D- and 3D-Spectra with established routines"
readme = "README.md"
authors = ["Anselm Hahn <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion spectrafit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
SpectraFit uses [Semantic Versioning](https://semver.org/).
"""

__version__ = "1.0.0.post0"
__version__ = "1.0.0.post1"
4 changes: 2 additions & 2 deletions spectrafit/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def generate_variables(self) -> pd.DataFrame:
if par.stderr is not None:
serr = gformat(par.stderr)
try:
spercent = abs(par.stderr / par.value)
spercent = abs(par.stderr / par.value) * 100
except ZeroDivisionError: # pragma: no cover
spercent = None

Expand All @@ -649,7 +649,7 @@ def generate_variables(self) -> pd.DataFrame:
"value": sval,
"stderr absolute": serr,
"stderr percent": spercent,
"expr": par.expr if par.expr is not None else "",
"expr": par.expr,
"init": inval,
"model_value": model_val,
"fixed": par.vary,
Expand Down

0 comments on commit 6c459e1

Please sign in to comment.