Skip to content

Commit

Permalink
Merge pull request #10 from hannahgz/master
Browse files Browse the repository at this point in the history
Modified line decode
  • Loading branch information
AvantiShri authored Jun 27, 2019
2 parents 62c3955 + 095a498 commit 7562c36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'include_package_data': True,
'description': 'Simulated datasets of DNA',
'download_url': 'https://github.com/kundajelab/simdna',
'version': '0.4.3.1',
'version': '0.4.3.2',
'packages': ['simdna', 'simdna.resources', 'simdna.synthetic'],
'package_data': {'simdna.resources': ['encode_motifs.txt.gz', 'HOCOMOCOv10_HUMAN_mono_homer_format_0.001.motif.gz']},
'setup_requires': [],
Expand Down
3 changes: 2 additions & 1 deletion simdna/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def perform_action_on_each_line_of_file(
i = 0;
for line in file_handle:
i += 1;
line = line.decode("utf-8")
if hasattr(line, "decode"):
line = line.decode("utf-8")
process_line(line, i, ignore_input_title,
transformation, action, progress_update)
print_progress(progress_update, i, progress_update_file_name)
Expand Down

0 comments on commit 7562c36

Please sign in to comment.