Skip to content

Commit

Permalink
Merge pull request #190 from rayosborn:update-classes
Browse files Browse the repository at this point in the history
Minor code tweaks
  • Loading branch information
rayosborn authored Dec 9, 2022
2 parents 103cc0a + 2a24759 commit fb3976e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/nexusformat/nexus/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class NXLockException(Exception):
LOCK_FAILED = 1


class NXLock(object):
class NXLock:
"""Class for acquiring and releasing file-based locks.
Attributes
Expand Down
4 changes: 2 additions & 2 deletions src/nexusformat/nexus/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def label(field):
return field.nxname


class PylabPlotter(object):
class PyplotPlotter:
"""Matplotlib plotter class for 1D or 2D NeXus data.
When the nexusformat package is used within NeXpy, plots are produced by
Expand Down Expand Up @@ -326,4 +326,4 @@ def plot(self, data_group, fmt=None, xmin=None, xmax=None,
plt.ion()


plotview = PylabPlotter()
plotview = PyplotPlotter()
6 changes: 3 additions & 3 deletions src/nexusformat/nexus/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ class NeXusError(Exception):
pass


class NXFile(object):
class NXFile:
"""Interface for input/output to NeXus files using h5py.
Usage::
Expand Down Expand Up @@ -1808,7 +1808,7 @@ def nxpath(self):
return self._parent.nxpath


class NXattr(object):
class NXattr:
"""Class for NeXus attributes of a NXfield or NXgroup object.
Attributes
Expand Down Expand Up @@ -1932,7 +1932,7 @@ def shape(self):
_npattrs = list(filter(lambda x: not x.startswith('_'), np.ndarray.__dict__))


class NXobject(object):
class NXobject:

"""Abstract base class for elements in NeXus files.
Expand Down

0 comments on commit fb3976e

Please sign in to comment.