Skip to content

Commit

Permalink
removed print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
eodole committed Dec 17, 2024
1 parent 4fce744 commit 78dd5d5
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions bayesflow/adapters/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,7 @@ def __getitem__(self, index):
if index.start > index.stop:
raise IndexError("Index slice must be positive integers such that a < b for adapter[a:b]")
if index.stop < len(self.transforms):
# print("What is the slice?")
# print(index)
# print(type(index))
# check that the slice is in range
sliced_transforms = self.transforms[index]
# print("Are the sliced transforms a sequence")
# print(isinstance(sliced_transforms, Sequence))
# print("What is in the slice?")
# print(sliced_transforms)
new_adapter = Adapter(transforms=sliced_transforms)
return new_adapter
else:
Expand Down Expand Up @@ -137,11 +129,6 @@ def __setitem__(self, index, new_value):
raise IndexError("Index out of range.")
# could add that if the index is out of range, like index == len
# then we just add the transform
print("what is self.transforms[index]?")
print(self.transforms[index])
print("what is the value of the newvalue")
print(new_transform)
print(type(new_transform))

self.transforms[index] = new_transform
else:
Expand Down

0 comments on commit 78dd5d5

Please sign in to comment.