示例#1
0
文件: fields.py 项目: cgyurgyik/yt
 def setup_particle_fields(self, ptype):
     FieldInfoContainer.setup_particle_fields(self, ptype)
     if ptype in ("PartType0", ):
         self.setup_gas_particle_fields(ptype)
         setup_species_fields(self, ptype)
     if ptype in ("PartType4", ):
         self.setup_star_particle_fields(ptype)
 def setup_particle_fields(self, ptype, *args, **kwargs):
     super(SPHFieldInfo, self).setup_particle_fields(ptype, *args, **kwargs)
     setup_species_fields(self, ptype)
示例#3
0
 def setup_particle_fields(self, ptype, *args, **kwargs):
     super().setup_particle_fields(ptype, *args, **kwargs)
     setup_species_fields(self, ptype)
示例#4
0
 def setup_particle_fields(self, ptype, *args, **kwargs):
     FieldInfoContainer.setup_particle_fields(self, ptype)
     if ptype == "PartType0":
         self.setup_gas_particle_fields(ptype)
         setup_species_fields(self, ptype)