Skip to content

Commit 94b3a13

Browse files
committed
Prune the log files (and save time) by skipping call to jSRE if no examples.
1 parent 64976ca commit 94b3a13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/parserindexer/parse_all.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ def parse_file(self, path):
9999
[('tmp_element', jsre_ex_element, rel_target_element),
100100
('tmp_mineral', jsre_ex_mineral, rel_target_mineral)]:
101101

102+
if len(examples) == 0: # No work to do (nothing to classify)
103+
continue
104+
102105
# Set up the jSRE example file
103106
with io.open(jsre_fn, 'w', encoding='utf8') as out:
104107
for example in examples:

0 commit comments

Comments
 (0)