Hi y'all,
I found the problem. My __init__ statement in the subclass had an extra
underscore, which is why the baseclass __init__ was the only one called.
Duh!
Sean
sean_mcdaniel wrote:
>
> Thank you for the reply.
>
> I have made the substitution, but I still receive
Thank you for the reply.
I have made the substitution, but I still receive the same error. I
previously defined the __init__ statements in the old way, i.e.
FileParse.__init__(self)
but with the same problematic outcome.
Thank you,
Sean
Lie Ryan wrote:
>
>> Hi Folks,
>>
>> I can redefine
Hi folks,
I am having problems with classes and subclasses. Do the different __init__
statements have to have different argument lists? I expected my code to
print out "location 1" and "location 2" indicating that both __init__
statements had been successfully called, but it seems like only the
s
Hi Folks,
I can redefine the class and I get a "TypeError: __init__() takes exactly 1
argument (2 given)" error. I'm creating a SinglePeakFit object and not a
FileParse one. Still puzzled...
Thanks,
Sean
New definition:
"""Contains various classes for parsing input files. Used for various
fi