tacco.testing.string_decode

string_decode(data)[source]

Helper function to thaw objects frozen by string_encode().

WARNING: The functionality is based on pickle and therefore the thawing becomes impossible if the object implementation changes, e.g. by incompatible version upgrades of packages, like Anndata.

Parameters:

data – The compressed string representation of the object to freeze.

Returns:

Returns the thawed object.