Construct an instance of the DataValidator (this is the validator that inputs a list of traces) Parameters ---------- base_trace_node : PlotlyNode that is the parent of all of the individual trace nodes Returns ------- BaseDataValidator
(base_trace_node: TraceNode)
| 110 | |
| 111 | |
| 112 | def get_data_validator_instance(base_trace_node: TraceNode): |
| 113 | """ |
| 114 | Construct an instance of the DataValidator |
| 115 | (this is the validator that inputs a list of traces) |
| 116 | |
| 117 | Parameters |
| 118 | ---------- |
| 119 | base_trace_node : |
| 120 | PlotlyNode that is the parent of all of the individual trace nodes |
| 121 | Returns |
| 122 | ------- |
| 123 | BaseDataValidator |
| 124 | """ |
| 125 | |
| 126 | # Build constructor params |
| 127 | # We need to eval the values to convert out of the repr-form of the |
| 128 | # params. e.g. '3' -> 3 |
| 129 | params = build_data_validator_params(base_trace_node) |
| 130 | |
| 131 | # Build and return BaseDataValidator instance |
| 132 | return _plotly_utils.basevalidators.BaseDataValidator(**params) |
no test coverage detected