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
NIFTy
Commits
c91b2e9d
Commit
c91b2e9d
authored
Nov 16, 2017
by
Martin Reinecke
Browse files
small fixes
parent
62959c1b
Pipeline
#21742
passed with stage
in 4 minutes and 21 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
nifty/plotting/plot.py
View file @
c91b2e9d
...
...
@@ -16,8 +16,7 @@ import os
def
_mollweide_helper
(
xsize
):
xsize
=
int
(
xsize
)
ysize
=
xsize
//
2
res
=
np
.
full
(
shape
=
(
ysize
,
xsize
),
fill_value
=
np
.
nan
,
dtype
=
np
.
float64
)
res
=
np
.
full
(
shape
=
(
ysize
,
xsize
),
fill_value
=
np
.
nan
,
dtype
=
np
.
float64
)
xc
=
(
xsize
-
1
)
*
0.5
yc
=
(
ysize
-
1
)
*
0.5
u
,
v
=
np
.
meshgrid
(
np
.
arange
(
xsize
),
np
.
arange
(
ysize
))
...
...
nifty/utilities.py
View file @
c91b2e9d
...
...
@@ -143,7 +143,7 @@ def _fill_upper_half(tmp, res, axes):
def
_fill_array
(
tmp
,
res
,
axes
):
if
axes
is
None
:
axes
=
range
(
tmp
.
ndim
)
axes
=
tuple
(
range
(
tmp
.
ndim
)
)
lastaxis
=
axes
[
-
1
]
ntmplast
=
tmp
.
shape
[
lastaxis
]
slice1
=
[
slice
(
None
)]
*
lastaxis
+
[
slice
(
0
,
ntmplast
)]
...
...
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