Skip to content

Commit

Permalink
Corrected bug in transform_info
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Burton committed May 6, 2021
1 parent 663788a commit cca4c21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cytopy/data/gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def transform_info(self) -> (dict, dict):
Transform dict ({x-variable: transform, y-variable: transform}),
Transform kwargs dict ({x-variable: transform kwargs, y-variable: transform kwargs})
"""
transforms = [self.transform_y, self.transform_y]
transforms = [self.transform_x, self.transform_y]
transform_kwargs = [self.transform_x_kwargs, self.transform_y_kwargs]
transforms = {k: v for k, v in zip([self.x, self.y], transforms) if k is not None}
transform_kwargs = {k: v for k, v in zip([self.x, self.y], transform_kwargs) if k is not None}
Expand Down
2 changes: 1 addition & 1 deletion cytopy/data/gating_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ def edit_gate(self,
features=["x"],
method=transforms.get(gate.x),
**transform_kwargs.get(gate.x)).x.values[0]
yc = apply_transform(pd.DataFrame({"y": [x_values]}),
yc = apply_transform(pd.DataFrame({"y": [y_values]}),
features=["y"],
method=transforms.get(gate.y),
**transform_kwargs.get(gate.y)).y.values[0]
Expand Down

0 comments on commit cca4c21

Please sign in to comment.