charm4py icon indicating copy to clipboard operation
charm4py copied to clipboard

Call super().__init__() in PoolScheduler __init__

Open nchristensen opened this issue 4 years ago • 1 comments

Subclasses of PoolScheduler can't work with the Pool because a missing attribute __local_free_head causes __addLocal__ to raise an AttributeError. Calling super().__init__() in the PoolScheduler __init__ method seems to fix this since the Chare class sets this attribute in its __init__().

nchristensen avatar Oct 28 '21 04:10 nchristensen

This pull request fixes 1 alert when merging 84083a089bce8c3a64dbafc6e986bad65b059850 into 3603cae585d9a04100495b3d798636ff283bdf94 - view on LGTM.com

fixed alerts:

  • 1 for Missing call to `__init__` during object initialization

lgtm-com[bot] avatar Oct 28 '21 04:10 lgtm-com[bot]