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
NearRealTimeCTDAS
CTDAS
Commits
2c515cc5
Commit
2c515cc5
authored
Aug 02, 2012
by
ivar
Browse files
rejected samples are now correctly flagged with number 2
parent
248888bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
da/baseclasses/optimizer.py
View file @
2c515cc5
...
...
@@ -132,7 +132,7 @@ class Optimizer(object):
self
.
obs
[:]
=
np
.
array
(
allobs
)
self
.
obs_ids
[:]
=
np
.
array
(
allids
)
print
self
.
HX_prime
[:,:].
shape
,
np
.
array
(
allsimulated
).
shape
self
.
HX_prime
[:,:]
=
np
.
array
(
allsimulated
)
self
.
Hx
[:]
=
self
.
HX_prime
[:,
0
]
...
...
@@ -354,7 +354,7 @@ class Optimizer(object):
threshold
=
self
.
rejection_threshold
*
np
.
sqrt
(
self
.
R
[
n
,
n
])
if
np
.
abs
(
res
)
>
threshold
:
msg
=
'Rejecting observation %d because residual (%f) exceeds threshold (%f)'
%
(
n
,
res
,
threshold
)
;
logging
.
debug
(
msg
)
self
.
flags
[
n
]
=
=
2
self
.
flags
[
n
]
=
2
continue
PHt
=
1.
/
(
self
.
nmembers
-
1
)
*
np
.
dot
(
self
.
X_prime
,
self
.
HX_prime
[
n
,:])
...
...
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