Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix perplex_query_modes issue with "Missing data" value #53

Merged
merged 2 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/utilities/Geochemistry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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() : ()
Expand Down
2 changes: 2 additions & 0 deletions src/utilities/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[deps]
StatGeochem = "df4de05a-b714-11e8-3c2a-c30fb13e804c"
Loading