smaret / astrochem

A code to compute the abundances of chemical species in the interstellar medium
Other
20 stars 12 forks source link

Python solve() function second argument isn't optional #52

Closed smaret closed 8 years ago

smaret commented 8 years ago

According to the documentation:

>>> from astrochem.wrapper import solver
>>> help (solver.solve)
Help on method solve in module astrochem.wrapper:

solve(self, time, new_cell) unbound astrochem.wrapper.solver method
    Solve chemical reaction for a certain time

    Arguments
    ---------
    time : float
       Time to solve the system at
    new_cell : `cell`
       Cell class to use in solver, optional

However the following model gives this error:

% python astrochem_bug52.py 
Traceback (most recent call last):
  File "astrochem_bug52.py", line 25, in <module>
    abundances = s.solve(ti)
TypeError: solve() takes exactly 3 arguments (2 given)