Skip to content

Commit

Permalink
Update create_scc_validation_file.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
lrennels authored Jun 17, 2021
1 parent e70bdd6 commit dc1d36d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/create_scc_validation_file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ filter!(:gas => x -> (x == "CO2" || x == "CH4"), new_sc)
# a tolerance of 1.0e-1 for pulse_size of 1 and 1e-9 for pulse_size of 1.0e7, so
# we mirror that here

old_sc_bigpulse = filter!(:pulse_size => x -> x == 1.0e7, old_sc)
new_sc_bigpulse = filter!(:pulse_size => x -> x == 1.0e7, new_sc)
old_sc_bigpulse = filter(:pulse_size => x -> x == 1.0e7, old_sc)
new_sc_bigpulse = filter(:pulse_size => x -> x == 1.0e7, new_sc)
@test all(isapprox.(old_sc_bigpulse[!, :SC], new_sc_bigpulse[!, :SC], atol = 1e-9))

old_sc_smallpulse = filter!(:pulse_size => x -> x == 1.0e7, old_sc)
new_sc_smallpulse = filter!(:pulse_size => x -> x == 1.0e7, new_sc)
old_sc_smallpulse = filter(:pulse_size => x -> x == 1.0e7, old_sc)
new_sc_smallpulse = filter(:pulse_size => x -> x == 1.0e7, new_sc)
@test all(isapprox.(old_sc_smallpulse[!, :SC], new_sc_smallpulse[!, :SC], atol = 1e-1))

0 comments on commit dc1d36d

Please sign in to comment.