pisces.extensions.simulation.gadget.particles.GadgetParticleDataset.concatenate_inplace#

GadgetParticleDataset.concatenate_inplace(*others: ParticleDataset, groups=None)#

Concatenate another ParticleDataset into this one, extending specified groups.

This method appends the particle data from other to this dataset for the specified groups. If groups is None, all groups in other are concatenated. The number of particles in each group is updated accordingly.

Parameters:
  • *others (list of ParticleDataset) – The datasets to concatenate into this one.

  • groups (list of str, optional) – Names of groups to concatenate. If None, all groups are concatenated.

Raises:
  • KeyError – If a specified group does not exist in either dataset.

  • ValueError – If the datasets have incompatible shapes for concatenation.