CachedSemanticMappings

class CachedSemanticMappings(path: str | Path, *, force: bool = False, cache: bool = True)[source]

Bases: Cached[SemanticMappingPack]

Make a function lazily cache SSSOM.

Instantiate the decorator.

Parameters:
  • path – The path to the cache for the file

  • cache – Should caching be done? Defaults to true, turn off for debugging purposes

  • force – Should a pre-existing file be disregared/overwritten?

Methods Summary

dump(read_type)

Dump data to the cache as a dataframe.

load()

Load data from the cache as a dataframe.

Methods Documentation

dump(read_type: SemanticMappingPack) None[source]

Dump data to the cache as a dataframe.

load() SemanticMappingPack[source]

Load data from the cache as a dataframe.