Skip to content

Commit

Permalink
Merge pull request #1390 from Sage-Bionetworks/develop-allow-na-if-at…
Browse files Browse the repository at this point in the history
…tribute-not-required-FDS-1352

Allow non-entry if Required=False
  • Loading branch information
mialy-defelice authored Apr 5, 2024
2 parents f91c4ed + 6fecab4 commit ccadaaa
Show file tree
Hide file tree
Showing 12 changed files with 2,073 additions and 220 deletions.
3 changes: 1 addition & 2 deletions schematic/models/GE_Helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def build_expectation_suite(
"str": "expect_column_values_to_be_of_type",
"num": "expect_column_values_to_be_in_type_list",
"date": "expect_column_values_to_be_dateutil_parseable",
"recommended": "expect_column_values_to_not_match_regex_list",
"recommended": "expect_column_values_to_not_be_null",
"protectAges": "expect_column_values_to_be_between",
"unique": "expect_column_values_to_be_unique",
"inRange": "expect_column_values_to_be_between",
Expand Down Expand Up @@ -255,7 +255,6 @@ def build_expectation_suite(

elif base_rule == ("recommended"):
args["mostly"] = 0.0000000001
args["regex_list"] = ["^$"]
meta = {
"notes": {
"format": "markdown",
Expand Down
1 change: 1 addition & 0 deletions schematic/models/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ def validateModelManifest(
manifest = load_df(
manifestPath,
preserve_raw_input=False,
allow_na_values=True,
**load_args,
) # read manifest csv file as is from manifest path

Expand Down
Loading

0 comments on commit ccadaaa

Please sign in to comment.