-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from p2m2/fix_chart
update version fixing chart
- Loading branch information
Showing
7 changed files
with
875 additions
and
812 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
} | ||
.canvasChart { | ||
text-align: center; | ||
width: 350px; | ||
width: 450px; | ||
} | ||
.gridCanvas { | ||
display: grid; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
shared/src/test/scala/fr/inrae/p2m2/tools/FixSerineTooMuchBar.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package fr.inrae.p2m2.tools | ||
|
||
import utest.{TestSuite, Tests, test} | ||
|
||
/* fix bug with too much C2_m204 produced */ | ||
object FixSerineTooMuchBar extends TestSuite { | ||
|
||
def tests: Tests = Tests { | ||
val m = Seq( | ||
"C1C2" -> Seq((0.5229293502028365, Seq(""))), | ||
"C2C3" -> Seq((0.48441859048103897, Seq("m204")),(0.506150883956903, Seq("m278"))), | ||
"C1C3" -> Seq((0.5574118261363693, Seq())), | ||
"C2" -> Seq((0.5100469893183011, Seq())), | ||
).toMap | ||
|
||
val (p, r) = ComputeCarbonMeanEnrichment.setMeanAndFragment(m) | ||
val res = ComputeCarbonMeanEnrichment.computeValues(r, p) | ||
val res2 = ComputeCarbonMeanEnrichment.computeValues(res, p) | ||
res2.filter(_._1 == "C2").values.foreach( | ||
aa => aa.foreach( | ||
bb => println(bb) | ||
) | ||
) | ||
} | ||
|
||
} |