Skip to content

Commit

Permalink
fix #100: fix region type str -> obj conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlovicmilena committed Aug 18, 2021
1 parent d114fd5 commit 07fe65c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def __init__(self,
self.j_allele = j_allele
self.chain = Chain.get_chain(chain) if chain and isinstance(chain, str) else chain if isinstance(chain, Chain) else None
self.count = int(float(count)) if isinstance(count, str) else count
self.frame_type = SequenceFrameType(frame_type) if frame_type and isinstance(frame_type, str) else frame_type if isinstance(frame_type, SequenceFrameType) else None
self.region_type = RegionType(region_type) if region_type and isinstance(region_type, str) else region_type if isinstance(region_type, RegionType) else None
self.frame_type = SequenceFrameType(frame_type) if frame_type and isinstance(frame_type, str) and frame_type != 'nan' else frame_type if isinstance(frame_type, SequenceFrameType) else None
self.region_type = RegionType(region_type) if region_type and isinstance(region_type, str) and region_type != 'nan' else region_type if isinstance(region_type, RegionType) else None
self.cell_id = cell_id
self.custom_params = custom_params if custom_params is not None else {}

Expand Down
2 changes: 1 addition & 1 deletion immuneML/environment/Constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Constants:

VERSION = "2.0.3"
VERSION = "2.0.4"

# encoding constants
FEATURE_DELIMITER = "///"
Expand Down

0 comments on commit 07fe65c

Please sign in to comment.