as_namespace# pypulseqpp.as_namespace()[source]# Convert a compiled event to a PyPulseq-compatible SimpleNamespace. Non-event objects are returned unchanged. Parameters: event (object) – A compiled event, or anything else. Returns: The namespace, carrying the fields upstream reads and the registration ids the event holds, or event itself when it is not a compiled event. Return type: object