Skip to content

Commit

Permalink
Fix errors caused by names containing / (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
peastman authored Jul 9, 2022
1 parent 65feb5b commit f23c8b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def compute_reference_energy(smiles):
qcvars = [r.extras['qcvars'] for r in group_recs]
smiles = molecules[0].extras['canonical_isomeric_explicit_hydrogen_mapped_smiles']
ref_energy = compute_reference_energy(smiles)
name = name.replace('/', '') # Remove stereochemistry markers that h5py interprets as path separators
group = outputfile.create_group(name)
group.create_dataset('subset', data=[subset], dtype=h5py.string_dtype())
group.create_dataset('smiles', data=[smiles], dtype=h5py.string_dtype())
Expand Down

0 comments on commit f23c8b2

Please sign in to comment.