Skip to content

Commit 55ac262

Browse files
committed
fix: ensure database is useable
1 parent 5ec8acc commit 55ac262

File tree

3 files changed

+227
-252
lines changed

3 files changed

+227
-252
lines changed

data/autoLabel/createJson.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ async function createAutoLabelingJson() {
2929
const canonizer = new Canonizer(molecule, { encodeAtomCustomLabels: true });
3030
const idCode = canonizer.getIDCode();
3131

32+
try {
33+
Molecule.fromIDCode(idCode);
34+
} catch {
35+
console.log(molfile);
36+
continue;
37+
}
38+
3239
const coordinates = canonizer.getEncodedCoordinates(false);
3340

3441
moleculeDatabase.push({

0 commit comments

Comments
 (0)