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
kmap
xsocs
Commits
1de706bb
Commit
1de706bb
authored
Nov 21, 2018
by
Thomas Vincent
Browse files
code style
parent
74579679
Changes
2
Hide whitespace changes
Inline
Side-by-side
xsocs/gui/process/QSpaceWidget.py
View file @
1de706bb
...
...
@@ -202,7 +202,7 @@ class ConversionParamsWidget(Qt.QWidget):
StyledLineEdit
(
nChar
=
5
),
StyledLineEdit
(
nChar
=
5
))
for
axis
,
edit
in
zip
(
QSpaceCoordinates
.
axes
N
ames
(
coordinates
),
for
axis
,
edit
in
zip
(
QSpaceCoordinates
.
axes
_n
ames
(
coordinates
),
self
.
__qDimEdits
[
coordinates
]):
qspaceDimLayout
.
addWidget
(
Qt
.
QLabel
(
axis
+
':'
))
qspaceDimLayout
.
addWidget
(
edit
)
...
...
xsocs/io/QSpaceH5.py
View file @
1de706bb
...
...
@@ -54,7 +54,7 @@ class QSpaceCoordinates(object):
"""Supported coordinate systems"""
@
classmethod
def
axes
N
ames
(
cls
,
coordinates
):
def
axes
_n
ames
(
cls
,
coordinates
):
"""Returns axes names for a coordinate system"""
if
coordinates
==
cls
.
CARTESIAN
:
return
'qx'
,
'qy'
,
'qz'
...
...
@@ -338,7 +338,7 @@ class QSpaceH5Writer(QSpaceH5):
position_dtype
=
_np
.
float32
q_bins_dtype
=
_np
.
float64
axis_names
=
QSpaceCoordinates
.
axes
N
ames
(
coordinates
)
axis_names
=
QSpaceCoordinates
.
axes
_n
ames
(
coordinates
)
dataset_info
=
[
# path, shape, dtype, chunks for each dataset
(
self
.
_QSPACE_PATH
,
(
n_positions
,)
+
qspace_shape
,
cube_dtype
,
qspace_chunks
),
...
...
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