mirror of
https://github.com/c-sooyoung/bo-ptycho.git
synced 2026-11-16 04:17:59 +09:00
Removed saving .mat files; takes up too much space
This commit is contained in:
1 parent
f96018ed3c
commit
e6226a4771
1 file changed
+2
-2
@@ -81,9 +81,9 @@ class FoldSlicePtychoEngine(PtychoEngine):
|
|||||||
self._output = loadmat(mat_path)
|
self._output = loadmat(mat_path)
|
||||||
|
|
||||||
log_fourier_error = self._log_fourier_metric()
|
log_fourier_error = self._log_fourier_metric()
|
||||||
os.makedirs(os.path.join(self.config['io']['result_dir'], "mat"), exist_ok=True)
|
# os.makedirs(os.path.join(self.config['io']['result_dir'], "mat"), exist_ok=True)
|
||||||
os.makedirs(os.path.join(self.config['io']['result_dir'], "tiff"), exist_ok=True)
|
os.makedirs(os.path.join(self.config['io']['result_dir'], "tiff"), exist_ok=True)
|
||||||
shutil.copy(mat_path, os.path.join(self.config['io']['result_dir'], "mat", f"{log_fourier_error:.4f}_{run_id}.mat"))
|
# shutil.copy(mat_path, os.path.join(self.config['io']['result_dir'], "mat", f"{log_fourier_error:.4f}_{run_id}.mat")) # saving .mat files takes a lot of space (expect 20+ GB for 64*64 scan size, 300 iterations)
|
||||||
shutil.copy(image_path, os.path.join(self.config['io']['result_dir'], "tiff", f"{log_fourier_error:.4f}_{run_id}.tiff"))
|
shutil.copy(image_path, os.path.join(self.config['io']['result_dir'], "tiff", f"{log_fourier_error:.4f}_{run_id}.tiff"))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user