Types

Custom errors

class openghg.types.OpenGHGError[source]

Top level OpenGHG error

class openghg.types.InvalidSiteError[source]

Raised if an invalid site is passed

class openghg.types.UnknownDataError[source]

Raised if an unknown data type is passed

class openghg.types.FunctionError[source]

Raised if a serverless function cannot be called correctly

class openghg.types.ObjectStoreError[source]

Raised if an error accessing an object at a key in the object store occurs

class openghg.types.DatasourceLookupError[source]

Raised if Datasource lookup fails

class openghg.types.EncodingError[source]
class openghg.types.MutexTimeoutError[source]
class openghg.types.RequestBucketError[source]
class openghg.types.SearchError[source]

Related to searching the object store

Custom types

Used to makes type hinting with mypy easier.

openghg.types.pathType

alias of str | Path

openghg.types.multiPathType

alias of str | Path | tuple | list

openghg.types.resultsType

alias of defaultdict[str, dict]