Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #223 from delira-dev/transform_typecheckfix
Browse files Browse the repository at this point in the history
Fix Type Checks
  • Loading branch information
justusschock authored Oct 7, 2019
2 parents 7ab64d6 + 90bd460 commit 47d2a14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions delira/data_loading/data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ class defining the sampling strategy

self.data = data

if not inspect.isclass(sampler_cls) and issubclass(sampler_cls,
AbstractSampler):
if not (inspect.isclass(sampler_cls) and issubclass(sampler_cls,
AbstractSampler)):
raise TypeError

self.sampler_cls = sampler_cls
Expand Down Expand Up @@ -302,8 +302,8 @@ def transforms(self, new_transforms):
"""

if new_transforms is not None or isinstance(new_transforms,
AbstractTransform):
if new_transforms is not None and not isinstance(
new_transforms, AbstractTransform):
raise TypeError

self._transforms = new_transforms
Expand Down

0 comments on commit 47d2a14

Please sign in to comment.