You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NrmlDocument class has from_xml_file() method but no to_xml_file() method. To write source and gmcm xml for OpenQuake we use OpenquakeSimplePshaAdapterbuild_gmcm_xml() and build_sources_xml(). Better and less redundant to use NrmlDocument methods? We already use NrmlDocument in OpenquakeSimplePshaAdapter.sources_document() (nee config()).
Consider both source and gmcm files
The text was updated successfully, but these errors were encountered:
chrisdicaprio
changed the title
Q: should we be using source_document() (nee config()) to write to xml rather than building up from raw as in build_sources_xml()?
Investigation: using NrmlDocument to serialize/deserialize nrml
Aug 4, 2024
NrmlDocument
class hasfrom_xml_file()
method but noto_xml_file()
method. To write source and gmcm xml for OpenQuake we useOpenquakeSimplePshaAdapter
build_gmcm_xml()
andbuild_sources_xml()
. Better and less redundant to useNrmlDocument
methods? We already useNrmlDocument
inOpenquakeSimplePshaAdapter.sources_document()
(neeconfig()
).Consider both source and gmcm files
The text was updated successfully, but these errors were encountered: