Skip to content

Commit

Permalink
Merge pull request #205 from MineralsCloud:myuparse
Browse files Browse the repository at this point in the history
Fix `myuparse` does not take spaces
  • Loading branch information
singularitti authored Feb 22, 2022
2 parents 6bdc144 + 4e42395 commit 918a39d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Express.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import Unitful

import Configurations: convert_to_option

myuparse(str::AbstractString) = uparse(str; unit_context = Unitful.unitmodules)
myuparse(str::AbstractString) =
uparse(filter(!isspace, str); unit_context = Unitful.unitmodules)

abstract type Calculation end
abstract type ElectronicStructure <: Calculation end
Expand Down

0 comments on commit 918a39d

Please sign in to comment.