Skip to content

Commit

Permalink
copilot changed an if to if true so things were breaking! should be o…
Browse files Browse the repository at this point in the history
…k now
  • Loading branch information
mooniean committed Mar 4, 2024
1 parent 19bb4b3 commit 58bd6b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/caked/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ def process(self, paths: list[str], datatype: str):
transforms.remove("normalise")

gaussianblur = False
if True:
if "gaussianblur" in transforms:
gaussianblur = True
transforms.remove("gaussianblur")

shiftmin = False
if True:
if "shiftmin" in transforms:
shiftmin = True
transforms.remove("shiftmin")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_disk_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def test_processing_after_load():
assert not test_loader.dataset.normalise
assert not test_loader.dataset.shiftmin
assert not test_loader.dataset.gaussianblur
test_loader.transformations = TRANSFORM_ALL_RESCALE
test_loader.transformations = ["normalise", "gaussianblur", "shiftmin", "rescale=0"]
pre_dataset = test_loader.dataset
test_loader.load(datapath=TEST_DATA_MRC, datatype=DATATYPE_MRC)
post_dataset = test_loader.dataset
Expand Down

0 comments on commit 58bd6b7

Please sign in to comment.