File tree 1 file changed +5
-5
lines changed
src/fairchem/core/datasets
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -471,23 +471,23 @@ class AseDBDataset(AseAtomsDataset):
471
471
def _load_dataset_get_ids (self , config : dict ) -> list [int ]:
472
472
if isinstance (config ["src" ], list ):
473
473
filepaths = []
474
- for path in config ["src" ]:
474
+ for path in sorted ( config ["src" ]) :
475
475
if os .path .isdir (path ):
476
- filepaths .extend (glob (f"{ path } /*" ))
476
+ filepaths .extend (sorted ( glob (f"{ path } /*" ) ))
477
477
elif os .path .isfile (path ):
478
478
filepaths .append (path )
479
479
else :
480
480
raise RuntimeError (f"Error reading dataset in { path } !" )
481
481
elif os .path .isfile (config ["src" ]):
482
482
filepaths = [config ["src" ]]
483
483
elif os .path .isdir (config ["src" ]):
484
- filepaths = glob (f'{ config ["src" ]} /*' )
484
+ filepaths = sorted ( glob (f'{ config ["src" ]} /*' ) )
485
485
else :
486
- filepaths = glob (config ["src" ])
486
+ filepaths = sorted ( glob (config ["src" ]) )
487
487
488
488
self .dbs = []
489
489
490
- for path in sorted ( filepaths ) :
490
+ for path in filepaths :
491
491
try :
492
492
self .dbs .append (self .connect_db (path , config .get ("connect_args" , {})))
493
493
except ValueError :
You can’t perform that action at this time.
0 commit comments