Skip to content

A card the target ignores

A card the target reads and then ignores is written exactly as stated, and the compile says so: the deck carries a target.keyword_ignored warning naming the card, printed once through ps.PetroScriptWarning:

import warnings
with warnings.catch_warnings():
warnings.simplefilter("ignore", ps.PetroScriptWarning)
quiet = ps.compile(flood.replace(numerics=ps.Numerics(stack_depth=25)))
assert [issue.code for issue in quiet.issues] == ["target.keyword_ignored"]
assert "NSTACK" in quiet.files["FLOOD.DATA"] # written as stated

PetroScript writes what you stated and tells you what the target will do with it.

PetroScript is licensed under the Apache License 2.0. © 2026 Blauweiss EDV LLC. PetroScript by Blauweiss AI.For AI agents: llms.txt