Datasets:

ArXiv:
License:
maximilianherde commited on
Commit
7f36fa7
1 Parent(s): b0c7127

Update assemble_data.py

Browse files
Files changed (1) hide show
  1. assemble_data.py +3 -3
assemble_data.py CHANGED
@@ -37,15 +37,15 @@ def assemble_data(input_dir, output_file):
37
  out_nc.createDimension("y", y_size)
38
  if num_channels is not None:
39
  out_nc.createVariable(
40
- nc_files[0].split("_")[0], dtype, ("sample", "time", "channel", "x", "y")
41
  )
42
  else:
43
  out_nc.createVariable(
44
- nc_files[0].split("_")[0], dtype, ("sample", "time", "x", "y")
45
  )
46
 
47
  out_nc.createVariable(
48
- "c", dtype, ("sample", "x", "y")
49
  )
50
 
51
  for i, nc_file in enumerate(nc_files):
 
37
  out_nc.createDimension("y", y_size)
38
  if num_channels is not None:
39
  out_nc.createVariable(
40
+ nc_files[0].split("_")[0], dtype, ("sample", "time", "channel", "x", "y"), chunksizes=(1, 1, num_channels, x_size, y_size)
41
  )
42
  else:
43
  out_nc.createVariable(
44
+ nc_files[0].split("_")[0], dtype, ("sample", "time", "x", "y"), chunksizes=(1, 1, x_size, y_size)
45
  )
46
 
47
  out_nc.createVariable(
48
+ "c", dtype, ("sample", "x", "y"), chunksizes=(1, x_size, y_size)
49
  )
50
 
51
  for i, nc_file in enumerate(nc_files):