Skip to content

Commit

Permalink
fix(integral): fix math for integral with a single value (#4802)
Browse files Browse the repository at this point in the history
Prior to this change an integral with a single value did not scale the
result by the units of the integral. Leaving the units as nanoseconds
which meant that often a very large value was computed. This change
fixes that adds tests and some comments.
  • Loading branch information
nathanielc authored May 27, 2022
1 parent 892defc commit 92cc2b8
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 4,408 deletions.
4 changes: 1 addition & 3 deletions libflux/go/libflux/buildinfo.gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,7 @@ var sourceHashes = map[string]string{
"stdlib/universe/holt_winters_test.flux": "47a236ef553000fb36cdf2756d32a9a923a1b478a974c1369d08d8c6ba3535f9",
"stdlib/universe/hour_selection_test.flux": "b2eecf84519685941ce8fd7f873b4d85d5041c6aa5673a587f2db8cdc9c26ae3",
"stdlib/universe/increase_test.flux": "dc02027842468c99c3ff0dadadde6050a2e38c7ea4bd70c7cf0a7eb10e3f93d7",
"stdlib/universe/integral_columns_test.flux": "485b0319d5bbbd781cf6dbaa0cfcc56ae8d7b25ee9c02815d4b61fcfece993e9",
"stdlib/universe/integral_interpolate_test.flux": "adebcba18f65e119dd3ccb0143b4de9593628765686d8932e679e85f007e786f",
"stdlib/universe/integral_test.flux": "a2b3d16ad20068af8ac7b960b152beb5d4a0319a2b07210467c8cfcdd55ed559",
"stdlib/universe/integral_test.flux": "d4cad5a17770da3224dc89b09a0d1e0382004f19ca60eb8cae338502885a60fb",
"stdlib/universe/join_across_measurements_test.flux": "61d69faa82616287ac875e8878e9c8095a46d638e0cecdc30f9db26763ca1eec",
"stdlib/universe/join_agg_test.flux": "34b8eb508967c31d52dbe4a225d9b48c5ec1177e8021dc98267c5956f285ffdf",
"stdlib/universe/join_mismatched_schema_test.flux": "ec93ea26357783c15da7ac9be3b9b60d01122ad5fd482b802d5d9a6e7b3e5fb2",
Expand Down
Loading

0 comments on commit 92cc2b8

Please sign in to comment.