cloudnetpy-qc 1.25.5__tar.gz → 1.25.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. {cloudnetpy_qc-1.25.5/cloudnetpy_qc.egg-info → cloudnetpy_qc-1.25.6}/PKG-INFO +1 -1
  2. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc/quality.py +6 -4
  3. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc/version.py +1 -1
  4. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6/cloudnetpy_qc.egg-info}/PKG-INFO +1 -1
  5. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/LICENSE +0 -0
  6. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/MANIFEST.in +0 -0
  7. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/README.md +0 -0
  8. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc/__init__.py +0 -0
  9. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc/coverage.py +0 -0
  10. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc/data/area-type-table.xml +0 -0
  11. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc/data/cf-standard-name-table.xml +0 -0
  12. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc/data/data_quality_config.ini +0 -0
  13. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc/data/standardized-region-list.xml +0 -0
  14. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc/py.typed +0 -0
  15. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc/utils.py +0 -0
  16. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc/variables.py +0 -0
  17. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc.egg-info/SOURCES.txt +0 -0
  18. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc.egg-info/dependency_links.txt +0 -0
  19. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc.egg-info/requires.txt +0 -0
  20. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/cloudnetpy_qc.egg-info/top_level.txt +0 -0
  21. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/pyproject.toml +0 -0
  22. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/setup.cfg +0 -0
  23. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/tests/test_qc.py +0 -0
  24. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.6}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudnetpy_qc
3
- Version: 1.25.5
3
+ Version: 1.25.6
4
4
  Summary: Quality control routines for CloudnetPy products
5
5
  Author-email: Finnish Meteorological Institute <actris-cloudnet@fmi.fi>
6
6
  License: MIT License
@@ -821,17 +821,19 @@ class TestCoordinates(Test):
821
821
  else:
822
822
  file_lat, file_lon = utils.average_coordinate(file_lat, file_lon)
823
823
  site_lat, site_lon = utils.average_coordinate(site_lat, site_lon)
824
+ file_lat = np.atleast_1d(file_lat)
825
+ file_lon = np.atleast_1d(file_lon)
826
+ site_lat = np.atleast_1d(site_lat)
827
+ site_lon = np.atleast_1d(site_lon)
824
828
 
825
- dist = np.atleast_1d(
826
- utils.haversine(site_lat, site_lon, file_lat, file_lon)
827
- )
829
+ dist = utils.haversine(site_lat, site_lon, file_lat, file_lon)
828
830
  i = np.argmax(dist)
829
831
  max_dist = self._calc_max_dist(site_lat, site_lon)
830
832
  if dist[i] > max_dist:
831
833
  self._add_error(
832
834
  f"Variables 'latitude' and 'longitude' do not match "
833
835
  f"the site coordinates: "
834
- f"expected ({site_lat:.3f},\u00a0{site_lon:.3f}) "
836
+ f"expected ({site_lat[i]:.3f},\u00a0{site_lon[i]:.3f}) "
835
837
  f"but received ({file_lat[i]:.3f},\u00a0{file_lon[i]:.3f}), "
836
838
  f"distance {round(dist[i])}\u00a0km"
837
839
  )
@@ -2,5 +2,5 @@
2
2
 
3
3
  MAJOR = 1
4
4
  MINOR = 25
5
- PATCH = 5
5
+ PATCH = 6
6
6
  __version__ = f"{MAJOR}.{MINOR}.{PATCH}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudnetpy_qc
3
- Version: 1.25.5
3
+ Version: 1.25.6
4
4
  Summary: Quality control routines for CloudnetPy products
5
5
  Author-email: Finnish Meteorological Institute <actris-cloudnet@fmi.fi>
6
6
  License: MIT License
File without changes
File without changes
File without changes