Skip to content

Commit

Permalink
#35 tidying up
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanrahan16 committed Sep 21, 2023
1 parent dab2ad4 commit 4a04ec4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions checksit/rules/rule_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,6 @@ def title_instrument(value, context, extras=None, label=""):
ncas_data = json.loads(n.read())
community_data = json.loads(c.read())

#print(type(data)) #delete
#descriptn = data.description.map(item,item.description)

#d = json.loads('./checksit/vocabs/AMF_CVs/2.0.0/AMF_ncas_instrument.json')

#df = pd.json_normalize(data)
#print(df) #delete
#print(type(df)) #delete

#if instrument not in data['ncas_instrument'][*]['description']:
#if instrument not in descriptn:
if instrument not in ncas_data['ncas_instrument'] and instrument not in community_data['community_instrument']:
warnings.append(f"{label} '{instrument}' should be contained one of the instrument controlled vocabulary lists")

Expand Down

0 comments on commit 4a04ec4

Please sign in to comment.