Skip to content

Commit 9a224ae

Browse files
committed
Function name changes
1 parent 7cde51b commit 9a224ae

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

schimpy/bctide.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
from schimpy.schism_yaml import load
1010
from schimpy.schism_mesh import SchismMeshGr3Reader, BoundaryType
1111
import datetime
12+
from zoneinfo import ZoneInfo
1213
import numbers
1314
import numpy as np
1415
import click
1516

1617

17-
__all__ = ["load_boundary"]
18+
__all__ = ["bctide_cli"]
1819

1920

2021
@click.command(
@@ -27,7 +28,7 @@
2728
)
2829
@click.argument('main_yaml', type=click.Path(exists=True))
2930

30-
def load_main_input(main_yaml):
31+
def bctide_cli(main_yaml):
3132
""" read in main yaml file which contians the grid topology and
3233
boundary condtion yaml files, this input file looks like below
3334
mesh:
@@ -507,7 +508,7 @@ def _handle_tidal_constituents_val(self,vals,consts_name,const_type_str,boundary
507508
def write_bctides(self, bctides_file):
508509

509510
with open(bctides_file, "w") as outf:
510-
tt = self.date.strftime("%Y-%m-%d %H:%M")
511+
tt = self.date.strftime("%m/%d/%Y %H:%M")
511512
outf.write(tt)
512513
outf.write("\n")
513514
# normalize tidal-constituent input formats so downstream code can
@@ -978,7 +979,7 @@ def _get_var(name):
978979

979980

980981
if __name__ == "__main__":
981-
by = load_main_input()
982+
by = bctide_cli()
982983

983984

984985

0 commit comments

Comments
 (0)