geolib.models.dstability.serializer

Classes

DStabilityBaseSerializer(**data)

Serializer to folder/file structure.

DStabilityInputSerializer(**data)

param data:

DStabilityInputZipSerializer(**data)

DStabilSerializer for zipped.stix files.

class geolib.models.dstability.serializer.DStabilityBaseSerializer(**data)

Serializer to folder/file structure.

Parameters:

data (Any) –

ds: DStabilityStructure
serialize()
Return type:

Dict

abstract write(path)

Write serialized model to Filepath or BytesIO buffer

class geolib.models.dstability.serializer.DStabilityInputSerializer(**data)
Parameters:

data (Any) –

write(filepath)

Write serialized model to Filepath or BytesIO buffer

Parameters:

filepath (DirectoryPath) –

Return type:

DirectoryPath

class geolib.models.dstability.serializer.DStabilityInputZipSerializer(**data)

DStabilSerializer for zipped.stix files.

Parameters:

data (Any) –

write(filepath)

Write serialized model to Filepath or BytesIO buffer

Parameters:

filepath (Union[FilePath, BytesIO]) –

Return type:

Union[FilePath, BytesIO]