mirror of
https://github.com/Athemis/pyKinetics.git
synced 2025-04-07 07:26:03 +00:00
fix some coding style issues
This commit is contained in:
parent
662f1baca1
commit
6d39c4822b
1 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
import csv
|
import csv
|
||||||
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
# check for third party modules. Matplotlib and NumPy are essential
|
# check for third party modules. Matplotlib and NumPy are essential
|
||||||
|
@ -25,7 +26,7 @@ except ImportError:
|
||||||
COLORED_LOG = False
|
COLORED_LOG = False
|
||||||
print('----- Module colorlog not found. Console output will not be '
|
print('----- Module colorlog not found. Console output will not be '
|
||||||
'colored! -----')
|
'colored! -----')
|
||||||
pass
|
sys.exc_clear()
|
||||||
|
|
||||||
# check for libkinetics; if not found, there is something wrong with the
|
# check for libkinetics; if not found, there is something wrong with the
|
||||||
# installation if pyKinetics
|
# installation if pyKinetics
|
||||||
|
@ -338,7 +339,7 @@ def main():
|
||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
else:
|
else:
|
||||||
msg = '{} is not a directory!'.format(output_path)
|
msg = '{} is not a directory!'.format(output_path)
|
||||||
logger.critical('CRITICAL: '.format(msg))
|
logger.critical('CRITICAL: {}'.format(msg))
|
||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue