Skip to content

Commit

Permalink
Merge pull request #39 from ECCCO-mission/write-scores
Browse files Browse the repository at this point in the history
Writes scores to text file
  • Loading branch information
jmbhughes authored Mar 27, 2024
2 parents 1f86611 + e85ad98 commit 4ae2535
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.0.2

### New features

- Writes scores to a text file

## 0.0.1

First released version from which all changes will be tracked.
First released version from which all changes will be tracked.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = "overlappogram"
copyright = "2024, J. Marcus Hughes, Dyana Beabout"
author = "J. Marcus Hughes, Dyana Beabout"
release = "0.0.1"
release = "0.0.2"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
6 changes: 6 additions & 0 deletions overlappogram/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ def unfold(config):
os.path.join(config["output"]["directory"], f"{config['output']['prefix']}_prediction_{postfix}.fits"),
overwrite=config["output"]["overwrite"],
)

scores_path = os.path.join(config["output"]["directory"],
f"{config['output']['prefix']}_scores_{postfix}.txt")
with open(scores_path, 'w') as f:
f.write("\n".join(scores.flatten().astype(str).tolist()))

if config["output"]["make_spectral"]:
spectral_images = create_spectrally_pure_images(
[em_cube], config["paths"]["gnt"], config["inversion"]["response_dependency_list"]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requires = ["setuptools",

[project]
name = "overlappogram"
version = "0.0.1"
version = "0.0.2"
dependencies = ["numpy",
"astropy",
"scikit-learn",
Expand Down

0 comments on commit 4ae2535

Please sign in to comment.