예제 #1
0
 def _update_kwargs(self, kwargs: Any) -> Dict[str, Any]:
     """
     Update the kwargs.
     """
     temp_kwargs: Dict[str, Any] = super()._update_kwargs(kwargs)
     temp_kwargs['color_sequencelabels'] = labels(self.start_position)[0]
     temp_kwargs['number_sequencelabels'] = labels(self.start_position)[1]
     return temp_kwargs
 def _update_kwargs(self, kwargs: Any) -> Dict[str, Any]:
     """
     Update the kwargs.
     """
     temp_kwargs: Dict[str, Any] = super()._update_kwargs(kwargs)
     # load labels
     temp_kwargs['color_sequencelabels'] = labels(self.start_position)[0]
     temp_kwargs['number_sequencelabels'] = labels(self.start_position)[1]
     temp_kwargs['colorbar_heatmap_label'] = kwargs.get(
         'colorbar_heatmap_label', r'$∆E^x_i$')
     return temp_kwargs
 def _update_kwargs(self, kwargs: Any) -> Dict[str, Any]:
     """
     Update the kwargs.
     """
     temp_kwargs: Dict[str, Any] = super()._update_kwargs(kwargs)
     # load labels
     temp_kwargs['color_sequencelabels'] = labels(self.start_position)[0]
     temp_kwargs['number_sequencelabels'] = labels(self.start_position)[1]
     temp_kwargs["y_label_fontsize"] = kwargs.get('y_label_fontsize', 6)
     temp_kwargs["x_label_fontsize"] = kwargs.get('x_label_fontsize', 6.5)
     return temp_kwargs
def test_labels() -> None:
    """testing function produces tuple"""
    assert (str(type(
        labels(1)))) == "<class 'tuple'>", "function _labels failed"