Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
sarus_data_spec / sarus_data_spec / manager / ops / source / privacy_params.py
Size: Mime:
import typing as t

from sarus_data_spec.manager.ops.base import ScalarImplementation


class PrivacyParams(ScalarImplementation):
    async def value(self) -> t.Any:
        assert self.scalar.is_privacy_params()
        points = self.scalar.protobuf().spec.privacy_params.points
        if len(points) != 1:
            raise NotImplementedError(
                "The PrivacyParams contains more than 1 point in the privacy "
                "profile."
            )
        return list(points)