pisces.particles.base.ParticleDataset.concatenate_inplace#
- ParticleDataset.concatenate_inplace(*others: ParticleDataset, groups=None)[source]#
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
ofParticleDataset
) – The datasets to concatenate into this one.groups (
list
ofstr
, 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.