Skip to content

Commit

Permalink
feat: add --esgf argument to pan3d-viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley authored and johnkit committed Apr 30, 2024
1 parent ae545ae commit 1b1f0ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pan3d/serve_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@ def serve():
parser.add_argument("-C", "--config_path")
parser.add_argument("-D", "--dataset")
parser.add_argument("-P", "--pangeo", action=BooleanOptionalAction)
parser.add_argument("-E", "--esgf", action=BooleanOptionalAction)
parser.add_argument("-S", "--server", action=BooleanOptionalAction)
parser.add_argument("-d", "--debug", action=BooleanOptionalAction)

args = parser.parse_args()

builder = DatasetBuilder(dataset_path=args.dataset, pangeo=args.pangeo)
builder = DatasetBuilder(
dataset=args.dataset,
pangeo=args.pangeo,
esgf=args.esgf,
)
if args.config_path:
builder.import_config(args.config_path)
builder.viewer.start(debug=args.debug)
Expand Down

0 comments on commit 1b1f0ba

Please sign in to comment.