Repository navigation
Count the arrays documented before an array of structs by its count - #283
Merged
estebanzimanyi merged 1 commit intoNov 20, 2026
Conversation
#attach_struct_input_arrays states the arrays documented as such just before a documented array of structs as input arrays of that array's count, as #_input_arrays states a run of arrays counted by the integer after it. raster_value_series(traj, rasts, spans, count, band) reads count rasters and count spans; #_input_arrays ends the run at spans, a pointer to one Span or to several, so rasts got no length. A pointer documented otherwise stays out of the run. #_is_array_param is the test of an array by its type, which #_input_arrays reads its runs with. Why: the ten raster and tile series functions stated no array for their rasters and tiles, and the bindings generating from the catalog could not marshal them (JMEOS MobilityDB#244 leaves the ten out of Raster). With MobilityDB documenting their arrays as arrays of their count (branch docs/raster-series-arrays), they state both. Witness: tests/test_shapeinfer.py states rasts and spans of raster_value_series as arrays of count, and a pointer before an array of structs documented otherwise as no array; the first fails without this change. Measured: run.py over MobilityDB 5999c9baeb with that documentation changes the inputArrays of exactly the ten series functions among 7079.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#attach_struct_input_arrays states the arrays documented as such just before a documented array of structs as input arrays of that array's count, as #_input_arrays states a run of arrays counted by the integer after it. raster_value_series(traj, rasts, spans, count, band) reads count rasters and count spans; #_input_arrays ends the run at spans, a pointer to one Span or to several, so rasts got no length. A pointer documented otherwise stays out of the run. #_is_array_param is the test of an array by its type, which #_input_arrays reads its runs with.
Why: the ten raster and tile series functions stated no array for their rasters and tiles, and the bindings generating from the catalog could not marshal them (JMEOS #244 leaves the ten out of Raster). With MobilityDB documenting their arrays as arrays of their count (branch docs/raster-series-arrays), they state both.
Witness: tests/test_shapeinfer.py states rasts and spans of raster_value_series as arrays of count, and a pointer before an array of structs documented otherwise as no array; the first fails without this change. Measured: run.py over MobilityDB 5999c9baeb with that documentation changes the inputArrays of exactly the ten series functions among 7079.