francesca...@oabo.inaf.it
unread,Nov 25, 2015, 6:12:09 AM11/25/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to py...@googlegroups.com
Dear all,
I am encountering a problem when trying to simultaneously determine
temperature and density with the diags.getCrossTemDen option from the two
diagnostics:
'[OII] 3727+/7325+' and '[SII] 6731/6716' .
More specifically, I get the following error:
=================================================
diags.getCrossTemDen('[OII] 3727+/7325+', '[SII] 6731/6716',0.00418,0.7278)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Users/fannibali/Library/Python/2.7/lib/python/site-packages/pyneb/core/diags.py",
line 662, in getCrossTemDen
maxError=maxError, start_x=start_tem, end_x=end_tem)
File
"/Users/fannibali/Library/Python/2.7/lib/python/site-packages/pyneb/core/pynebcore.py",
line 2105, in getTemDen
end_x=end_x, to_eval=to_eval, nCut=nCut, maxIter=maxIter)
File
"/Users/fannibali/Library/Python/2.7/lib/python/site-packages/pyneb/core/pynebcore.py",
line 1939, in _getTemDen_1
result = nsect_recur(_func, start_x, end_x, nCut, maxIter)
File
"/Users/fannibali/Library/Python/2.7/lib/python/site-packages/pyneb/core/pynebcore.py",
line 1925, in nsect_recur
y = abs(f(x))
File
"/Users/fannibali/Library/Python/2.7/lib/python/site-packages/pyneb/core/pynebcore.py",
line 1876, in _func
result = eval(to_eval)
File "<string>", line 1, in <module>
NameError: name 'B' is not defined
==========================================
When typing the commands
for diag in sorted(pn.diags_dict.keys()):
print('"{0}" : {1}'.format(diag, pn.diags_dict[diag]))
I get, for the [O II] ratio:
"[OII] 3727+/7325+" : ('O2',
'(L(3726)+L(3729))/(B("7319A+")+B("7330A+"))',
'RMS([E(3726)*L(3726)/(L(3726)+L(3729)),E(3729)*L(3729)/(L(3726)+L(3729)),BE("7319A+")*B("7319A+")/(B("7319A+")+B("7330A+")),BE("7330A+")*B("7330A+")/(B("7319A+")+B("7330A+"))])')
So I guess that the problem is due to the fact that it does not recognize
B().
Any idea on how to solve the problem?
Many thanks!
Francesca