Closed djhoese closed 3 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 93.97%. Comparing base (
5f69bd8
) to head (0a47fd3
). Report is 5 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hm pre-commit on my local machine is behaving differently than pre-commit.ci.
Satpy unstable environment started failing and regular environments will start failing too when conda-forge has numpy 2.1.0 available.
Starting with numpy 2.1.0 the numpy function
histogram_bin_edges
will raise aValueError
if the array you give it can't be split into the number of buckets you request (default 10). This happens when the elements of an array are so close together (near floating point precision) that numpy can't possibly split things into N buckets. There error you get is:This PR works around this by adding a try/except to the call and just returning the two elements of the input array. As far as I can tell this is basically equivalent.
git diff origin/main **/*py | flake8 --diff