diff --git a/CHANGELOG.md b/CHANGELOG.md index 94d5acb..50d6e69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/docs/conf.py b/docs/conf.py index 7618115..4dbd86c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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 diff --git a/overlappogram/cli.py b/overlappogram/cli.py index e98a653..9a657e8 100644 --- a/overlappogram/cli.py +++ b/overlappogram/cli.py @@ -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"] diff --git a/pyproject.toml b/pyproject.toml index f8d1292..317dc51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ requires = ["setuptools", [project] name = "overlappogram" -version = "0.0.1" +version = "0.0.2" dependencies = ["numpy", "astropy", "scikit-learn",