Skip to content
Snippets Groups Projects
Commit 80289922 authored by tomrink's avatar tomrink
Browse files

minor...

parent 3374b899
No related branches found
No related tags found
No related merge requests found
...@@ -508,7 +508,7 @@ class IcingIntensityFCN: ...@@ -508,7 +508,7 @@ class IcingIntensityFCN:
print('num test samples: ', tst_idxs.shape[0]) print('num test samples: ', tst_idxs.shape[0])
print('setup_pipeline: Done') print('setup_pipeline: Done')
def setup_test_pipeline(self, filename_l1b, filename_l2, seed=None, shuffle=False): def setup_test_pipeline(self, filename_l1b, filename_l2):
if filename_l1b is not None: if filename_l1b is not None:
self.h5f_l1b_tst = h5py.File(filename_l1b, 'r') self.h5f_l1b_tst = h5py.File(filename_l1b, 'r')
...@@ -522,10 +522,6 @@ class IcingIntensityFCN: ...@@ -522,10 +522,6 @@ class IcingIntensityFCN:
time = h5f['time'] time = h5f['time']
tst_idxs = np.arange(time.shape[0]) tst_idxs = np.arange(time.shape[0])
self.num_data_samples = len(tst_idxs) self.num_data_samples = len(tst_idxs)
if seed is not None:
np.random.seed(seed)
if shuffle:
np.random.shuffle(tst_idxs)
self.get_test_dataset(tst_idxs) self.get_test_dataset(tst_idxs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment