Skip to content

Commit

Permalink
Use proper compatibility version for new features.
Browse files Browse the repository at this point in the history
  • Loading branch information
1313e committed Dec 18, 2020
1 parent c80164d commit 32d9ebf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion prism/_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2437,7 +2437,7 @@ def analyze(self, *, impl_cut=None):
n_impl_sam = len(impl_sam)

# If only a single sample is plausible, remove it
if(n_impl_sam == 1):
if(n_impl_sam == 1): # pragma: no cover
n_impl_sam = 0
impl_sam = impl_sam[[]]

Expand Down
8 changes: 4 additions & 4 deletions prism/emulator/_emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ def _read_data_idx(self, emul_s_group):
# If there is a single part, save it instead of a tuple
if(idx_len == 1):
# TODO: Remove this in v1.4.0
if self._check_future_compat('1.3.2', '1.4.0'):
if self._check_future_compat('1.3.2.dev0', '1.4.0'):
data_idx = literal_eval(
emul_s_group.attrs['data_idx'].decode('utf-8'))

Expand All @@ -942,7 +942,7 @@ def _read_data_idx(self, emul_s_group):
# Loop over all parts
for key in idx_keys:
# TODO: Remove this in v1.4.0
if self._check_future_compat('1.3.2', '1.4.0'):
if self._check_future_compat('1.3.2.dev0', '1.4.0'):
data_idx.append(literal_eval(
emul_s_group.attrs[key].decode('utf-8')))

Expand Down Expand Up @@ -985,7 +985,7 @@ def _write_data_idx(self, emul_s_group, data_idx):
# Loop over all parts
for key, idx in zip(idx_keys, data_idx):
# TODO: Remove this in v1.4.0
if self._check_future_compat('1.3.2', '1.4.0'):
if self._check_future_compat('1.3.2.dev0', '1.4.0'):
emul_s_group.attrs[key] =\
"{!r}".format(idx).encode('ascii', 'ignore')

Expand All @@ -999,7 +999,7 @@ def _write_data_idx(self, emul_s_group, data_idx):
# If data_idx contains a single part, save it
else:
# TODO: Remove this in v1.4.0
if self._check_future_compat('1.3.2', '1.4.0'):
if self._check_future_compat('1.3.2.dev0', '1.4.0'):
emul_s_group.attrs['data_idx'] =\
"{!r}".format(data_idx).encode('ascii', 'ignore')

Expand Down

0 comments on commit 32d9ebf

Please sign in to comment.