Skip to content

Commit 06c3bef

Browse files
jasonccoleAlex-AMC
andauthored
Update scripts/refcodes_with_properties/refcodes_with_properties.py
Co-authored-by: Alex Moldovan <[email protected]>
1 parent bb07d18 commit 06c3bef

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/refcodes_with_properties/refcodes_with_properties.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@
4646
filterer = EntryPropertyCalculator.parse_control_file(open(control_file,"r").readlines())
4747

4848
reader = None
49-
if refcode_file == None:
50-
if database_file == None:
51-
reader = io.EntryReader('CSD')
52-
else:
53-
reader = io.EntryReader(database_file)
54-
else:
49+
if refcode_file:
5550
reader = io.EntryReader(refcode_file, format='identifiers')
51+
elif database_file:
52+
reader = io.EntryReader(database_file)
53+
else:
54+
reader = io.EntryReader('CSD')
5655

5756
if args.get_values:
5857
import csv

0 commit comments

Comments
 (0)