pisces.models.stars.polytropes.PolytropicStarModel.logger#

PolytropicStarModel.logger: Logger = <Logger PolytropicStarModel (INFO)>#

Logger interface for this model.

This logger provides structured logging functionality specific to the model’s operation within the Pisces framework. It captures status updates, warnings, debug information, and other messages emitted during model construction, file I/O, sampling, or analysis.

Use this logger for:

  • Reporting progress or diagnostics in custom model methods

  • Emitting debug messages during development or profile tuning

  • Logging warnings for missing data, invalid configuration, etc.

Access the logger via:

self.logger.info("Loaded profile '%s'", name)
self.logger.warning("Missing metadata for '%s'", key)

The logger is registered under the models subsystem. You can configure its behavior (e.g., log level or format) by editing the [logging.models] section in your Pisces configuration file.