Regarding the identifier name in the Model "wk2020" : CII_158/OI_158

29 views
Skip to first unread message

MINJU LEE

unread,
Apr 6, 2022, 6:22:21 AM4/6/22
to PDR Toolbox
Hi,

 I was trying to get some fitting results by using the [OI]145, [CII], and [CI] lines for the 2020 Model ("wk2020") and I noticed a typo in the available ratio: CII_158/OI_158 when I check the available model ratios. This seems to block the plot for [OI]145/[CII]  and only the following ratios are plotted on the G_0 and n plane for the fitting result.
['CII_158/FIR', 'CII_158/CI_609', 'OI_145+CII_158/FIR']

I hope this is the right place to ask this, and thanks for helping me solve the issue!

Best wishes,
Minju

Marc W. Pound

unread,
Apr 6, 2022, 10:39:53 AM4/6/22
to PDR Toolbox
Hi Minju,

This is the right place and yes that is a bug!    I will patch it for an upcoming release but in the meantime you can easily fix it at your end.   You will need to edit the file models.tab which is deep down in the models directory.   You can find the right one with:

locate models.tab | grep version2020 |grep z=1

That will turn up  something like   
path-to-your-installation/models/wolfirekaufman/version2020/constant_density/z=1/models.tab

Edit models.tab , line 11 , 3rd column you will see the typo.  Change OI_158 to OI_145.  

Restart your notebook kernel (or re-run your script if you are not using notebooks) and the problem should be fixed.

Thank you for using pdrtpy!

best,
Marc

MINJU LEE

unread,
Apr 11, 2022, 3:29:36 AM4/11/22
to PDR Toolbox
Hi Marc,

 sorry for being slow with the response -- google did not inform me of your reply! --. Now I fixed it and it works wonderful, thanks a lot for the help and your time.

Best,
Minju

Reply all
Reply to author
Forward
0 new messages