hpcflow.sdk.core.warnings.warn_once#
- hpcflow.sdk.core.warnings.warn_once(warning, stacklevel=2)#
Issue warning unless an identical warning (same category and message) has already been issued in this process.
This is useful for warnings that could otherwise be issued many times in quick succession, such as when loading legacy data where every persisted object carries a since-removed attribute. Note that, unlike the standard warnings module registry, this deduplicates across call sites.