Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sec23
korte
CORBASS
Commits
d602ded7
Commit
d602ded7
authored
May 08, 2020
by
Maximilian Schanner
Browse files
Messed up the bounds in equi_sph, now fixed
parent
e7aeaa03
Changes
1
Hide whitespace changes
Inline
Side-by-side
corbass/evaluation.py
View file @
d602ded7
...
...
@@ -147,8 +147,10 @@ def location(posterior, mu_dips, cov_dips, n_points=10000,
dens : array-like
The dipole location pdf, evaluated at the gridpoints
"""
# set up grid to evaluate on
theta
,
phi
=
zip
(
*
equi_sph
(
n_points
,
bounds
=
bounds
))
# set up grid to evaluate on
(
ti
,
tf
),
(
pi
,
pf
)
=
bounds
theta
,
phi
=
zip
(
*
equi_sph
(
n_points
,
ti
,
tf
,
pi
,
pf
))
phi
=
np
.
asarray
(
phi
)
theta
=
np
.
pi
/
2.
-
np
.
asarray
(
theta
)
# allocate array for the density
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment