Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions autofit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
from .text import samples_text
from .visualise import VisualiseGraph
from .graph_spec import GraphSpec, graph_spec_from
from .model_figure import ModelPlotter
from .interpolator import (
LinearInterpolator,
SplineInterpolator,
Expand Down
8 changes: 7 additions & 1 deletion autofit/config/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,10 @@ noise_map: true # `noise_map.json`: The value of every RMS noise map value.

search_log: true # `search.log`: logging produced whilst running the fit method

model_graph: false # `model.graph`: graphical-model factor graph summary. Only meaningful for graphical models (autofit.graphical); empty for ordinary PriorModel/Collection fits, so disabled by default.
model_graph: false # `model.graph`: graphical-model factor graph summary. Only meaningful for graphical models (autofit.graphical); empty for ordinary PriorModel/Collection fits, so disabled by default.

# `model.png`: the model figure drawn beside `model.info` (autofit.model_figure / af.ModelPlotter).
# Opt-in until the lens acceptance renders pass (model-figures epic phase 3). Unlike other keys this
# one does NOT fall back to `default` when absent -- an absent key means off.

model_figure: false
19 changes: 19 additions & 0 deletions autofit/model_figure/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""
The model figure -- a containment picture of a model's structure.

``model.info`` is the legend; this package draws the map. Three layers, each
importable and testable on its own:

* :mod:`autofit.model_figure.presentation` -- what is drawn and what it says.
* :mod:`autofit.model_figure.layout` -- where it goes, measured in inches.
* :mod:`autofit.model_figure.render` -- matplotlib.

:class:`~autofit.model_figure.plotter.ModelPlotter` is the public entry point
and is re-exported as ``af.ModelPlotter``. Importing this package does **not**
import matplotlib: every drawing import is inside a function, so
``import autofit`` stays drawing-free.
"""

from .plotter import ModelPlotter

__all__ = ["ModelPlotter"]
Loading
Loading