File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def __init__(self, pclass):
9696 self .variables = [v for v in self .variables if v .is64bit ()] + [v for v in self .variables if not v .is64bit ()]
9797
9898 def __repr__ (self ):
99- return f"PType< { self . name } >:: { self .variables } "
99+ return f"{ type ( self ). __name__ } (pclass= { self .name } ) "
100100
101101 def __getitem__ (self , item ):
102102 for v in self .variables :
Original file line number Diff line number Diff line change @@ -51,6 +51,11 @@ def test_check_indentation():
5151 assert not valid_indentation (invalid )
5252
5353
54+ def test_particletype_repr ():
55+ kwargs = dict (pclass = parcels .JITParticle )
56+ assert_simple_repr (parcels .particle .ParticleType , kwargs )
57+
58+
5459def test_grid_repr ():
5560 """Test arguments are in the repr of a Grid object"""
5661 kwargs = dict (
You can’t perform that action at this time.
0 commit comments