Skip to content

Commit

Permalink
Bump up version to 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
smelandr committed May 11, 2017
1 parent 44ed203 commit b831086
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion nmrstarlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
information.
"""

__version__ = "2.0.0"
__version__ = "2.0.1"
2 changes: 1 addition & 1 deletion nmrstarlib/bmrblex.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

def transform_text(input_txt):
"""Transforms text into :py:class:`~collections.deque`, pre-processes
multiline strings, and removes comments.
multiline strings.
:param str or bytes input_txt: Input text.
:return: Double-ended queue of single characters and multiline strings.
Expand Down
10 changes: 5 additions & 5 deletions nmrstarlib/cbmrblex.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nmrstarlib/cbmrblex.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ from collections import deque

def transform_text(input_txt):
"""Transforms text into :py:class:`~collections.deque`, pre-processes
multiline strings, and removes comments.
multiline strings.
:param str or bytes input_txt: Input text.
:return: Double-ended queue of single characters and multiline strings.
Expand Down
6 changes: 1 addition & 5 deletions nmrstarlib/nmrstarlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"""

from __future__ import print_function, division
from collections import OrderedDict

import sys
import os
Expand All @@ -31,7 +32,6 @@
import bz2
import gzip
import tarfile
from collections import OrderedDict
import pprint


Expand Down Expand Up @@ -313,10 +313,6 @@ def _build_loop(self, lexer):
assert float(len(values)/len(fields)).is_integer(), \
"Error in loop construction: number of fields must be equal to number of values."

# divide list of loop values into chunks corresponding to fields
# values = [values[i:i+len(fields)] for i in range(0, len(values), len(fields))]
# return fields, values

values = [OrderedDict(zip(fields, values[i:i + len(fields)])) for i in range(0, len(values), len(fields))]
return fields, values

Expand Down

0 comments on commit b831086

Please sign in to comment.