Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix amusifier Python 3.13 compatibility #1083

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/amuse/datamodel/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class DomainMetaclass(type):
def __new__(metaclass, name, bases, dict):
replacement_dictionary = {}
for key, value in dict.items():
if isinstance(value, tuple):
if not key.startswith('__') and isinstance(value, tuple):
default_value, description = value
replacement_dictionary[key] = AttributeDefinition(
key, description, default_value.unit, default_value
Expand Down
2 changes: 1 addition & 1 deletion src/amuse/datamodel/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def __call__(self, *list_arguments, **keyword_arguments):

def new_particle_function_attribute_with_doc(function):
class BoundParticleFunctionAttribute(object):
if function.__doc__:
if function is not None and function.__doc__:
__doc__ = (
"\n Documentation on '{0}' particle function attribute:"
"\n\n".format(function.__name__) + function.__doc__
Expand Down
Loading