Skip to content

Commit

Permalink
Move disable protected-access from pylintrc to offending files with t…
Browse files Browse the repository at this point in the history
…odo message.
  • Loading branch information
mihaeladuta committed Nov 8, 2024
1 parent 3efb6eb commit 44c2fa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ disable=
fixme,
import-error,
duplicate-code,
protected-access,
too-many-locals,
too-few-public-methods,
too-many-instance-attributes,
Expand Down
5 changes: 5 additions & 0 deletions l2gv2/patch/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,13 @@ def create_overlapping_patches(

if isinstance(partition_tensor, torch.Tensor):
partition_tensor = partition_tensor.cpu()

# TODO: fix protected-access
# pylint: disable=protected-access
graph = graph.to(NPGraph)._jitgraph
patch_graph = patch_graph.to(NPGraph)._jitgraph
# pylint: enable=protected-access

parts = Partition(partition_tensor)
partition_tensor = partition_tensor.numpy()
patches = numba.typed.List(np.asanyarray(p) for p in parts)
Expand Down

0 comments on commit 44c2fa1

Please sign in to comment.