buffalo_core

The foundational dependency for Buffalo projects.

This provides the shared foundations used across Buffalo projects. It contains common typing conventions for NumPy-based scientific code, small numeric normalization helpers, structured diagnostics primitives, and shared schema-metadata helpers for GUI and editor introspection.

Functions

as_float_array

Normalize numeric input to a float64 NumPy array.

as_float_scalar

Normalize a scalar-like numeric value to a Python float.

as_int_array

Normalize numeric input to an int32 NumPy array.

as_int_scalar

Normalize a scalar-like numeric value to a Python int.

schema_field_metadata

Return structured metadata for the dataclass fields on cls.

schema_tree

Return a nested tree description for one schema dataclass.

Classes

Diagnostic

Structured diagnostic suitable for programmatic reporting.

DiagnosticLocation

Optional context identifying where a diagnostic applies.

DiagnosticReport

Grouped diagnostics emitted by one workflow.

DiagnosticSeverity

Severity level for a structured diagnostic.

OperationResult

Return one value together with structured diagnostics.

SchemaChoice

Structured choice metadata for one enum-like schema value.

SchemaClassTree

Tree node describing one schema dataclass.

SchemaCondition

Structured conditional UI rule attached to one schema field.

SchemaField

Structured machine-readable metadata for one dataclass field.

SchemaFieldTree

Tree node describing one dataclass field.