yt.lagos.AMRData

class yt.lagos.AMRData(pf, fields, **kwargs)

Generic AMRData container. By itself, will attempt to generate field, read fields (method defined by derived classes) and deal with passing back and forth field parameters.

Methods

clear_cache() Clears out all cache, freeing memory.
clear_data() Clears out all data from the AMRData instance, freeing memory.
convert(datatype) This will attempt to convert a given unit to cgs from code units.
get_field_parameter(name[, default]) This is typically only used by derived field functions, but
has_field_parameter(name) Checks if a field parameter is set.
has_key(key) Checks if a data field already exists.
keys()
save_object(name[, filename]) Save an object.
set_field_parameter(name, val) Here we set up dictionaries that get passed up and down and ultimately
write_out(filename[, fields, format])

Typically this is never called directly, but only due to inheritance. It associates a StaticOutput with the class, sets its initial set of fields, and the remainder of the arguments are passed as field_parameters.

Methods

clear_cache() Clears out all cache, freeing memory.
clear_data() Clears out all data from the AMRData instance, freeing memory.
convert(datatype) This will attempt to convert a given unit to cgs from code units.
get_field_parameter(name[, default]) This is typically only used by derived field functions, but
has_field_parameter(name) Checks if a field parameter is set.
has_key(key) Checks if a data field already exists.
keys()
save_object(name[, filename]) Save an object.
set_field_parameter(name, val) Here we set up dictionaries that get passed up and down and ultimately
write_out(filename[, fields, format])

Previous topic

yt.lagos.AMRSphereBase.write_out

Next topic

yt.lagos.AMRData.clear_cache

This Page