Skip to content

Commit

Permalink
update imerg_secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
pritamd47 committed Jul 9, 2024
1 parent 020a3e0 commit 8ba3f95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rat/data_processing/newdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,8 @@ def get_newdata(basin_name,basin_bounds,data_dir, basin_data_dir,startdate, endd

secrets = configparser.ConfigParser()
if secrets_file == 'GA':
secrets.read_string(os.environ['GA'])
secrets.read_string(os.environ['IMERG_SECRETS'])
log.info("Secrets read from IMERG_SECRETS")
else:
secrets.read(secrets_file) # assuming there's a secret ini file with user/pwd

Expand Down

0 comments on commit 8ba3f95

Please sign in to comment.