Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
geomultisens
gms_preprocessing
Commits
bfe3deec
Commit
bfe3deec
authored
Nov 27, 2017
by
Daniel Scheffler
Browse files
Fixed style issues.
Former-commit-id:
cd5315eb
Former-commit-id:
81d2763b
parent
abbf0afb
Changes
2
Hide whitespace changes
Inline
Side-by-side
gms_preprocessing/config.py
View file @
bfe3deec
...
...
@@ -530,7 +530,7 @@ class JobConfig(object):
with
open
(
self
.
kwargs
[
'json_config'
],
'r'
)
as
inF
:
params_dict
=
json
.
loads
(
jsmin
(
inF
.
read
()))
except
JSONDecodeError
:
warnings
.
warn
(
'The given JSON options file %s could not be decoded. '
warnings
.
warn
(
'The given JSON options file %s could not be decoded. '
'JSON decoder failed with the following error:'
%
self
.
kwargs
[
'json_config'
])
raise
...
...
tests/test_config.py
View file @
bfe3deec
...
...
@@ -65,4 +65,3 @@ class Test_JobConfig(TestCase):
cfg
=
os
.
path
.
join
(
__path__
[
0
],
'options_default.json'
)
cfg
=
JobConfig
(
self
.
jobID
,
self
.
db_host
,
json_config
=
cfg
)
self
.
assertIsInstance
(
cfg
,
JobConfig
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment