INNER CODE UNIT · Python

read

skyportal/skyportal · services/assistant/app.py:308

    def read(name, **arguments):
        try:
            result = call_tool(token, name, arguments, {name})
            value, ok = json.loads(result), True
        except Exception as exc:
            result, value, ok = f"tool {name} failed: {exc}", None, False
        trace.append(record_call(name, arguments, result, ok))
        return value

    flare = flare_result(read("get_analysis", analysis_id=analysis_id))
    if flare is None:
        return None
    source = read("get_sources", obj_id=obj_id) or {}
    catalogs = None
    if source.get("ra") is not None and source.get("dec") is not None:
        brokers = read("list_brokers") or []
        for broker in sorted(brokers, key=lambda b: b.get("name") != "BOOM"):
            if not broker.get("active") or "cone_search" not in (

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…