Replies: 1 comment
-
Furthermore, constants could be specified during instantiation, so they're available to any models that get called during the init:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have been tossing around the idea of storing constants somehow, either on the projects or in the dictionaries as 'pore.constant'. What about adding an attribute called
constants
to each object. We could then update the__getitem__
method to check for constants in the constants dict if a key error occurs.Example:
And assigning a constant no longer creates a full array, but diverts the value to the
constants
dictor
Printing the object would include a new section:
Beta Was this translation helpful? Give feedback.
All reactions