Skip to content

Commit

Permalink
Merge pull request #70 from ncss-tech/single-digit-phfield
Browse files Browse the repository at this point in the history
add support for single digit pH
  • Loading branch information
brownag authored Oct 26, 2023
2 parents dc9c537 + 1bcb8bb commit 288ef33
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion R/parseOSD_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
.parse_pH <- function(text) {

# combine into capturing REGEX
ph.regex <- '\\(ph\\s?([0-9]\\.[0-9])\\)'
ph.regex <- '\\(ph\\s?([0-9]\\.?[0-9]?)\\)'

# get matches
m <- stringi::stri_match(text, regex = ph.regex, mode = 'first', opts_regex = list(case_insensitive = TRUE))
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/OSD/E/ETACH.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"moist_rupture": "friable",
"coherence": "NA",
"cf_class": "very gravelly",
"pH": "NA",
"pH": 5,
"pH_class": "very strongly acid",
"eff_class": "NA",
"distinctness": "abrupt",
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/OSD/F/FLATBUSH.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"moist_rupture": "friable",
"coherence": "NA",
"cf_class": "NA",
"pH": "NA",
"pH": 5,
"pH_class": "very strongly acid",
"eff_class": "NA",
"distinctness": "clear",
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/OSD/G/GRAFEN.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"moist_rupture": "friable",
"coherence": "NA",
"cf_class": "extremely stony",
"pH": "NA",
"pH": 7,
"pH_class": "neutral",
"eff_class": "NA",
"distinctness": "clear",
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/OSD/H/HEREFORD.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"moist_rupture": "friable",
"coherence": "NA",
"cf_class": "NA",
"pH": "NA",
"pH": 8,
"pH_class": "moderately alkaline",
"eff_class": "noneffervescent",
"distinctness": "clear",
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/OSD/H/HIVAL.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"moist_rupture": "friable",
"coherence": "NA",
"cf_class": "NA",
"pH": "NA",
"pH": 8,
"pH_class": "moderately alkaline",
"eff_class": "NA",
"distinctness": "clear",
Expand Down
4 changes: 2 additions & 2 deletions inst/extdata/OSD/M/MARINEPARK.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"moist_rupture": "friable",
"coherence": "NA",
"cf_class": "NA",
"pH": "NA",
"pH": 5,
"pH_class": "very strongly acid",
"eff_class": "NA",
"distinctness": "clear",
Expand All @@ -110,7 +110,7 @@
"moist_rupture": "friable",
"coherence": "NA",
"cf_class": "gravelly",
"pH": "NA",
"pH": 5,
"pH_class": "very strongly acid",
"eff_class": "NA",
"distinctness": "clear",
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/OSD/M/MECCAPASS.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"moist_rupture": "friable",
"coherence": "NA",
"cf_class": "extremely gravelly",
"pH": "NA",
"pH": 8,
"pH_class": "moderately alkaline",
"eff_class": "violently effervescent",
"distinctness": "clear",
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/OSD/R/RIRIE.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
"moist_rupture": "friable",
"coherence": "NA",
"cf_class": "NA",
"pH": "NA",
"pH": 9,
"pH_class": "very strongly alkaline",
"eff_class": "strongly effervescent",
"distinctness": "NA",
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/OSD/T/TUFFIT.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"moist_rupture": "friable",
"coherence": "NA",
"cf_class": "NA",
"pH": "NA",
"pH": 9,
"pH_class": "NA",
"eff_class": "NA",
"distinctness": "NA",
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/OSD/T/TURPIN.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"moist_rupture": "NA",
"coherence": "NA",
"cf_class": "NA",
"pH": "NA",
"pH": 10,
"pH_class": "very strongly alkaline",
"eff_class": "violently effervescent",
"distinctness": "NA",
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/OSD/T/TWICK.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"moist_rupture": "firm",
"coherence": "NA",
"cf_class": "cobbly",
"pH": "NA",
"pH": 8,
"pH_class": "moderately alkaline",
"eff_class": "slightly effervescent",
"distinctness": "abrupt",
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/OSD/V/VYLACH.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"moist_rupture": "firm",
"coherence": "strongly cemented",
"cf_class": "NA",
"pH": "NA",
"pH": 8,
"pH_class": "moderately alkaline",
"eff_class": "NA",
"distinctness": "abrupt",
Expand Down

0 comments on commit 288ef33

Please sign in to comment.