Commit 1de706bb authored by Thomas Vincent's avatar Thomas Vincent

code style

parent 74579679
......@@ -202,7 +202,7 @@ class ConversionParamsWidget(Qt.QWidget):
StyledLineEdit(nChar=5),
StyledLineEdit(nChar=5))
for axis, edit in zip(QSpaceCoordinates.axesNames(coordinates),
for axis, edit in zip(QSpaceCoordinates.axes_names(coordinates),
self.__qDimEdits[coordinates]):
qspaceDimLayout.addWidget(Qt.QLabel(axis + ':'))
qspaceDimLayout.addWidget(edit)
......
......@@ -54,7 +54,7 @@ class QSpaceCoordinates(object):
"""Supported coordinate systems"""
@classmethod
def axesNames(cls, coordinates):
def axes_names(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.axesNames(coordinates)
axis_names = QSpaceCoordinates.axes_names(coordinates)
dataset_info = [ # path, shape, dtype, chunks for each dataset
(self._QSPACE_PATH, (n_positions,) + qspace_shape, cube_dtype, qspace_chunks),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment