Skip to content

Commit

Permalink
in case of unicode filenames, we need a str to compare for known ones.
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed Jun 19, 2018
1 parent 50d3db1 commit b85c3a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyemma/coordinates/data/util/reader_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def create_file_reader(input_files, topology, featurizer, chunksize=None, **kw):
# TODO: this does not handle suffixes like .xyz.gz (rare)
_, suffix = os.path.splitext(input_list[0])

suffix = str(suffix)

# check: do all files have the same file type? If not: raise ValueError.
if all(item.endswith(suffix) for item in input_list):

Expand Down

0 comments on commit b85c3a3

Please sign in to comment.