Dear all,
I am using a dictionary to store units of variables, such as
var('h_c')
udict = {}
udict[h_c] = E*units.energy.joule
However, whenever I display the dictionary, I only see:
{h_c: h_c*joule}
This means that I cannot copy and paste the dictionary into a new
worksheet, as it raises an error:
udict = {h_c: h_c*joule}
Traceback (click to the left of this block for traceback)
...
NameError: name 'joule' is not defined
Does anyone know how I can get around this error without re-typing the
whole dictionary and adding "units.xxx." in front of every single
unit?
Thanks for your help already!
Cheers
Stan
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org