biomol.core.FeatureContainer.update#
- FeatureContainer.update(**features)[source]#
Update the container with new or modified features.
- Parameters:
**features (Feature | NDArray[Any]) – Key-value pairs of features to add or update. Values can be either Feature objects or numpy arrays (which will be converted to NodeFeature).
- Return type:
Notes
This method returns a new FeatureContainer instance and does not modify the current instance.
Examples
container = FeatureContainer(...) new_container = container.update(coord=container["coord"] + 1.0)