ezga_lib_class

class soda_analyzer.ezga_lib_class(h5_source)

Inspect EZGA agents, generations, population memberships, and structure payloads.

Parameters:

h5_source (str or pathlib.Path or h5py.File) – SODA HDF5 filename or an already open file. Only files opened by this view are closed by its close() method.

h5

Underlying file; borrowed when an open handle was supplied.

Type:

h5py.File

exists

Whether the file contains an EZGA group.

Type:

bool

sage_structure_field_policy

Recorded policy for optional SAGE structure payload fields.

Type:

dict

Notes

Available under the public name EzgaLibrary; ezga_lib_class remains a compatible name.

Tables are loaded when this view is created. Missing optional tables are empty. Call close() when finished; an externally supplied HDF5 handle remains open.

Methods

close

Close the HDF5 file owned by this library view.

get_agent_ids

Return the agent IDs present in metadata, commits, or structures.

get_blobs

Return blobs filtered by agent, kind, or active flag.

get_committed_table_prefix

Read the table prefix covered by a generation commit.

get_complete_commits

Return generation commits explicitly marked complete.

get_generation_commits

Return generation commit records matching the supplied filters.

get_generations

Return generation numbers, restricted to complete commits by default.

get_hise_stages

Return HISE stage records with optional status filtering.

get_latest_complete_commit

Return the complete commit with the greatest commit ID and row index.

get_population_memberships

Return generation population memberships and view flags.

get_reactivity_irc_paths

Return matching reactivity IRC path records.

get_rejected_structures

Return structure rejection records for matching generations.

get_row_dicts

Select EZGA table rows as ordinary dictionaries.

get_rows

Select EZGA table rows using column filters.

get_sage_structure_payloads

Return optional SAGE structure payloads for matching agents.

get_structures

Return structure records filtered by their creation metadata.

get_table

Read an EZGA table by name or alias.

read_agent_metadata

Read metadata for one EZGA agent.

read_blob

Read a blob from append-only history or the current-blob table.

read_reactivity_irc_path

Read an IRC path by row index or path ID.

read_sage_structure_payload

Read optional SAGE structure fields by row index or structure ID.

read_structure

Read a structure by row index or agent and structure ID.

summarize

Summarize EZGA agents, table counts, commits, and optional payload coverage.

validate_sage_structure_payloads

Validate optional SAGE payload coverage against the stored field policy.