rvalerio commited on
Commit
9904afd
1 Parent(s): 0ce0300

commit files to HF hub

Browse files
Files changed (1) hide show
  1. windtunnel_dataset.py +14 -8
windtunnel_dataset.py CHANGED
@@ -7,14 +7,20 @@ class WindtunnelDataset(datasets.GeneratorBasedBuilder):
7
 
8
  def _info(self):
9
  return datasets.DatasetInfo(
10
- features=datasets.Features({
11
- 'coeff': datasets.Value('dict'), # JSON file as a dictionary
12
- 'input': datasets.Value('dict'), # JSON file as a dictionary
13
- 'input_mesh': datasets.Value('binary'), # OBJ mesh file as binary
14
- 'openfoam_mesh': datasets.Value('binary'), # OBJ mesh file as binary
15
- 'pressure_field_mesh': datasets.Value('binary'),# VTK file as binary
16
- 'streamlines_mesh': datasets.Value('binary'), # PLY file as binary
17
- })
 
 
 
 
 
 
18
  )
19
 
20
  def _split_generators(self, dl_manager):
 
7
 
8
  def _info(self):
9
  return datasets.DatasetInfo(
10
+ features=datasets.Features(
11
+ {
12
+ "coeff": datasets.Value("dict"), # JSON file as a dictionary
13
+ # 'input': datasets.Value('dict'), # JSON file as a dictionary
14
+ "input_mesh": datasets.Value("binary"), # OBJ mesh file as binary
15
+ "openfoam_mesh": datasets.Value(
16
+ "binary"
17
+ ), # OBJ mesh file as binary
18
+ "pressure_field_mesh": datasets.Value(
19
+ "binary"
20
+ ), # VTK file as binary
21
+ "streamlines_mesh": datasets.Value("binary"), # PLY file as binary
22
+ }
23
+ )
24
  )
25
 
26
  def _split_generators(self, dl_manager):