Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
bilby
Commits
95bdf317
Commit
95bdf317
authored
6 years ago
by
Colm Talbot
Browse files
Options
Downloads
Patches
Plain Diff
remove old class, make tests run
parent
f3ab1477
No related branches found
No related tags found
1 merge request
!59
Updating priors
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tupak/core/prior.py
+1
-12
1 addition, 12 deletions
tupak/core/prior.py
with
1 addition
and
12 deletions
tupak/core/prior.py
+
1
−
12
View file @
95bdf317
#!/bin/python
from
__future__
import
division
import
tupak
import
numpy
as
np
from
scipy.interpolate
import
interp1d
from
scipy.integrate
import
cumtrapz
...
...
@@ -615,8 +616,6 @@ class FromFile(Interped):
def
__init__
(
self
,
file_name
,
minimum
=
None
,
maximum
=
None
,
name
=
None
,
latex_label
=
None
):
try
:
self
.
id
=
file_name
if
'
/
'
not
in
self
.
id
:
self
.
id
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
prior_files
'
,
self
.
id
)
xx
,
yy
=
np
.
genfromtxt
(
self
.
id
).
T
Interped
.
__init__
(
self
,
xx
=
xx
,
yy
=
yy
,
minimum
=
minimum
,
maximum
=
maximum
,
name
=
name
,
latex_label
=
latex_label
)
except
IOError
:
...
...
@@ -626,13 +625,3 @@ class FromFile(Interped):
def
__repr__
(
self
,
subclass_keys
=
list
(),
subclass_names
=
list
()):
return
Prior
.
_subclass_repr_helper
(
self
,
subclass_args
=
[
'
id
'
])
class
UniformComovingVolume
(
FromFile
):
def
__init__
(
self
,
minimum
=
None
,
maximum
=
None
,
name
=
None
,
latex_label
=
None
):
FromFile
.
__init__
(
self
,
file_name
=
'
comoving.txt
'
,
minimum
=
minimum
,
maximum
=
maximum
,
name
=
name
,
latex_label
=
latex_label
)
def
__repr__
(
self
,
subclass_keys
=
list
(),
subclass_names
=
list
()):
return
FromFile
.
__repr__
(
self
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment