From fffcebf12de4d1a9ed2728b83a720f3f0d919e0e Mon Sep 17 00:00:00 2001 From: "jason.regina" Date: Thu, 24 Aug 2023 14:29:15 +0000 Subject: [PATCH 1/2] update use of private file server example --- python/nwm_client_new/README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/python/nwm_client_new/README.md b/python/nwm_client_new/README.md index 96a7f172..56cf10bc 100644 --- a/python/nwm_client_new/README.md +++ b/python/nwm_client_new/README.md @@ -110,12 +110,19 @@ from hydrotools.nwm_client_new.HTTPFileCatalog import HTTPFileCatalog from hydrotools.nwm_client_new.NWMClientDefaults import MeasurementUnitSystem import ssl +# Create ssl context +context = ssl.create_default_context(cafile="/path/to/my/ca-bundle.crt") + # Instantiate model data client catalog = HTTPFileCatalog( - "https://path-to-my-private-server.com/nwm-files", - ssl_context=ssl.create_default_context(ca_file="/path/to/my/ca-bundle.crt") + "https://path-to-my-private-server.com/nwm/2.2/", + ssl_context=context ) -model_data_client = NWMFileClient(catalog=catalog, unit_system=MeasurementUnitSystem.US) +model_data_client = NWMFileClient( + catalog=catalog, + unit_system=MeasurementUnitSystem.US, + ssl_context=context +) # Retrieve forecast data forecast_data = model_data_client.get( From f923e558278b993c4b6b0db09c97e9d6365afa59 Mon Sep 17 00:00:00 2001 From: "jason.regina" Date: Thu, 24 Aug 2023 14:30:13 +0000 Subject: [PATCH 2/2] bump nwm_client_new to 7.1.1 --- python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py b/python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py index 54ccb5d2..2a10b3e2 100644 --- a/python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py +++ b/python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py @@ -1 +1 @@ -__version__ = "7.1.0" +__version__ = "7.1.1"