Skip to content

Commit cec2606

Browse files
authored
Merge pull request #312 from dmgav/fix-save-txt
Fix formatting of 'txt' file saved by 'Save Spectrum/Fit'
2 parents 92f67c7 + 5ea877a commit cec2606

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/black.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010
- uses: actions/setup-python@v2
11+
with:
12+
python-version: 3.11
1113
- name: Install Dependencies
1214
run: |
1315
# These packages are installed in the base environment but may be older
1416
# versions. Explicitly upgrade them because they often create
1517
# installation problems if out of date.
16-
python -m pip install --upgrade pip setuptools numpy
18+
# python -m pip install --upgrade pip setuptools numpy
1719
1820
pip install black
1921
- name: Run black

.github/workflows/flake8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
# These packages are installed in the base environment but may be older
1414
# versions. Explicitly upgrade them because they often create
1515
# installation problems if out of date.
16-
python -m pip install --upgrade pip setuptools numpy
16+
# python -m pip install --upgrade pip setuptools numpy
1717
1818
pip install flake8
1919
- name: Run flake8

pyxrf/model/fit_spectrum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ def output_summed_data_fit(self, save_fit=True, directory=None):
626626
if (xx is None) or (self.y0 is None) or (self.fit_y is None):
627627
msg = "Not enough data to save spectrum/fit data. Total spectrum fitting was not run."
628628
raise RuntimeError(msg)
629-
data = np.array([self.x0, self.y0, self.fit_y])
629+
data = np.array([xx, self.y0, self.fit_y])
630630
else:
631631
logger.info("Saving spectrum based on loaded or estimated parameters.")
632632
if (xx is None) or (self.y0 is None) or (self.param_model.total_y is None):

0 commit comments

Comments
 (0)