]> code.communitydata.science - cdsc_reddit.git/blobdiff - clustering/lsi_base.py
Merge branch 'excise_reindex' of code:cdsc_reddit into excise_reindex
[cdsc_reddit.git] / clustering / lsi_base.py
index f07bca6f01d61f8d6338f4f4adac6a4cf9536046..80b7101a3723a3910a9b10d7c1ad64fe97db00f8 100644 (file)
@@ -18,10 +18,11 @@ class lsi_grid_sweep(grid_sweep):
         self.subsweep = subsweep
         inpath = Path(inpath)
         if lsi_dimensions == 'all':
         self.subsweep = subsweep
         inpath = Path(inpath)
         if lsi_dimensions == 'all':
-            lsi_paths = list(inpath.glob("*"))
+            lsi_paths = list(inpath.glob("*.feather"))
         else:
             lsi_paths = [inpath / (str(dim) + '.feather') for dim in lsi_dimensions]
 
         else:
             lsi_paths = [inpath / (str(dim) + '.feather') for dim in lsi_dimensions]
 
+        print(lsi_paths)
         lsi_nums = [int(p.stem) for p in lsi_paths]
         self.hasrun = False
         self.subgrids = [self.subsweep(lsi_path, outpath,  lsi_dim, *args, **kwargs) for lsi_dim, lsi_path in zip(lsi_nums, lsi_paths)]
         lsi_nums = [int(p.stem) for p in lsi_paths]
         self.hasrun = False
         self.subgrids = [self.subsweep(lsi_path, outpath,  lsi_dim, *args, **kwargs) for lsi_dim, lsi_path in zip(lsi_nums, lsi_paths)]

Community Data Science Collective || Want to submit a patch?