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
ift
IMAGINE
Commits
04fe6428
Commit
04fe6428
authored
Feb 21, 2017
by
Theo Steininger
Browse files
Added flat_prior.py for pymultinest.
parent
80d66566
Changes
5
Hide whitespace changes
Inline
Side-by-side
imagine/priors/__init__.py
View file @
04fe6428
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from
prior
import
Prior
from
prior
import
Prior
from
flat_prior
import
FlatPrior
imagine/priors/flat_prior/__init__.py
0 → 100644
View file @
04fe6428
# -*- coding: utf-8 -*-
from
flat_prior
import
FlatPrior
imagine/priors/flat_prior/flat_prior.py
0 → 100644
View file @
04fe6428
# -*- coding: utf-8 -*-
from
imagine.priors.prior
import
Prior
class
FlatPrior
(
Prior
):
def
__call__
(
self
,
cube
,
ndim
,
nparams
):
return
cube
imagine/priors/prior/__init__.py
0 → 100644
View file @
04fe6428
# -*- coding: utf-8 -*-
from
prior
import
Prior
imagine/priors/prior.py
→
imagine/priors/prior
/prior
.py
View file @
04fe6428
...
@@ -7,5 +7,5 @@ from keepers import Loggable
...
@@ -7,5 +7,5 @@ from keepers import Loggable
class
Prior
(
Loggable
,
object
):
class
Prior
(
Loggable
,
object
):
@
abc
.
abstractmethod
@
abc
.
abstractmethod
def
__call__
(
self
,
param
eter
s
):
def
__call__
(
self
,
cube
,
ndim
,
n
params
):
raise
NotImplemented
raise
NotImplemented
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