Skip to content

Commit

Permalink
fix: update aquatic pollution scenario ratios.
Browse files Browse the repository at this point in the history
  • Loading branch information
n1k0 committed Jan 9, 2025
1 parent 99d1ff6 commit f9f0407
Show file tree
Hide file tree
Showing 3 changed files with 234 additions and 234 deletions.
4 changes: 2 additions & 2 deletions src/Data/Country.elm
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ getAquaticPollutionRatio : AquaticPollutionScenario -> Split
getAquaticPollutionRatio scenario =
case scenario of
Average ->
Split.fromPercent 36 |> Result.withDefault Split.full
Split.fromPercent 19 |> Result.withDefault Split.full

Best ->
Split.tenth

Worst ->
Split.fromPercent 65 |> Result.withDefault Split.full
Split.fromPercent 37 |> Result.withDefault Split.full


isEuropeOrTurkey : Country -> Bool
Expand Down
2 changes: 1 addition & 1 deletion tests/Data/Textile/SimulatorTest.elm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ suite =
[ { tShirtCotonFrance
| countrySpinning = Nothing
}
|> expectImpact db ecs 1401.079098395078
|> expectImpact db ecs 1453.0693568489341
|> asTest "should compute a simulation ecs impact"
, describe "disabled steps"
[ { tShirtCotonFrance | disabledSteps = [ Label.Ennobling ] }
Expand Down
Loading

0 comments on commit f9f0407

Please sign in to comment.