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)
def setup_particle_fields(self, ptype, *args, **kwargs): super().setup_particle_fields(ptype, *args, **kwargs) setup_species_fields(self, ptype)
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)