You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "pyccl/_core/schema.py", line 262, in __new__
instance = super().__new__(cls)
TypeError: Can't instantiate abstract class B with abstract method name
The text was updated successfully, but these errors were encountered:
We should probably add some documentation on when and how to use these classes. Is there a reason for name not defaulting to something like __class__.__name__?
It was so you can have a from_namemethod that you can use with more memorable/meaningful names (e.g. ccl.MassFunction.from_name("Tinker08")). I agree it may be a bit superfluous, since modern IDEs make finding these things quite easy.
I tried making a
dataclass
that derived fromCCLNamedClass
(analogously to theBaryons
base class) but this causes an obscure error:The text was updated successfully, but these errors were encountered: