Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create new dataset with CLI client #531

Closed
robertbartel opened this issue Mar 6, 2024 · 1 comment
Closed

Cannot create new dataset with CLI client #531

robertbartel opened this issue Mar 6, 2024 · 1 comment
Assignees
Labels
bug Something isn't working maas MaaS Workstream

Comments

@robertbartel
Copy link
Contributor

Error appears related to data format selection, though no formats seem to be viable currently:

(venv) [root@9c86f61a34bd dmod-cli]# python -m dmod.client dataset create --format=NGEN_REALIZATION_CONFIG test_realization
usage: dmod.client dataset create [-h] [--paths UPLOAD_PATHS [UPLOAD_PATHS ...]] [--data-root DATA_ROOT] [--continuous-restriction [CONTINUOUS_RESTRICTIONS ...]]
                                  [--discrete-restriction [DISCRETE_RESTRICTIONS ...]]
                                  [--format {AORC_CSV,NETCDF_FORCING_CANONICAL,NETCDF_AORC_DEFAULT,NGEN_OUTPUT,NGEN_REALIZATION_CONFIG,NGEN_GEOJSON_HYDROFABRIC,NGEN_PARTITION_CONFIG,BMI_CONFIG,NWM_OUTPUT,NWM_CONFIG,NGEN_CAL_OUTPUT,NGEN_CAL_CONFIG,NGEN_JOB_COMPOSITE_CONFIG,T_ROUTE_CONFIG}]
                                  [--domain-json DOMAIN_FILE]
                                  name {config,forcing,hydrofabric,observation,output}
dmod.client dataset create: error: argument --format: invalid choice: <DataFormat.NGEN_REALIZATION_CONFIG: (4, {<StandardDatasetIndex.CATCHMENT_ID: (1, <class 'str'>, 'CATCHMENT_ID')>: None, <StandardDatasetIndex.TIME: (0, <class 'datetime.datetime'>, 'TIME')>: None, <StandardDatasetIndex.DATA_ID: (2, <class 'str'>, 'DATA_ID')>: None}, None, True)> (choose from 'AORC_CSV', 'NETCDF_FORCING_CANONICAL', 'NETCDF_AORC_DEFAULT', 'NGEN_OUTPUT', 'NGEN_REALIZATION_CONFIG', 'NGEN_GEOJSON_HYDROFABRIC', 'NGEN_PARTITION_CONFIG', 'BMI_CONFIG', 'NWM_OUTPUT', 'NWM_CONFIG', 'NGEN_CAL_OUTPUT', 'NGEN_CAL_CONFIG', 'NGEN_JOB_COMPOSITE_CONFIG', 'T_ROUTE_CONFIG')
@robertbartel robertbartel added bug Something isn't working maas MaaS Workstream labels Mar 6, 2024
@robertbartel robertbartel self-assigned this Mar 6, 2024
@robertbartel
Copy link
Contributor Author

Part of issue fixed by #532, though now a different error appears:

rbartel@gamer1:~/dev/noaa/dmod> docker exec $(./local_helper_scripts/docker_srv_ps.sh nwm_gui nwm_gui_app_server) python -m dmod.client dataset create --format NGEN_REALIZATION_CONFIG test_composite_1 config
ERROR: Encountered AttributeError - 'NoneType' object has no attribute 'open'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maas MaaS Workstream
Projects
None yet
Development

No branches or pull requests

2 participants