From fcb0d5608c6656e0dd448a836c46aeabc8f727dc Mon Sep 17 00:00:00 2001 From: meliezer Date: Fri, 21 May 2021 13:10:07 +0200 Subject: [PATCH] Update edmo_originators_from_xml.jl Corrected typo in output file name. --- julia/edmo_originators_from_xml.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/julia/edmo_originators_from_xml.jl b/julia/edmo_originators_from_xml.jl index b63089e..6b1da39 100644 --- a/julia/edmo_originators_from_xml.jl +++ b/julia/edmo_originators_from_xml.jl @@ -2,6 +2,7 @@ using EzXML using DelimitedFiles using Glob +# input file name is a Sextant record XML, or any XML respecting the XML path and logic below function extract_edmo_originators(fname) xml = EzXML.readxml(fname); @@ -15,7 +16,7 @@ function extract_edmo_originators(fname) end @info "In $fname found $(length(edmo)) originators" - writedlm(replace(fname,".xml" => ".emdo.txt"),edmo) + writedlm(replace(fname,".xml" => ".edmo.txt"),edmo) end # apply to a single file