Skip to content

Commit

Permalink
Added warning if no dates defined (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanGrimstead authored and IanGrimstead committed May 21, 2019
1 parent cbc1e3f commit f8b0e0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/utils/argschecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ def checkargs(self):
if date_from > date_to:
raise PygramsException(f"date_from '{self.args.date_from}' cannot be after date_to '{self.args.date_to}'")

if date_from is None and date_to is None:
print()
print('WARNING: No dates defined - time series analysis will not be possible (or with the cached output)!')
print()

if self.args.min_ngrams > self.args.max_ngrams:
print(f"minimum ngram count {self.args.min_ngrams} should be less or equal to maximum ngram "
f"count {self.args.max_ngrams}")
Expand Down

0 comments on commit f8b0e0c

Please sign in to comment.