Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 2, 2024
1 parent 113046d commit 7d14b39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Unit test with code coverage
run: |
git submodule update --init
ls -l test/data/reflectivity_ui-data
ls -l test/data/reflectivity_ui-data
xvfb-run -a python -m pytest -vv --cov=reflectivity_ui --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
Expand Down
8 changes: 5 additions & 3 deletions reflectivity_ui/interfaces/data_handling/data_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ def _get_polynomial_fit_stitching_scaling_factor(ws_lo, ws_hi, n_polynom, n_poin
ties_str += ",f1.A{}=f0.A{}".format(i, i) # "f1.A0=f0.A0, f1.A1=f0.A1, ..."

poly_func = ";name=UserFunction, Formula={}, {}, $domains=0".format(formula_str, initial_val_str)
scaled_poly_func = (
";name=UserFunction, Formula=poly_scale*({}), poly_scale=1, {}, $domains=1".format(formula_str, initial_val_str)
scaled_poly_func = ";name=UserFunction, Formula=poly_scale*({}), poly_scale=1, {}, $domains=1".format(
formula_str, initial_val_str
)
ties = ";ties=({})".format(ties_str)
multi_func = "composite=MultiDomainFunction, NumDeriv=1" + poly_func + scaled_poly_func + ties
Expand Down Expand Up @@ -332,7 +332,9 @@ def smart_stitch_reflectivity(
raise NormalizeToUnityQCutoffError(
"""No data below Q cutoff.\n
Critical Q cutoff: {}\n
Smallest Q value: {:.5f}""".format(q_cutoff, reduction_list[0].cross_sections[xs].q.min())
Smallest Q value: {:.5f}""".format(
q_cutoff, reduction_list[0].cross_sections[xs].q.min()
)
)
total = 0
weights = 0
Expand Down

0 comments on commit 7d14b39

Please sign in to comment.