Skip to content

Commit 4ae2535

Browse files
authored
Merge pull request #39 from ECCCO-mission/write-scores
Writes scores to text file
2 parents 1f86611 + e85ad98 commit 4ae2535

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.0.2
4+
5+
### New features
6+
7+
- Writes scores to a text file
8+
39
## 0.0.1
410

5-
First released version from which all changes will be tracked.
11+
First released version from which all changes will be tracked.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
project = "overlappogram"
1010
copyright = "2024, J. Marcus Hughes, Dyana Beabout"
1111
author = "J. Marcus Hughes, Dyana Beabout"
12-
release = "0.0.1"
12+
release = "0.0.2"
1313

1414
# -- General configuration ---------------------------------------------------
1515
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

overlappogram/cli.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ def unfold(config):
7373
os.path.join(config["output"]["directory"], f"{config['output']['prefix']}_prediction_{postfix}.fits"),
7474
overwrite=config["output"]["overwrite"],
7575
)
76+
77+
scores_path = os.path.join(config["output"]["directory"],
78+
f"{config['output']['prefix']}_scores_{postfix}.txt")
79+
with open(scores_path, 'w') as f:
80+
f.write("\n".join(scores.flatten().astype(str).tolist()))
81+
7682
if config["output"]["make_spectral"]:
7783
spectral_images = create_spectrally_pure_images(
7884
[em_cube], config["paths"]["gnt"], config["inversion"]["response_dependency_list"]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires = ["setuptools",
55

66
[project]
77
name = "overlappogram"
8-
version = "0.0.1"
8+
version = "0.0.2"
99
dependencies = ["numpy",
1010
"astropy",
1111
"scikit-learn",

0 commit comments

Comments
 (0)