Skip to content

VRT Derived Bands: Allow mul and sum to apply constant factor to a single band #12069

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

Merged
merged 2 commits into from
Apr 15, 2025

Conversation

dbaston
Copy link
Member

@dbaston dbaston commented Apr 2, 2025

No description provided.

@rouault rouault added this to the 3.11.0 milestone Apr 2, 2025
@coveralls
Copy link
Collaborator

coveralls commented Apr 2, 2025

Coverage Status

coverage: 70.59% (+0.06%) from 70.531%
when pulling 22383dc on dbaston:vrt-pixelfn-constant-factor
into 9bffc4c on OSGeo:master.

@rouault
Copy link
Member

rouault commented Apr 14, 2025

@dbaston There's a test failure on Windows: https://github.com/dbaston/gdal/actions/runs/14440899536/job/40490611506 . I suspect that must be related to Trace = f'open("{tmp_path}/num_sources_skip_true.txt", "wt").write(str(len(in_ar)))'. On Windows '{tmp_path}' will expand to a string with backslashes. But when reinjected in ret, {Trace} will be evaluated in a Python context at runtime, and so those backslashes should be escaped.

@dbaston dbaston force-pushed the vrt-pixelfn-constant-factor branch from 22383dc to e1a8d32 Compare April 15, 2025 14:55
@dbaston dbaston force-pushed the vrt-pixelfn-constant-factor branch from e1a8d32 to 9826df7 Compare April 15, 2025 15:48
@rouault rouault merged commit 291e959 into OSGeo:master Apr 15, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants