Exemplo n.º 1
0
    def test_format_kwargs(self):
        attrs = dict(standard_name='tx_min',
                     long_name='Minimum of daily maximum temperature',
                     cell_methods='time: minimum within {freq}')

        format_kwargs(attrs, {'freq': 'YS'})
        assert attrs['cell_methods'] == 'time: minimum within years'
Exemplo n.º 2
0
    def test_format_kwargs(self):
        attrs = dict(
            standard_name="tx_min",
            long_name="Minimum of daily maximum temperature",
            cell_methods="time: minimum within {freq}",
        )

        format_kwargs(attrs, {"freq": "YS"})
        assert attrs["cell_methods"] == "time: minimum within years"