Skip to content

Commit

Permalink
Add errors ignore so it doesn't default to error raise (failing). (#101
Browse files Browse the repository at this point in the history
…) (#103)

* Add errors ignore so it doesn't default to error raise (failing). THis change is needed because a new result has bad units (percent for secchi depth...).

* Ignore pH errors (e.g., mV). This can be reverted if functionality is added in the future (see issue #102)
  • Loading branch information
jbousquin authored Oct 31, 2024
1 parent d5129ab commit 969d53b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/Harmonize_CapeCod_Detailed.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,7 @@
"# Optional params: units='m', char_val='Depth, Secchi disk depth', out_col='Secchi', report=False)\n",
"\n",
"# We start by demonstrating on secchi disk depth (units default to m, keep intermediate fields, see report)\n",
"df = harmonize.harmonize(df, 'Depth, Secchi disk depth', intermediate_columns=True, report=True)"
"df = harmonize.harmonize(df, \"Depth, Secchi disk depth\", errors=\"ignore\", intermediate_columns=True, report=True)"
]
},
{
Expand Down Expand Up @@ -4110,7 +4110,7 @@
],
"source": [
"# pH, this time looking at a report\n",
"df = harmonize.harmonize(df, 'pH', report=True)"
"df = harmonize.harmonize(df, \"pH\", errors=\"ignore\", report=True)"
]
},
{
Expand Down

0 comments on commit 969d53b

Please sign in to comment.