File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,12 @@ def test_proof_step_data_gen(self):
3939 dirs = sorted (os .listdir (".log/data_generation/benchmark/simple_benchmark_lean" ))
4040 print (dirs )
4141 last_dir = dirs [- 1 ]
42- train_data = os .path .join (".log/data_generation/benchmark/simple_benchmark_lean" , last_dir , "train" )
43- data_gen_file = os .path .join (train_data , "local_data_0000000025.json" )
42+ train_data = os .path .join (".log/data_generation/benchmark/simple_benchmark_lean" , last_dir , "train" )
43+ list_files = os .listdir (train_data )
44+ data_files = [f for f in list_files if f .endswith (".json" ) and f .startswith ("local_data_" )]
45+ assert len (data_files ) == 1 , f"No files found in the train directory. Expected one file. Found: { data_files } "
46+ print (data_files [0 ])
47+ data_gen_file = os .path .join (train_data , data_files [0 ])
4448 print ("Data Gen File:" , data_gen_file )
4549 with open (data_gen_file , "r" ) as f :
4650 print (f .read ())
You can’t perform that action at this time.
0 commit comments