From 356df1b94f79553a42b17af87b11b12fa17cd532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Ballester?= Date: Sun, 17 Nov 2024 08:11:19 +0100 Subject: [PATCH] Removing boundary from dataloader because we did not need it --- code/datasets/cell_dataloader.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/code/datasets/cell_dataloader.py b/code/datasets/cell_dataloader.py index 73aa05c..f14fbc9 100644 --- a/code/datasets/cell_dataloader.py +++ b/code/datasets/cell_dataloader.py @@ -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 @@ -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