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
kmap
xsocs
Commits
4dfee82a
Commit
4dfee82a
authored
Dec 07, 2020
by
Thomas Vincent
Browse files
Avoid numpy 1.20.0rc1 deprecation warning
parent
11d080e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
xsocs/process/shift/shift.py
View file @
4dfee82a
...
...
@@ -201,7 +201,7 @@ class ScanShift(object):
else
:
valid_col
=
np
.
full
((
steps_0
*
steps_1
,),
True
,
dtype
=
np
.
bool
)
dtype
=
bool
)
if
shift_row
>
0
:
valid_row
=
row_idx
<
scan_params
[
'motor_1_steps'
]
...
...
@@ -210,7 +210,7 @@ class ScanShift(object):
else
:
valid_row
=
np
.
full
((
steps_0
*
steps_1
,),
True
,
dtype
=
np
.
bool
)
dtype
=
bool
)
valid_idx
=
np
.
where
(
np
.
logical_and
(
valid_row
,
valid_col
))
...
...
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