We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b3129d commit 715f073Copy full SHA for 715f073
hbp.py
@@ -0,0 +1,3 @@
1
+# Created by Pablo Martinez-Bulit on 06/06/2024
2
+# The Cambridge Crystallographic Data Centre
3
+# pbulit@ccdc.cam.ac.uk
scripts/mof_solvent_removal_2017_chem_mater_publication/Command_prompt_MOF_solvent_removal.py
@@ -45,7 +45,10 @@
45
46
args = arg_handler.parse_args()
47
if not args.output_directory:
48
- args.output_directory = os.path.dirname(args.input_file)
+ args.output_directory = os.path.abspath(os.path.dirname(args.input_file))
49
+
50
+if not os.path.exists(args.output_directory):
51
+ os.makedirs(args.output_directory)
52
53
# Define the solvent smiles patterns
54
if not args.solvent_file:
0 commit comments