Skip to content

Commit

Permalink
removed unecessary comments2
Browse files Browse the repository at this point in the history
  • Loading branch information
eodole committed Jan 4, 2025
1 parent 9f6a511 commit aebf317
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bayesflow/adapters/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ def __setitem__(self, index, new_value):
if not isinstance(new_value, Adapter):
raise TypeError("new_value must be an Adapter instance")

# new_transform = new_value.transforms

# To be tested
if len(new_value.transforms) == 0:
raise ValueError(
"new_value is an Adapter instance without any specified transforms, new_value Adapter must contain at least one transform."
Expand Down Expand Up @@ -136,7 +133,7 @@ def apply(
self.transforms.append(transform)
return self

# Begin of transforms derived from transform classes

def as_set(self, keys: str | Sequence[str]):
if isinstance(keys, str):
keys = [keys]
Expand Down

0 comments on commit aebf317

Please sign in to comment.