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
11851725
Commit
11851725
authored
Mar 13, 2017
by
Marius Isken
Browse files
wip
parent
130c75bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/core.py
View file @
11851725
...
...
@@ -266,6 +266,7 @@ 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
)
...
...
@@ -291,7 +292,6 @@ def analyse(problem, niter=1000, show_progress=False):
isok_mask
=
num
.
logical_not
(
isbad_mask
)
else
:
isok_mask
=
None
_
,
ms
=
wproblem
.
evaluate
(
x
,
mask
=
isok_mask
)
mss
[
iiter
,
:]
=
ms
...
...
src/problems.py
View file @
11851725
...
...
@@ -112,6 +112,14 @@ class Problem(Object):
def
ntargets
(
self
):
return
len
(
self
.
targets
)
@
property
def
ntargets_waveform
(
self
):
return
len
(
self
.
waveform_targets
)
@
property
def
ntargets_static
(
self
):
return
len
(
self
.
satellite_targets
)
@
property
def
ndependants
(
self
):
return
len
(
self
.
dependants
)
...
...
src/targets.py
View file @
11851725
...
...
@@ -723,9 +723,12 @@ class TargetConfig(Object):
targets
.
append
(
target
)
if
self
.
kite_scenes
is
not
None
:
logger
.
info
(
'Selectiing satellite targets...'
)
get_satellite_targets
()
else
:
logger
.
info
(
'Selectiing dynamic targets...'
)
get_dynamic_targets
()
print
targets
if
self
.
limit
:
return
weed
(
origin
,
targets
,
self
.
limit
)[
0
]
...
...
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