(registry_proto: RegistryProto, name: str, project: str)
| 256 | |
| 257 | |
| 258 | def get_entity(registry_proto: RegistryProto, name: str, project: str) -> Entity: |
| 259 | for entity_proto in registry_proto.entities: |
| 260 | if entity_proto.spec.name == name and entity_proto.spec.project == project: |
| 261 | return Entity.from_proto(entity_proto) |
| 262 | raise EntityNotFoundException(name, project=project) |
| 263 | |
| 264 | |
| 265 | def get_saved_dataset( |
nothing calls this directly
no test coverage detected