<div dir="ltr"><div><div>Hello, I am using the latest version of yt-3.0 and am having some problems defining a new field.  Here is an example of a field that produces an error:<br>def _Sigm(field,data): return data["Density"]<br>
add_field("Sigma",function=_Sigm,units=r"\rm{g}/\rm{cm}^{2}",display_name=r"\Sigma")<br><br></div>and this is the error I get when I try to do a projection of it:<br><br>  File "<string>", line 1<br>
    \Symbol ('rm' ,positive =True ){Symbol ('g' ,positive =True )}/\Symbol ('rm' ,positive =True ){Symbol ('cm' ,positive =True )}^{Integer (2 )}<br>                                                                                                                                                ^<br>
SyntaxError: unexpected character after line continuation character<br><br></div>It works fine on the stable and dev versions of yt.  Has something changed for defining fields in 3.0?<br><br>Thanks,<br><br>Mike<br></div>