Skip to content

Commit 9bb32fc

Browse files
rename uv3d function and fix cli call
1 parent 1791b38 commit 9bb32fc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bdschism/bdschism/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from bdschism.hotstart_from_hotstart import hotstart_newgrid
44
from bdschism.hotstart_date import set_hotstart_date
55
from bdschism.hotstart_nudging_data import hotstart_nudge_data
6-
from bdschism.uv3d import uv3d
6+
from bdschism.uv3d import interpolate_uv3d
77

88

99
@click.group(
@@ -20,7 +20,7 @@ def cli():
2020
cli.add_command(hotstart_newgrid, "hot_from_hot")
2121
cli.add_command(set_hotstart_date, "hot_date")
2222
cli.add_command(hotstart_nudge_data, "hot_nudge_data")
23-
cli.add_command(uv3d, "uv3d")
23+
cli.add_command(interpolate_uv3d, "uv3d")
2424
# create_nudging = "schimpy.nudging:main"
2525

2626
if __name__ == "__main__":

bdschism/bdschism/uv3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
type=bool,
7373
help="If true, the file will be moved to run_dir. Otherwise, it will be done in place in outputs.",
7474
)
75-
def main(
75+
def interpolate_uv3d(
7676
param_nml,
7777
bg_dir,
7878
bg_output_dir,
@@ -220,4 +220,4 @@ def main(
220220

221221

222222
if __name__ == "__main__":
223-
main()
223+
interpolate_uv3d()

bdschism/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ hot_from_hot = "bdschism.hotstart_from_hotstart:main"
8181
hot_date = "bdschism.hotstart_date:main"
8282
hot_nudge_data = "bdschism.hotstart_nudging_data:main"
8383
create_nudging = "schimpy.nudging:main"
84-
uv3d = "bdschism.uv3d:main"
84+
uv3d = "bdschism.uv3d:interpolate_uv3d"

0 commit comments

Comments
 (0)