|
1 | 1 | import asyncio |
2 | | -import os |
3 | 2 | from datetime import datetime |
4 | 3 | from logging import getLogger |
5 | 4 | from pathlib import Path |
@@ -609,10 +608,6 @@ async def request_spa_preprocessing( |
609 | 608 |
|
610 | 609 | db.close() |
611 | 610 |
|
612 | | - if not mrc_out.parent.exists(): |
613 | | - mrc_out_dir = Path(secure_filename(str(mrc_out))).parent |
614 | | - mrc_out_dir.mkdir(parents=True, exist_ok=True) |
615 | | - os.chmod(mrc_out_dir, mode=machine_config.mkdir_chmod) |
616 | 611 | recipe_name = machine_config.recipes.get( |
617 | 612 | "em-spa-preprocess", "em-spa-preprocess" |
618 | 613 | ) |
@@ -837,9 +832,6 @@ async def request_tomography_preprocessing( |
837 | 832 | dcid = data_collection[0][1].id |
838 | 833 | appid = data_collection[0][3].id |
839 | 834 | murfey_ids = _murfey_id(appid, db, number=1, close=False) |
840 | | - if not mrc_out.parent.exists(): |
841 | | - mrc_out.parent.mkdir(parents=True, exist_ok=True) |
842 | | - os.chmod(mrc_out.parent, mode=machine_config.mkdir_chmod) |
843 | 835 |
|
844 | 836 | session_processing_parameters = db.exec( |
845 | 837 | select(SessionProcessingParameters).where( |
@@ -990,9 +982,6 @@ def register_completed_tilt_series( |
990 | 982 | / "tomograms" |
991 | 983 | / f"{ts.tag}_stack.mrc" |
992 | 984 | ) |
993 | | - if not stack_file.parent.exists(): |
994 | | - stack_file.parent.mkdir(parents=True) |
995 | | - os.chmod(stack_file.parent, mode=machine_config.mkdir_chmod) |
996 | 985 | tilt_offset = midpoint([float(get_angle(t)) for t in tilts]) |
997 | 986 | zocalo_message = { |
998 | 987 | "recipes": ["em-tomo-align"], |
|
0 commit comments