From 59b894d56628cf14b4c547e11cb8b3c3117b637a Mon Sep 17 00:00:00 2001 From: frederick Date: Wed, 16 Sep 2026 17:02:30 +0100 Subject: [PATCH] fixing a bug where using os.mkdir was not correctly used, now instead replacing with os.makedirs, also changing template names to be clearer what to use --- e02/schema/mib2x_auto_Schema.json | 2 +- e02/templates/mib2x-auto.yaml | 6 +++--- e02/templates/mib2x.yaml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/e02/schema/mib2x_auto_Schema.json b/e02/schema/mib2x_auto_Schema.json index 5343201..889590e 100644 --- a/e02/schema/mib2x_auto_Schema.json +++ b/e02/schema/mib2x_auto_Schema.json @@ -69,7 +69,7 @@ "DEBUG": { "type": "integer", - "default": 1 + "default": 0 } } } diff --git a/e02/templates/mib2x-auto.yaml b/e02/templates/mib2x-auto.yaml index 0af7a80..5eef390 100644 --- a/e02/templates/mib2x-auto.yaml +++ b/e02/templates/mib2x-auto.yaml @@ -5,7 +5,7 @@ metadata: labels: workflows.diamond.ac.uk/science-group-imaging: "true" annotations: - workflows.argoproj.io/title: ePSIC mib automatic conversion + workflows.argoproj.io/title: ePSIC mib Batch conversion workflows.argoproj.io/description: | Convert MIB file to hdf5/hspy files workflows.diamond.ac.uk/repository: "https://github.com/DiamondLightSource/imaging-workflows" @@ -126,14 +126,14 @@ spec: logging.append('\nThe following path exists: %s\nskipping creation of folder\n' %dest_path) else: logging.append('\nThe following path does not exists: %s\nTherefore creating this folder now...\n' %dest_path) - os.mkdir(dest_path) + os.makedirs(dest_path) os.chdir(dest_path) logging.append('***\nsearching destination path for already converted files: %s\n***' % dest_path) #ToDO wrap the rest of the function within this as means no other files have been created if not os.path.exists(dest_path): - os.mkdir(dest_path) + os.makdirs(dest_path) logging.append('the following folder has been created: %s' % dest_path) for num, file in enumerate(sorted(list(glob.glob('*/**data.hdf5*')))): diff --git a/e02/templates/mib2x.yaml b/e02/templates/mib2x.yaml index de14d6a..cc06410 100644 --- a/e02/templates/mib2x.yaml +++ b/e02/templates/mib2x.yaml @@ -5,7 +5,7 @@ metadata: labels: workflows.diamond.ac.uk/science-group-imaging: "true" annotations: - workflows.argoproj.io/title: ePSIC mib conversion + workflows.argoproj.io/title: ePSIC single mib conversion workflows.argoproj.io/description: | Convert MIB file to hdf5/hspy files workflows.diamond.ac.uk/repository: "https://github.com/DiamondLightSource/imaging-workflows"