Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 306a2ae6 authored by NADAL Morgane's avatar NADAL Morgane
Browse files

changed __slots__ initialization

parent c2da34ac
No related branches found
No related tags found
No related merge requests found
......@@ -57,10 +57,6 @@ class extension_t(glial_cmp_t):
super().__init__()
for slot in self.__class__.__slots__:
setattr(self, slot, None)
# self.end_points = None
# self.scales = None
# self.soma_uid = None
# self.__cache__ = None
@classmethod
def FromMap(cls, lmp: array_t, scales: array_t, uid: int) -> extension_t:
......
......@@ -47,11 +47,11 @@ class glial_cmp_t:
#
for slot in self.__class__.__slots__:
setattr(self, slot, None)
# self.uid = None # type: Optional[int]
# self.sites = None # type: Optional[np_array_picker_h]
# self.connection_path = None # type: Optional[Dict[int, py_array_picker_h]]
# self.extensions = None # type: Optional[List[glial_cmp_t]]
# self.img_shape = None # type: Optional[Tuple[int, ...]]
# self.uid # type: Optional[int]
# self.sites # type: Optional[np_array_picker_h]
# self.connection_path # type: Optional[Dict[int, py_array_picker_h]]
# self.extensions # type: Optional[List[glial_cmp_t]]
# self.img_shape # type: Optional[Tuple[int, ...]]
def InitializeFromMap(self, bmp: array_t, uid: int) -> None:
#
......
......@@ -58,11 +58,7 @@ class soma_t(glial_cmp_t):
super().__init__()
for slot in self.__class__.__slots__:
setattr(self, slot, None)
# self.contour_points = None
# self.centroid = None
# self.skl_graph = None
self.ext_roots = []
# self.graph_roots = None
@classmethod
def FromMap(cls, lmp: array_t, uid: int) -> soma_t:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment