We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb07d18 commit 06c3befCopy full SHA for 06c3bef
scripts/refcodes_with_properties/refcodes_with_properties.py
@@ -46,13 +46,12 @@
46
filterer = EntryPropertyCalculator.parse_control_file(open(control_file,"r").readlines())
47
48
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
+ if refcode_file:
55
reader = io.EntryReader(refcode_file, format='identifiers')
+ elif database_file:
+ reader = io.EntryReader(database_file)
+ else:
+ reader = io.EntryReader('CSD')
56
57
if args.get_values:
58
import csv
0 commit comments