@@ -52,13 +52,11 @@ class CellNetwork(Datastructure):
5252 Default values for face attributes.
5353 default_cell_attributes: dict, optional
5454 Default values for cell attributes.
55- **kwargs : dict , optional
56- Additional attributes for the data structure itself .
55+ name : str , optional
56+ The name of the cell network .
5757
5858 Attributes
5959 ----------
60- attributes : dict[str, Any]
61- General attributes of the data structure which will be included in the data representation.
6260 default_vertex_attributes : dict[str, Any]
6361 Default attributes of the vertices.
6462 default_edge_attributes: dict[str, Any]
@@ -85,7 +83,6 @@ class CellNetwork(Datastructure):
8583 DATASCHEMA = {
8684 "type" : "object" ,
8785 "properties" : {
88- "attributes" : {"type" : "object" },
8986 "dva" : {"type" : "object" },
9087 "dea" : {"type" : "object" },
9188 "dfa" : {"type" : "object" },
@@ -169,9 +166,9 @@ def __init__(
169166 default_edge_attributes = None ,
170167 default_face_attributes = None ,
171168 default_cell_attributes = None ,
172- ** kwargs
169+ name = None ,
173170 ):
174- super (CellNetwork , self ).__init__ (** kwargs )
171+ super (CellNetwork , self ).__init__ (name = name )
175172 self ._max_vertex = - 1
176173 self ._max_face = - 1
177174 self ._max_cell = - 1
@@ -233,7 +230,6 @@ def data(self):
233230 cell [c ] = sorted (list (faces ))
234231
235232 return {
236- "attributes" : self .attributes ,
237233 "dva" : self .default_vertex_attributes ,
238234 "dea" : self .default_edge_attributes ,
239235 "dfa" : self .default_face_attributes ,
@@ -256,14 +252,11 @@ def from_data(cls, data):
256252 dfa = data .get ("dfa" ) or {}
257253 dca = data .get ("dca" ) or {}
258254
259- attributes = data .get ("attributes" ) or {}
260-
261255 cell_network = cls (
262256 default_vertex_attributes = dva ,
263257 default_edge_attributes = dea ,
264258 default_face_attributes = dfa ,
265259 default_cell_attributes = dca ,
266- ** attributes
267260 )
268261
269262 vertex = data ["vertex" ] or {}
0 commit comments