Skip to content

Commit afd3d56

Browse files
committed
rework old-style object definition
1 parent b8c87cd commit afd3d56

File tree

14 files changed

+17
-17
lines changed

14 files changed

+17
-17
lines changed

docs/source/examples/lif.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import numpy as np
1414

1515

16-
class LIF(object):
16+
class LIF:
1717

1818
def __init__(self, stepsize=0.0001, offset=1.6, tau_m=0.025, tau_a=0.02, da=0.0, D=3.5):
1919
self.stepsize = stepsize # simulation stepsize [s]

nixio/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from . import util
77

88

9-
class Container(object):
9+
class Container:
1010
"""
1111
Container acts as an interface to container groups in the backend. In the
1212
case of HDF5, this is a group that is used as a container for other groups.

nixio/data_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import numpy as np
1010

1111

12-
class DataSet(object):
12+
class DataSet:
1313
"""
1414
Data IO object for DataArray.
1515
"""

nixio/datatype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
BOOLS = (bool, np.bool_)
1616

1717

18-
class DataType(object):
18+
class DataType:
1919
UInt8 = np.uint8
2020
UInt16 = np.uint16
2121
UInt32 = np.uint32

nixio/dimensions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _inst_item(self, item):
6464
return cls(self._parent, idx)
6565

6666

67-
class DimensionLink(object):
67+
class DimensionLink:
6868
"""
6969
Links a Dimension to a data object (DataArray or DataFrame).
7070
@@ -223,7 +223,7 @@ def _data_object_type(self):
223223
return self._h5group.get_attr("data_object_type")
224224

225225

226-
class Dimension(object):
226+
class Dimension:
227227

228228
def __init__(self, nixfile, data_array, index):
229229
dimgroup = data_array._h5group.open_group("dimensions")

nixio/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from . import util
1111

1212

13-
class Entity(object):
13+
class Entity:
1414

1515
def __init__(self, nixfile, nixparent, h5group):
1616
util.check_entity_id(h5group.get_attr("entity_id"))

nixio/feature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from .util import util
1515

1616

17-
class Feature(object):
17+
class Feature:
1818

1919
def __init__(self, nixfile, nixparent, h5group):
2020
util.check_entity_id(h5group.get_attr("entity_id"))

nixio/file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def can_read(nixfile):
5454
return False
5555

5656

57-
class FileMode(object):
57+
class FileMode:
5858
ReadOnly = 'r'
5959
ReadWrite = 'a'
6060
Overwrite = 'w'
@@ -82,7 +82,7 @@ def make_fcpl():
8282
return fcpl
8383

8484

85-
class File(object):
85+
class File:
8686

8787
def __init__(self, path, mode=FileMode.ReadWrite,
8888
compression=Compression.Auto,

nixio/hdf5/h5dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from .. import util
1313

1414

15-
class H5DataSet(object):
15+
class H5DataSet:
1616

1717
def __init__(self, parent, name, dtype=None, shape=None,
1818
compression=False):

nixio/hdf5/h5group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from .. import util
1717

1818

19-
class H5Group(object):
19+
class H5Group:
2020

2121
def __init__(self, parent, name, create=False):
2222
self._parent = parent

0 commit comments

Comments
 (0)