DeepSDFStruct.utils#

Utility Functions#

This module provides general utility functions used throughout DeepSDFStruct, including logging configuration and color scheme definitions.

Functions#

configure_logging

Set up logging for the DeepSDFStruct package with customizable output format and destinations.

Constants#

_TUWIEN_COLOR_SCHEME

TU Wien corporate color scheme for consistent visualization styling.

Functions

configure_logging([level, logfile])

Configure logging for the DeepSDFStruct package.

DeepSDFStruct.utils.configure_logging(level=20, logfile=None)#

Configure logging for the DeepSDFStruct package.

Sets up a logger with a standard format and optional file output. This is called automatically when DeepSDFStruct is imported.

Parameters:
  • level (int, default logging.INFO) – Logging level (e.g., logging.DEBUG, logging.INFO, logging.WARNING).

  • logfile (str, optional) – Path to log file. If provided, logs are written to both console and file. If None, logs only to console.

Examples

>>> from DeepSDFStruct.utils import configure_logging
>>> import logging
>>>
>>> # Set debug level and log to file
>>> configure_logging(level=logging.DEBUG, logfile='deepsdf.log')

Notes

The log format is: “HH:MM:SS message” All log messages are prefixed with a timestamp for easy debugging.