geolib.models.meta

All D-Serie models store some metadata in the input files. These include projectnames, dates and times, remarks etc. All of these options are available via the Metadata class.

The Metadata class can also hold other properties for your project such as an compute endpoint.

Todo

Make a mapping between the possible metadata options and names for each model.

Classes

MetaData([_env_file, _env_file_encoding, ...])

Holds all metadata found in the header of model files.

class geolib.models.meta.MetaData(_env_file='<object object>', _env_file_encoding=None, _env_nested_delimiter=None, _secrets_dir=None, **values)

Holds all metadata found in the header of model files.

Could be specified by default or in advance to make model generation easier.

Also can read these settings automatically from a ‘geolib.env’ file in the working directory, or give as ‘_env_file’ parameter.

Parameters:
  • _env_file (Union[str, PathLike, List[Union[str, PathLike]], Tuple[Union[str, PathLike], ...], None]) –

  • _env_file_encoding (Optional[str]) –

  • _env_nested_delimiter (Optional[str]) –

  • _secrets_dir (Union[str, PathLike, None]) –

  • values (Any) –

class Config
env_file = 'geolib.env'
analyst: str
calculation_folder: Path
company: str
console_folder: DirectoryPath
dfoundations_console_path: Optional[Path]
dgeoflow_console_path: Optional[Path]
dsettlement_console_path: Optional[Path]
dsheetpiling_console_path: Optional[Path]
dstability_console_path: Optional[Path]
endpoint: AnyHttpUrl
gl_password: str
gl_username: str
nprocesses: int
project: str
remarks: str
startdate: datetime
timeout: int