-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crpropa Modules implemented in python cannot change the __init__ function #9
Comments
You need to call the constructor of the super class: def init (self): Am Donnerstag, 29. Mai 2014, 23:54:34 schrieb DavidWalz:
|
Right. I'll add it to the wiki. from crpropa import *
class Test(Module):
def __init__ (self):
Module.__init__(self)
m = ModuleList()
m.add(Test()) |
Closed
Closed
Closed
Closed
SergueiVorobiov
referenced
this issue
Jan 30, 2020
TobiasWinchen
pushed a commit
that referenced
this issue
Apr 16, 2020
Add example for confirming Liouville's theorem
Closed
reichherzerp
pushed a commit
to reichherzerp/CRPropa3
that referenced
this issue
Dec 19, 2022
Fixed typos in documentation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TypeError: in method 'ModuleList_add', argument 2 of type 'crpropa::Module *'
The text was updated successfully, but these errors were encountered: