Closed Ameek-Sidhu closed 3 years ago
Hard to judge. Depends on the computer you are using and the package versions you have installed. Are others seeing this issue? @ThomasSYLai was commenting recently that the fitting was nice and fast now.
@els1 and @BethanyRS also experienced it to be slower yesterday.
Odd. Can you say what version of astropy you are using? Can be found by "pip list | grep astropy".
I run astropy 4.3.dev737+gfff5ccf46
'4.3.dev737+gfff5ccf46' is the version I am using
What is the maximum iterations you are using?
This is reasonable. With maxiter=200 I get ~5sec.
(base) [kgordon@grimy pahfit]$ time run_pahfit M101_Nucleus_irs.ipac scipack_ExGal_SpitzerIRSSLLL.ipac --estimate_start --fit_maxiter=200
WARNING: The fit may be unsuccessful; check fit_info['message'] for more information. [astropy.modeling.fitting]
Number of calls to function has reached maxfev = 200.
real 0m5.514s
user 0m5.994s
sys 0m1.025s
And this is what I expect based on the details given in the astropy issue. See https://github.com/astropy/astropy/issues/11314.
For maxiter=1000, I get:
(base) [kgordon@grimy pahfit]$ time run_pahfit M101_Nucleus_irs.ipac scipack_ExGal_SpitzerIRSSLLL.ipac --estimate_start --fit_maxiter=1000
Both actual and predicted relative reductions in the sum of squares
are at most 0.000000
real 0m12.248s
user 0m13.189s
sys 0m1.562s
@karllark PAHFIT is taking about 15 seconds to run the example M101 Nucleus spectrum. It seems like a lot of time to me after we installed the GitHub version of astropy.