From bf7d79a4a21db615ccf150958c8d5906f6efbcc8 Mon Sep 17 00:00:00 2001 From: Shanrahan16 Date: Fri, 8 Sep 2023 16:47:10 +0100 Subject: [PATCH] #35 tidying up --- checksit/rules/rule_funcs.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/checksit/rules/rule_funcs.py b/checksit/rules/rule_funcs.py index b0368da4..3b1b5b2c 100644 --- a/checksit/rules/rule_funcs.py +++ b/checksit/rules/rule_funcs.py @@ -212,17 +212,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")