Skip to content

Commit

Permalink
changed copernicus marine env definition in satellite collector
Browse files Browse the repository at this point in the history
  • Loading branch information
bohlinger committed Nov 6, 2024
1 parent c33d9fb commit 51c2a49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wavy/satellite_collectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ def get_remote_files_copernicusmarine(**kwargs):

# if CMEMS credentials are defined in environment other options
# are overwritten
if 'COPERNICUS_MARINE_SERVICE_USERNAME' in os.environ:
username = os.getenv('COPERNICUS_MARINE_SERVICE_USERNAME')
if 'COPERNICUSMARINE_SERVICE_USERNAME' in os.environ:
username = os.getenv('COPERNICUSMARINE_SERVICE_USERNAME')
else:
username = None
if 'COPERNICUS_MARINE_SERVICE_PASSWORD' in os.environ:
password = os.getenv('COPERNICUS_MARINE_SERVICE_PASSWORD')
if 'COPERNICUSMARINE_SERVICE_PASSWORD' in os.environ:
password = os.getenv('COPERNICUSMARINE_SERVICE_PASSWORD')
else:
password = None

Expand Down

0 comments on commit 51c2a49

Please sign in to comment.