diff --git a/src/utilities/Geochemistry.jl b/src/utilities/Geochemistry.jl index 00e9f07..1e6964d 100644 --- a/src/utilities/Geochemistry.jl +++ b/src/utilities/Geochemistry.jl @@ -1433,6 +1433,10 @@ system("sed -e \"s/^ *//\" -e \"s/ *\$//\" -i.backup $(prefix)$(index)_1.phm") # Merge delimiters system("sed -e \"s/ */ /g\" -i.backup $(prefix)$(index)_1.phm") + # Replace "Missing data" with just "Missing" + file_content = read("$(prefix)$(index)_1.phm", String) + modified_content = replace(file_content, "Missing data" => replace("Missing data", "Missing data" => "Missing")) + write("$(prefix)$(index)_1.phm", modified_content) # Read results and return them if possible result = importas==:Dict ? Dict() : () diff --git a/src/utilities/Project.toml b/src/utilities/Project.toml new file mode 100644 index 0000000..0c78fbb --- /dev/null +++ b/src/utilities/Project.toml @@ -0,0 +1,2 @@ +[deps] +StatGeochem = "df4de05a-b714-11e8-3c2a-c30fb13e804c"