From 55c83969fec65fbb31ec431f468c1bb525c84917 Mon Sep 17 00:00:00 2001 From: Paul Madden Date: Thu, 2 Jan 2025 17:58:54 +0000 Subject: [PATCH 1/5] Use uwtools >=2.5.0 in coastal/ --- coastal/environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coastal/environment.yml b/coastal/environment.yml index 8be7068..b3daf6b 100644 --- a/coastal/environment.yml +++ b/coastal/environment.yml @@ -6,4 +6,4 @@ dependencies: - black - mypy - pylint - - uwtools >=2.4.0 + - uwtools >=2.5.0 From ea0752471ac78ddaa04367bfd7d1054677fb8f30 Mon Sep 17 00:00:00 2001 From: Paul Madden Date: Thu, 20 Nov 2025 16:19:54 +0000 Subject: [PATCH 2/5] Update iotaa imports/calls --- coastal/coastal.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/coastal/coastal.py b/coastal/coastal.py index e6cdb79..d714437 100644 --- a/coastal/coastal.py +++ b/coastal/coastal.py @@ -2,7 +2,7 @@ A driver for the Coastal App coupled executable. """ -from iotaa import asset, task, tasks +from iotaa import Asset, task, collection from uwtools.api.cdeps import CDEPS from uwtools.api.driver import DriverCycleBased from uwtools.api.fs import link @@ -25,11 +25,11 @@ def linked_files(self): links = self.config["links"] path = lambda fn: self.rundir / fn yield self.taskname("Linked files") - yield [asset(path(fn), path(fn).is_file) for fn in links.keys()] + yield [Asset(path(fn), path(fn).is_file) for fn in links.keys()] yield None link(config=links, target_dir=self.rundir) - @tasks + @collection def provisioned_rundir(self): """ The run directory provisioned with all required content. @@ -53,7 +53,7 @@ def restart_dir(self): """ path = self.rundir / "RESTART" yield self.taskname("RESTART directory") - yield asset(path, path.is_dir) + yield Asset(path, path.is_dir) yield None path.mkdir(parents=True) From 78227f3accaf9aae8b03a86d0f8fc3bd34ce494e Mon Sep 17 00:00:00 2001 From: Paul Madden Date: Thu, 20 Nov 2025 16:20:17 +0000 Subject: [PATCH 3/5] ruff check --- coastal/coastal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coastal/coastal.py b/coastal/coastal.py index d714437..0fb3823 100644 --- a/coastal/coastal.py +++ b/coastal/coastal.py @@ -2,7 +2,7 @@ A driver for the Coastal App coupled executable. """ -from iotaa import Asset, task, collection +from iotaa import Asset, collection, task from uwtools.api.cdeps import CDEPS from uwtools.api.driver import DriverCycleBased from uwtools.api.fs import link From 1bcf67ef44f1095c6f3e6bf6c96520843a6ae349 Mon Sep 17 00:00:00 2001 From: Paul Madden Date: Thu, 20 Nov 2025 16:23:07 +0000 Subject: [PATCH 4/5] Update uwtools version --- coastal/environment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coastal/environment.yml b/coastal/environment.yml index b3daf6b..4b92f41 100644 --- a/coastal/environment.yml +++ b/coastal/environment.yml @@ -1,9 +1,9 @@ name: coastal channels: - - ufs-community - conda-forge + - ufs-community dependencies: - black - mypy - pylint - - uwtools >=2.5.0 + - uwtools >=2.12.0 From 17826ad9a2ea22ab3578dd7f2646beb67ea4cf5c Mon Sep 17 00:00:00 2001 From: Paul Madden Date: Thu, 20 Nov 2025 16:24:11 +0000 Subject: [PATCH 5/5] Update CODEOWNERS --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1121ad8..2924447 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1,3 @@ # See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners -* @NaureenBharwaniNOAA @christinaholtNOAA @elcarpenterNOAA @fgabelmannjr @maddenp-noaa @weirae +* @christinaholtNOAA @elcarpenterNOAA @maddenp-cu