File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ def __init__(
8787 self ._interaction_kernel = None
8888
8989 self .fieldset = fieldset
90- self ._pclass = pclass
9190
9291 if repeatdt :
9392 NotImplementedError ("ParticleSet.repeatdt is not implemented yet in v4" )
@@ -154,12 +153,11 @@ def __init__(
154153 },
155154 attrs = {
156155 "ngrid" : len (fieldset .gridset ),
157- "pclass" : self ._pclass ,
158- "ptype" : self ._pclass .getPType (), # TODO check why both pclass and ptype needed
156+ "ptype" : pclass .getPType (),
159157 },
160158 )
161159 # add extra fields from the custom Particle class
162- for v in self . pclass .__dict__ .values ():
160+ for v in pclass .__dict__ .values ():
163161 if isinstance (v , Variable ):
164162 if isinstance (v .initial , attrgetter ):
165163 initial = v .initial (self ).values
@@ -222,10 +220,6 @@ def lonlatdepth_dtype_from_field_interp_method(field):
222220 def size (self ):
223221 return len (self ._data ["trajectory" ])
224222
225- @property
226- def pclass (self ):
227- return self ._pclass
228-
229223 def __repr__ (self ):
230224 return particleset_repr (self )
231225
You can’t perform that action at this time.
0 commit comments