MCPcopy Create free account
hub / github.com/NatLabRockies/EnergyPlus / __init__

Method __init__

scripts/dev/base_hook.py:150–165  ·  view source on GitHub ↗
(
        self,
        tool: str,
        filepath: Path,
        loglevel: LogLevel,
        message: str,
        line_number: int | None = None,
        line: str | None = None,
    )

Source from the content-addressed store, hash-verified

148class LogMessage:
149
150 def __init__(
151 self,
152 tool: str,
153 filepath: Path,
154 loglevel: LogLevel,
155 message: str,
156 line_number: int | None = None,
157 line: str | None = None,
158 ):
159 self.tool = tool
160 self.filepath = filepath
161 self.relative_file_path = relative_path_from_root(filepath)
162 self.loglevel = loglevel
163 self.message = message
164 self.line_number = line_number
165 self.line = line
166
167 def __repr__(self):
168 """Get an unambiguous string representation of the error."""

Callers

nothing calls this directly

Calls 1

relative_path_from_rootFunction · 0.85

Tested by

no test coverage detected