Skip to content

Commit df1c39c

Browse files
committed
updates
1 parent f00b9ea commit df1c39c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

expansion/expansion.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4419,6 +4419,11 @@ def check_prop_types(self,
44194419
print(error)
44204420
errors.append(error)
44214421

4422+
# to do: Check for min/max of number/int properties
4423+
if 'minimum' in dd[node]["properties"][prop]: #
4424+
min = dd[node]["properties"][prop]['minimum']
4425+
#for each value of d, are any less than min or greater than max
4426+
44224427
elif 'enum' in dd[node]['properties'][prop]:
44234428
enums = dd[node]['properties'][prop]['enum']
44244429
vals = list(set(df[prop].dropna()))
@@ -4983,7 +4988,7 @@ def create_mock_tsv(self,
49834988
dd (dict): the Gen3 data dictionary you get with Gen3Submission.get_dictionary_all()
49844989
node(str): the name of the node in the data dictionary
49854990
count(int): the number of records / rows to create in the submission TSV
4986-
parent_tsvs(dict): a dictionary of node names (keys) and filenames (values) containing the parent node submission TSV; if left blank, the function will not include link submitter_ids.
4991+
parent_tsvs(dict): a dictionary of node names (keys) and filenames (values) containing the parent node submission TSV; if left blank, the function will not include link submitter_ids; e.g., parent_tsvs = {'cases':'case_mock_1.1.4.tsv'}
49874992
outdir(str): the local directory to write simulated TSV data to
49884993
filename(str): the filename to use, default is the name of the node
49894994
links(list): a list of links to include in the submission TSV

0 commit comments

Comments
 (0)