소스 검색

fix typos in xyz format

Alexander Rose 4 년 전
부모
커밋
c3c22ee3bc
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/mol-model-formats/structure/xyz.ts

+ 3 - 3
src/mol-model-formats/structure/xyz.ts

@@ -84,7 +84,7 @@ function getModels(mol: XyzFile, ctx: RuntimeContext) {
         atom_site
     });
 
-    return createModels(basics, MolFormat.create(mol), ctx);
+    return createModels(basics, XyzFormat.create(mol), ctx);
 }
 
 //
@@ -93,9 +93,9 @@ export { XyzFormat };
 
 type XyzFormat = ModelFormat<XyzFile>
 
-namespace MolFormat {
+namespace XyzFormat {
     export function is(x?: ModelFormat): x is XyzFormat {
-        return x?.kind === 'mol';
+        return x?.kind === 'xyz';
     }
 
     export function create(mol: XyzFile): XyzFormat {