Skip to content

Count the arrays documented before an array of structs by its count - #283

Merged
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:feat/array-run-through-struct-array
Nov 20, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:feat/array-run-through-struct-array

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

#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.

#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.
@estebanzimanyi
estebanzimanyi merged commit f961098 into MobilityDB:master Nov 20, 2026
3 checks passed
@estebanzimanyi
estebanzimanyi deleted the feat/array-run-through-struct-array branch November 20, 2026 14:54
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.

1 participant