AlganSettings

Qualified name: algan.settings.root\_settings.AlganSettings

class AlganSettings[source]

Bases: object

Stable process-global root for runtime-adjustable Algan settings.

Section objects keep stable identities. Call SETTINGS.video.set(...) rather than replacing SETTINGS.video so imports made by engine modules always observe the current values.

Methods

override

Temporarily override one or more sections and restore on exit.

restore

snapshot

Attributes

computing

paths

style

video

raytracing

override(**sections)[source]

Temporarily override one or more sections and restore on exit.

Example: with SETTINGS.override(raytracing={"samples_per_pixel": 4}):