Skip to content
Snippets Groups Projects
Commit 184181c8 authored by David Sehnal's avatar David Sehnal
Browse files

CIF parser fix

parent 3c5f5d3a
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -502,7 +502,7 @@ async function handleLoop(tokenizer: TokenizerState, ctx: FrameContext): Promise ...@@ -502,7 +502,7 @@ async function handleLoop(tokenizer: TokenizerState, ctx: FrameContext): Promise
moveNext(tokenizer); moveNext(tokenizer);
} }
const rowCountEstimate = name === 'atom_site' ? (tokenizer.data.length / 100) | 0 : 32; const rowCountEstimate = name === '_atom_site' ? (tokenizer.data.length / 100) | 0 : 32;
const tokens: Tokens[] = []; const tokens: Tokens[] = [];
const fieldCount = fieldNames.length; const fieldCount = fieldNames.length;
for (let i = 0; i < fieldCount; i++) tokens[i] = TokenBuilder.create(tokenizer, rowCountEstimate); for (let i = 0; i < fieldCount; i++) tokens[i] = TokenBuilder.create(tokenizer, rowCountEstimate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment