Skip to content

Commit

Permalink
Removing boundary from dataloader because we did not need it
Browse files Browse the repository at this point in the history
  • Loading branch information
rballeba committed Nov 17, 2024
1 parent f59ca10 commit 356df1b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions code/datasets/cell_dataloader.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import numpy as np
import torch
from toponetx import SimplicialComplex
from torch.utils.data import DataLoader
from torch_geometric.data import Data
from typing import List
Expand All @@ -15,11 +14,6 @@ def __init__(self, dataset, **kwargs):
super().__init__(dataset, collate_fn=collate_fn, **kwargs)


def get_boundary_index(sc: Data, dim: int):
if dim == 0:
return None # No boundary for vertices


def _get_shared_simplices(data: Data, adj_index, dim: int, cofaces: bool = False):
simplices_dim = {i: simplex for i, simplex in enumerate(data.sc.skeleton(dim))}
simplices_related_dim = dim + 1 if cofaces else dim - 1
Expand Down

0 comments on commit 356df1b

Please sign in to comment.