mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
removed __init_subclass__ since it's not in python 3.5
This commit is contained in:
parent
2870da61e6
commit
089b6d04ef
1 changed files with 2 additions and 4 deletions
|
|
@ -79,10 +79,6 @@ class Surface(IDManagerMixin, metaclass=ABCMeta):
|
|||
# Value - coefficient value
|
||||
self._coefficients = {}
|
||||
|
||||
def __init_subclass__(cls, **kwargs):
|
||||
super().__init_subclass__(**kwargs)
|
||||
_SURFACE_CLASSES[cls._type] = cls
|
||||
|
||||
def __neg__(self):
|
||||
return Halfspace(self, '-')
|
||||
|
||||
|
|
@ -2613,3 +2609,5 @@ class Halfspace(Region):
|
|||
|
||||
# Return translated surface
|
||||
return type(self)(memo[key], self.side)
|
||||
|
||||
_SURFACE_CLASSES = {cls._type: cls for cls in Surface.__subclasses__()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue