Skip to content

Commit

Permalink
Merge pull request #85 from USEPA/pyOpenSci-review
Browse files Browse the repository at this point in the history
Py open sci review
  • Loading branch information
jbousquin authored Jul 9, 2024
2 parents 646a5c3 + 5b79f0f commit 3917228
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions harmonize_wq/domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ def harmonize_TADA_dict():
csv = f'{TADA_DATA_URL}develop/inst/extdata/HarmonizationTemplate.csv'
df = pandas.read_csv(csv) # Read csv url to DataFrame
full_dict = {} # Setup results dict
# Loop over one unique characteristicName at a time
for char in df['TADA.CharacteristicName'].unique():
sub_df = df[df['TADA.CharacteristicName']==char] # Mask by char
# Build dict one unique characteristicName at a time
for char, sub_df in df.groupby('TADA.CharacteristicName'):
full_dict[char] = char_tbl_TADA(sub_df, char) # Build dictionary

# Domains to check agaisnt
Expand Down
3 changes: 2 additions & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ sphinx
sphinx_rtd_theme
sphinxcontrib-spelling
nbsphinx
nbsphinx_link
nbsphinx_link
notebook

0 comments on commit 3917228

Please sign in to comment.