Skip to content

Commit

Permalink
Merge pull request #9 from SomaLogic/master
Browse files Browse the repository at this point in the history
Release of 0.4.1: Bugfix to ADAT writing in Windows environment
  • Loading branch information
tjohnson-somalogic authored Jan 12, 2023
2 parents 7e94bc1 + 00b95f1 commit 3894833
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions canopy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from canopy.adat import Adat
from canopy.io.adat.file import read_file, read_adat
from canopy.tools.adat_concatenation import concatenate_adats, smart_adat_concatenation
from canopy.annotations import Annotations
2 changes: 1 addition & 1 deletion canopy/adat.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def to_adat(self, path_or_buf: Union[str, TextIO], round_rfu: bool = True, conve
"""

if type(path_or_buf) == str:
with open(path_or_buf, 'w') as f:
with open(path_or_buf, 'w', newline='', encoding='utf-8') as f:
io.adat.file.write_adat(self, f, round_rfu, convert_to_v3_seq_ids)
else:
io.adat.file.write_adat(self, path_or_buf, round_rfu, convert_to_v3_seq_ids)
2 changes: 2 additions & 0 deletions canopy/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ class AdatKeyError(Exception):
class AdatMetaError(Exception):
pass

class AnnotationsLiftingError(Exception):
pass
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
setup(
name='canopy',
python_requires='>3.8.0',
version='0.4',
version='0.4.1',
packages=find_packages(),
url='http://confluence.sladmin.com/display/INGEN/Canopy',
license='',
Expand Down

0 comments on commit 3894833

Please sign in to comment.