Browse Source

debugging wrapValue in helper.ts : property.head -> property.head.name : This enables secondary structure selection for VMD via valuesTest in helper.ts

yakomaxa 2 years ago
parent
commit
4b6f539ba3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mol-script/transpilers/helper.ts

+ 1 - 1
src/mol-script/transpilers/helper.ts

@@ -337,7 +337,7 @@ export function asAtoms(e: Expression) {
 }
 }
 
 
 export function wrapValue(property: any, value: any, sstrucDict?: any) {
 export function wrapValue(property: any, value: any, sstrucDict?: any) {
-    switch (property.head) {
+    switch (property.head.name) {
         case 'structure-query.atom-property.macromolecular.label_atom_id':
         case 'structure-query.atom-property.macromolecular.label_atom_id':
             return B.atomName(value);
             return B.atomName(value);
         case 'structure-query.atom-property.core.element-symbol':
         case 'structure-query.atom-property.core.element-symbol':