Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Mar 23, 2023
1 parent 5a5d03a commit 87d9e09
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docker/pyschism/docker/setup_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ def setup_schism_model(
main_cache_path,
parametric_wind=False,
nhc_track_file=None,
storm_id=None):
storm_id=None,
use_wwm=False,
):


domain_box = gpd.read_file(domain_bbox_path)
Expand Down Expand Up @@ -407,7 +409,7 @@ def setup_schism_model(
## end of workaround

if use_wwm:
wwm.setup_wwm(mesh_file, schism_dir, ensemble=False)
wwm.setup_wwm(mesh_path, schism_dir, ensemble=False)

logger.info("Setup done")

Expand Down Expand Up @@ -447,7 +449,9 @@ def main(args):
cache_path,
parametric_wind=param_wind,
nhc_track_file=nhc_track,
storm_id=f'{storm_name}{storm_year}')
storm_id=f'{storm_name}{storm_year}',
use_wwm=use_wwm
)


if __name__ == '__main__':
Expand Down Expand Up @@ -513,7 +517,7 @@ def main(args):
type=pathlib.Path
)

argument_parser.add_argument(
parser.add_argument(
"--use-wwm", action="store_true"
)

Expand Down

0 comments on commit 87d9e09

Please sign in to comment.