Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatting in configuration documentation #1950

Merged
merged 2 commits into from Dec 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/source/config.rst
Expand Up @@ -106,7 +106,7 @@ Whether or not generated longitude and latitude coordinates should be cached
to on-disk zarr arrays. Currently this only works in very specific cases.
Mainly the lon/lats that are generated when computing sensor and solar zenith
and azimuth angles used in various modifiers and compositors. This caching is
only done for ``AreaDefinition``-based geolocation, not ``SwathDefinition``s.
only done for ``AreaDefinition``-based geolocation, not ``SwathDefinition``.
Arrays are stored in ``cache_dir`` (see above).

When setting this as an environment variable, this should be set with the
Expand All @@ -132,7 +132,7 @@ Cache Sensor Angles
Whether or not generated sensor azimuth and sensor zenith angles should be
cached to on-disk zarr arrays. These angles are primarily used in certain
modifiers and compositors. This caching is only done for
``AreaDefinition``-based geolocation, not ``SwathDefinition``s.
``AreaDefinition``-based geolocation, not ``SwathDefinition``.
Arrays are stored in ``cache_dir`` (see above).

This caching requires producing an estimate of the angles to avoid needing to
Expand Down
7 changes: 1 addition & 6 deletions satpy/tests/writer_tests/test_awips_tiled.py
Expand Up @@ -19,7 +19,6 @@

import logging
import os
import warnings
from datetime import datetime, timedelta
from glob import glob

Expand Down Expand Up @@ -197,12 +196,8 @@ def test_units_length_warning(self):
input_data_arr = self._get_test_lcc_data(data, area_def)
input_data_arr.attrs["units"] = "this is a really long units string"
w = AWIPSTiledWriter(base_dir=self.base_dir, compress=True)
with warnings.catch_warnings(record=True) as caught_warnings:
with pytest.warns(UserWarning, match=r'.*this is a really long units string.*too long.*'):
w.save_dataset(input_data_arr, sector_id='TEST', source_name='TESTS')
assert len(caught_warnings) == 1
warn_msg = caught_warnings[0].message.args[0]
assert "too long" in warn_msg
assert "this is a really long units string" in warn_msg

@pytest.mark.parametrize(
("tile_count", "tile_size"),
Expand Down