Skip to content

Update version number to 0.5.2 and update copyright #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,24 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.5.2]

### Added

* The `Plugin.__call__` method now accepts an `output_dir` argument that
specifies the directory created in the database
([#107](https://github.com/watts-dev/watts/pull/107))
* GCMAT plugin via the `PluginGCMAT` class ([114](https://github.com/watts-dev/watts/pull/114))
* GCMAT plugin via the `PluginGCMAT` class
([#114](https://github.com/watts-dev/watts/pull/114))

### Changes

* Update recommendations for Dakota version
([#111](https://github.com/watts-dev/watts/pull/111))
* Update GitHub Actions workflows ([#112](https://github.com/watts-dev/watts/pull/112))
* Update GitHub Actions workflows
([#112](https://github.com/watts-dev/watts/pull/112))
* SAS plugin modifications to handle MFUEL output
([#113](https://github.com/watts-dev/watts/pull/113))

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2022-2023 UChicago Argonne, LLC
Copyright (c) 2022-2025 UChicago Argonne, LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
5 changes: 5 additions & 0 deletions doc/source/_static/switcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"version": "latest",
"url": "https://watts.readthedocs.io/en/latest/"
},
{
"name": "0.5.2",
"version": "v0.5.2",
"url": "https://watts.readthedocs.io/en/v0.5.2/"
},
{
"name": "0.5.1",
"version": "v0.5.1",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"

[project]
name = "watts"
version = "0.5.2-dev"
version = "0.5.2"
authors = [
{ name = "UChicago Argonne, LLC", email = "watts@anl.gov" },
]
Expand Down
4 changes: 2 additions & 2 deletions src/watts/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from .plugin import *
Expand All @@ -21,4 +21,4 @@
# This allows a user to write watts.Quantity
from astropy.units import Quantity

__version__ = '0.5.2-dev'
__version__ = '0.5.2'
2 changes: 1 addition & 1 deletion src/watts/console.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

import sys
Expand Down
2 changes: 1 addition & 1 deletion src/watts/database.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from collections.abc import Sequence
Expand Down
2 changes: 1 addition & 1 deletion src/watts/fileutils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from contextlib import contextmanager
Expand Down
2 changes: 1 addition & 1 deletion src/watts/parameters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from __future__ import annotations
Expand Down
4 changes: 2 additions & 2 deletions src/watts/plugin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from abc import ABC, abstractmethod
Expand Down Expand Up @@ -144,7 +144,7 @@ def __call__(
except Exception:
# If error occurred, make sure we remove results directory so it
# doesn't pollute database
shutil.rmtree(workflow_path)
#shutil.rmtree(workflow_path)
raise

# Add result to database
Expand Down
2 changes: 1 addition & 1 deletion src/watts/plugin_abce.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion src/watts/plugin_accert.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion src/watts/plugin_dakota.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

import csv
Expand Down
2 changes: 1 addition & 1 deletion src/watts/plugin_mcnp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

import os
Expand Down
2 changes: 1 addition & 1 deletion src/watts/plugin_moose.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from typing import List, Optional
Expand Down
2 changes: 1 addition & 1 deletion src/watts/plugin_openmc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from functools import lru_cache
Expand Down
2 changes: 1 addition & 1 deletion src/watts/plugin_pyarc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion src/watts/plugin_relap5.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from pathlib import Path
Expand Down
10 changes: 5 additions & 5 deletions src/watts/plugin_sas.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

import glob
Expand Down Expand Up @@ -184,8 +184,8 @@ def postrun(self, params: Parameters, exec_info: ExecInfo) -> ResultsSAS:
with open("PRIMAR4.dat", "r") as file_in, open("PRIMAR4.csv", "w") as file_out:
subprocess.run(str(self.conv_primar4), stdin=file_in, stdout=file_out)

if Path("MFUELss_C000001.dat").is_file():
with open("MFUELss_C000001.dat", "r") as file_in:
subprocess.run(str(self.conv_mfuel), stdin=file_in)
if Path("MFUELss_C000001.dat").is_file():
with open("MFUELss_C000001.dat", "r") as file_in:
subprocess.run(str(self.conv_mfuel), stdin=file_in)

return super().postrun(params, exec_info)
2 changes: 1 addition & 1 deletion src/watts/plugin_serpent.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from typing import List, Optional
Expand Down
2 changes: 1 addition & 1 deletion src/watts/results.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from collections import namedtuple
Expand Down
2 changes: 1 addition & 1 deletion src/watts/template.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

import tempfile
Expand Down
2 changes: 1 addition & 1 deletion tests/test_console.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

import os
Expand Down
2 changes: 1 addition & 1 deletion tests/test_database.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion tests/test_fileutils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from contextlib import redirect_stdout
Expand Down
2 changes: 1 addition & 1 deletion tests/test_parameters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plugin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

import watts
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plugin_openmc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion tests/test_results.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion tests/test_template.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2023 UChicago Argonne, LLC
# SPDX-FileCopyrightText: 2022-2025 UChicago Argonne, LLC
# SPDX-License-Identifier: MIT

import watts
Expand Down