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
7268e361
Commit
7268e361
authored
Mar 13, 2017
by
Marius Isken
Browse files
RectangularProblem time dep
parent
c4042471
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/core.py
View file @
7268e361
...
...
@@ -266,7 +266,6 @@ def analyse(problem, niter=1000, show_progress=False):
xbounds
=
num
.
array
(
wproblem
.
get_parameter_bounds
(),
dtype
=
num
.
float
)
npar
=
xbounds
.
shape
[
0
]
print
wproblem
.
ntargets
,
problem
.
ntargets
mss
=
num
.
zeros
((
niter
,
wproblem
.
ntargets
))
rstate
=
num
.
random
.
RandomState
(
123
)
...
...
src/problems.py
View file @
7268e361
...
...
@@ -731,14 +731,9 @@ class RectangularProblem(Problem):
def
get_source
(
self
,
x
):
d
=
self
.
get_parameter_dict
(
x
)
p
=
{}
for
k
in
self
.
base_source
.
keys
():
if
k
in
d
:
p
[
k
]
=
float
(
self
.
ranges
[
k
].
make_relative
(
self
.
base_source
[
k
],
d
[
k
]))
source
=
self
.
base_source
.
clone
(
**
p
)
if
'time'
in
d
.
keys
():
d
[
'time'
]
+=
self
.
base_source
[
'time'
]
source
=
self
.
base_source
.
clone
(
**
d
)
return
source
def
extract
(
self
,
xs
,
i
):
...
...
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