Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
rfma23 authored Aug 6, 2020
1 parent 0e8accf commit 6136c4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aertb/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .file_loader import FileLoader
from .viz import make_gif
from .types import event_dtype
from .hdf5tools import HDF5FileIterator
from .hdf5tools import HDF5FileIterator, HDF5File
2 changes: 1 addition & 1 deletion aertb/core/hdf5tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,4 @@ def fixed_train_test_split(self, n_train, n_test, rand=23):
random.Random(rand).shuffle(train_samples)
random.Random(rand + 1).shuffle(test_samples)

return HDF5FileIterator(self.file, train_samples), HDF5FileIterator(self.file, test_samples)
return HDF5FileIterator(self.file, train_samples), HDF5FileIterator(self.file, test_samples)
2 changes: 1 addition & 1 deletion aertb/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
('x_', np.float32), ('y_', np.float32),
('z_', np.float32), ('d_', np.float32)])

Sample = namedtuple('Sample', ['name', 'label', 'events'])
Sample = namedtuple('Sample', ['group', 'name'])
EvSample = namedtuple('EvSample', ['label', 'name', 'events'])
# =============================================================================

0 comments on commit 6136c4b

Please sign in to comment.