new_auto_union#

geodesic.boson.dataset.new_auto_union(name, search='', predicate='has-observable', observables=[], projects=None, project=None, middleware={}, cache={}, tile_options={}, domain='*', category='*', type='*', **kwargs)[source]#

Creates a union of all datasets matching the user’s query.

Creates a new Dataset that is a union of all datasets that have the can-observe relationship with each of the (optional) observables. These datasets can be in multiple different projects. The Dataset must be saved

Parameters:
  • name (str) – the name of the new Dataset

  • search (str) – a search string to use to search for datasets

  • predicate (str) – the predicate to use to search for datasets. Defaults to “has-observable”

  • observables (Union[Observable, List[Observable]]) – an observable or list of observables that this dataset can observe

  • projects (Union[Union[str, Project], List[str, Project]]) – a list of projects to search for datasets in. If None, all projects will be searched

  • project (Optional[Union[str, Project]]) – the name of the project this will be assigned to

  • middleware (Union[MiddlewareConfig, list]) – configure any boson middleware to be applied to the new dataset.

  • cache (CacheConfig) – configure caching for this dataset

  • tile_options (TileOptions) – configure tile options for this dataset

  • domain (str) – domain of the resulting Dataset

  • category (str) – category of the resulting Dataset

  • type (str) – the type of the resulting Dataset

  • **kwargs (dict) – additional properties to set on the new Dataset