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
426dddf8
Commit
426dddf8
authored
Jun 21, 2017
by
Sebastian Heimann
Browse files
wip
parent
00ab6266
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/core.py
View file @
426dddf8
...
...
@@ -730,16 +730,20 @@ def process_event(ievent, g_data_id):
# update_every=10,
# movie_filename='grond_opt_time_magnitude.mp4')
solver
=
config
.
solver_config
.
get_solver
()
solver
.
solve
(
problem
,
rundir
=
rundir
,
status
=
status
,
# plot=splot,
xs_inject
=
xs_inject
,
notifier
=
notifier
)
harvest
(
rundir
,
problem
,
force
=
True
)
try
:
solver
=
config
.
solver_config
.
get_solver
()
solver
.
solve
(
problem
,
rundir
=
rundir
,
status
=
status
,
# plot=splot,
xs_inject
=
xs_inject
,
notifier
=
notifier
)
harvest
(
rundir
,
problem
,
force
=
True
)
except
BadProblem
as
e
:
logger
.
error
(
str
(
e
))
tstop
=
time
.
time
()
logger
.
info
(
...
...
src/problems/base.py
View file @
426dddf8
...
...
@@ -254,7 +254,8 @@ class Problem(Object):
for
p
in
target
.
target_parameters
:
r
=
target
.
target_ranges
[
p
.
name
]
out
.
append
((
r
.
start
,
r
.
stop
))
return
out
return
num
.
array
(
out
,
dtype
=
num
.
float
)
def
get_dependant_bounds
(
self
):
return
[]
...
...
src/solvers/highscore.py
View file @
426dddf8
This diff is collapsed.
Click to expand it.
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