Skip to content

Commit

Permalink
[ALS-4954] Fix continuous visualizations not showing bar when all val…
Browse files Browse the repository at this point in the history
…ues are the same (#136)

* [ALS-4771] Add common area UUID to query

- When the GIC common area makes a federated query request to
the institute nodes, it passes a UUID for the query
- This UUID is to be used in later development as a unifying,
interinstitutional identifier for stuff like data sharing

- Add query UUID to QueryRequest
  - Make QueryRequest ignore unknown fields for backwards compatability
- Add UUID to query meta in passthrough
- Sanity test for missing UUID jackson stuff

* If keys are the same return 1 not 0
  • Loading branch information
JamesPeck authored Aug 25, 2023
1 parent 1ad3a4a commit 8e6a5cb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ private static int calcNumBins(Map<Double, Integer> countMap) {
DescriptiveStatistics da = new DescriptiveStatistics(keys);
double smallestKey = da.getMin();
double largestKey = da.getMax();
if (smallestKey == largestKey) return 1;
double binWidth = (3.5 * da.getStandardDeviation()) / Math.pow(countMap.size(),THIRD);
return (int)Math.round((largestKey - smallestKey) / binWidth);
}
Expand Down

0 comments on commit 8e6a5cb

Please sign in to comment.