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
ift
NIFTy
Commits
c75afb6f
Commit
c75afb6f
authored
Apr 27, 2018
by
Martin Reinecke
Browse files
more documentation
parent
ee4edc77
Pipeline
#28193
passed with stage
in 2 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty4/library/los_response.py
View file @
c75afb6f
...
...
@@ -55,7 +55,7 @@ def _comp_traverse(start, end, shp, dist, lo, mid, hi, erf):
if
dir
[
j
]
!=
0
:
step
=
inc
[
j
]
if
dir
[
j
]
>
0
else
-
inc
[
j
]
tmp
=
np
.
arange
(
start
=
c_first
[
j
],
stop
=
dmax
,
step
=
np
.
abs
(
1.
/
dir
[
j
]))
step
=
abs
(
1.
/
dir
[
j
]))
cdist
=
np
.
append
(
cdist
,
tmp
)
add
=
np
.
append
(
add
,
np
.
full
(
len
(
tmp
),
step
))
idx
=
np
.
argsort
(
cdist
)
...
...
@@ -103,6 +103,12 @@ class LOSResponse(LinearOperator):
and indicated the total number of lines of sight.
sigmas_low, sigmas_up : numpy.ndarray(float) (optional)
For expert use. If unsure, leave blank.
Notes
-----
`starts, `ends`, `sigmas_low`, and `sigmas_up` have to be identical on
every calling MPI task (i.e. the full LOS information has to be provided on
every task).
"""
def
__init__
(
self
,
domain
,
starts
,
ends
,
sigmas_low
=
None
,
sigmas_up
=
None
):
...
...
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