Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
bilby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
26
Issues
26
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
12
Merge Requests
12
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
bilby
Commits
b135d405
Commit
b135d405
authored
May 30, 2018
by
Moritz Huebner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moritz Huebner: Refined some __repr__ stuff
parent
04a8db05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tupak/prior.py
tupak/prior.py
+4
-4
No files found.
tupak/prior.py
View file @
b135d405
...
...
@@ -343,11 +343,9 @@ class TruncatedGaussian(Prior):
def
__init__
(
self
,
mu
,
sigma
,
minimum
,
maximum
,
name
=
None
,
latex_label
=
None
):
"""Power law with bounds and alpha, spectral index"""
Prior
.
__init__
(
self
,
name
,
latex_label
)
Prior
.
__init__
(
self
,
name
=
name
,
latex_label
=
latex_label
,
minimum
=
minimum
,
maximum
=
maximum
)
self
.
mu
=
mu
self
.
sigma
=
sigma
self
.
minimum
=
minimum
self
.
maximum
=
maximum
self
.
normalisation
=
(
erf
((
self
.
maximum
-
self
.
mu
)
/
2
**
0.5
/
self
.
sigma
)
-
erf
(
(
self
.
minimum
-
self
.
mu
)
/
2
**
0.5
/
self
.
sigma
))
/
2
...
...
@@ -455,7 +453,9 @@ class FromFile(Interped):
logging
.
warning
(
r
"x\tp(x)"
)
def
__repr__
(
self
,
subclass_keys
=
list
(),
subclass_names
=
list
()):
return
Interped
.
__repr__
(
self
)
return
Prior
.
subclass_repr_helper
(
self
,
subclass_keys
=
[
'xx'
,
'yy'
,
'id'
],
subclass_names
=
[
'xx'
,
'yy'
,
'id'
])
class
UniformComovingVolume
(
FromFile
):
...
...
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