Injections (Mimic) API
Injections API (Mimic)¶
CHIME/FRB Mimic API.
get_active_injections
¶
Get parameters for all currently active injections.
Returns:
| Name | Type | Description |
|---|---|---|
active_injections |
JSON
|
list |
get_all_injection_programs
¶
Get all unique injection programs.
Returns:
| Type | Description |
|---|---|
JSON
|
dict |
get_simulated_event
¶
Get the injected and detected parameters for a specific UUID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uuid
|
Optional[str]
|
Universally unique identifier for the specific simulated event |
None
|
Returns:
| Type | Description |
|---|---|
JSON
|
dict |
Raises:
| Type | Description |
|---|---|
AttributeError
|
uuid is required |
get_uuids
¶
Get UUIDs for all simulated events.
Returns:
| Type | Description |
|---|---|
JSON
|
dict |
register_detection
¶
Register a detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
{}
|
Returns:
| Type | Description |
|---|---|
JSON
|
dict |
register_injection
¶
Register an injection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
{}
|
Returns:
| Name | Type | Description |
|---|---|---|
uuid |
JSON
|
python dict of the uuids of the registered injection |