File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
tensorboard/webapp/metrics Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,27 @@ export function buildMetricsSettingsState(
64
64
} ;
65
65
}
66
66
67
+ // Since Settings proto has missing fields, we need to build a partial of
68
+ // Settings to be used in tests.
69
+ export function buildMetricsSettingsOverrides (
70
+ overrides ?: Partial < MetricsSettings >
71
+ ) : Partial < MetricsSettings > {
72
+ return {
73
+ cardMinWidth : null ,
74
+ tooltipSort : TooltipSort . NEAREST ,
75
+ ignoreOutliers : false ,
76
+ xAxisType : XAxisType . WALL_TIME ,
77
+ scalarSmoothing : 0.3 ,
78
+ hideEmptyCards : true ,
79
+ scalarPartitionNonMonotonicX : false ,
80
+ imageBrightnessInMilli : 123 ,
81
+ imageContrastInMilli : 123 ,
82
+ imageShowActualSize : true ,
83
+ histogramMode : HistogramMode . OFFSET ,
84
+ ...overrides ,
85
+ } ;
86
+ }
87
+
67
88
function buildBlankState ( ) : MetricsState {
68
89
return {
69
90
tagMetadataLoadState : {
You can’t perform that action at this time.
0 commit comments