(ids_xml: string, validate = false)
| 46 | } |
| 47 | |
| 48 | export function openIDS(ids_xml: string, validate = false): Record<string, unknown> { |
| 49 | const ids_from_xml_string = pyodide.pyimport("api").ids_from_xml_string; |
| 50 | const ids_raw = ids_from_xml_string(ids_xml, validate); |
| 51 | |
| 52 | return ids_raw.asdict().toJs({dict_converter: Object.fromEntries}); |
| 53 | } |
| 54 | |
| 55 | export function validateIDS(idsObj: Record<string, unknown>): boolean { |
| 56 | const ids_raw = _idsToInstance(idsObj) |
nothing calls this directly
no test coverage detected