Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Heimann
grond
Commits
6bc3b1a6
Commit
6bc3b1a6
authored
Mar 02, 2017
by
Sebastian Heimann
Browse files
add write_config function
parent
46276a26
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core.py
View file @
6bc3b1a6
...
...
@@ -1253,6 +1253,14 @@ def read_config(path):
return
config
def
write_config
(
config
,
path
):
basepath
=
config
.
get_basepath
()
dirname
=
op
.
dirname
(
path
)
or
'.'
config
.
change_basepath
(
dirname
)
guts
.
dump
(
config
,
filename
=
path
)
config
.
change_basepath
(
basepath
)
def
analyse
(
problem
,
niter
=
1000
,
show_progress
=
False
):
if
niter
==
0
:
return
...
...
@@ -2273,6 +2281,7 @@ __all__ = '''
TargetAnalysisResult
load_problem_info_and_data
read_config
write_config
forward
harvest
go
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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