yt.frontends.artio.data_structures.ARTIORootMeshSubset.convert

ARTIORootMeshSubset.convert(datatype)

This will attempt to convert a given unit to cgs from code units. It either returns the multiplicative factor or throws a KeyError.