Explorar el Código

handle deuterated

Sebastian Bittrich hace 3 años
padre
commit
861f665ab3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/mol-io/writer/ligand-encoder.ts

+ 1 - 1
src/mol-io/writer/ligand-encoder.ts

@@ -136,7 +136,7 @@ export abstract class LigandEncoder implements Encoder<string> {
         if (this.hydrogens) {
         if (this.hydrogens) {
             return false;
             return false;
         }
         }
-        return type_symbol === 'H';
+        return type_symbol === 'H' || type_symbol === 'D';
     }
     }
 
 
     private getSortedFields<Ctx>(instance: Category.Instance<Ctx>, names: string[]) {
     private getSortedFields<Ctx>(instance: Category.Instance<Ctx>, names: string[]) {