Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IMAGINE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
IMAGINE
Commits
416f2cd5
Commit
416f2cd5
authored
Dec 09, 2017
by
Theo Steininger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added convenience to EnsembleLikelihood
parent
05f87bd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
imagine/likelihoods/ensemble_likelihood/ensemble_likelihood.py
...ne/likelihoods/ensemble_likelihood/ensemble_likelihood.py
+5
-3
No files found.
imagine/likelihoods/ensemble_likelihood/ensemble_likelihood.py
View file @
416f2cd5
...
...
@@ -9,10 +9,12 @@ from imagine.likelihoods.likelihood import Likelihood
class
EnsembleLikelihood
(
Likelihood
):
def
__init__
(
self
,
observable_name
,
measured_data
,
data_covariance
_operator
,
profile
=
None
):
data_covariance
,
profile
=
None
):
self
.
observable_name
=
observable_name
self
.
measured_data
=
self
.
_strip_data
(
measured_data
)
self
.
data_covariance_operator
=
data_covariance_operator
if
isinstance
(
data_covariance
,
Field
):
data_covariance
=
data_covariance
.
val
.
get_full_data
()
self
.
data_covariance
=
data_covariance
def
_strip_data
(
self
,
data
):
# if the first element in the domain tuple is a FieldArray we must
...
...
@@ -27,7 +29,7 @@ class EnsembleLikelihood(Likelihood):
field
=
observable
[
self
.
observable_name
]
return
self
.
_process_simple_field
(
field
,
self
.
measured_data
,
self
.
data_covariance
_operator
)
self
.
data_covariance
)
def
_process_simple_field
(
self
,
observable
,
measured_data
,
data_covariance
):
...
...
Write
Preview
Markdown
is supported
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