Skip to content

Instantly share code, notes, and snippets.

View mahyar-osn's full-sized avatar
🎯
Focusing

Mahyar Osanlouy mahyar-osn

🎯
Focusing
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mahyar-osn
mahyar-osn / data.py
Created December 4, 2018 22:07
Methods to create PyTable objects.
import os
import tables
import numpy as np
# from .normalize import normalize_data_storage, reslice_image_set
from normalize import normalize_data_storage, reslice_image_set
def create_data_file(out_file, n_channels, n_samples, image_shape):
hdf5_file = tables.open_file(out_file, mode='w')