Skip to content

Sens.positions.effective.times - #1362

Open
covesturtevant wants to merge 7 commits into
masterfrom
sens.positions.effective.times
Open

Sens.positions.effective.times#1362
covesturtevant wants to merge 7 commits into
masterfrom
sens.positions.effective.times

Conversation

@covesturtevant

@covesturtevant covesturtevant commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Add effective start and end times to the sensor positions file in the publication metadata. Also fix bug that used only the first reference geolocation rather than the full reference location history. This bug had not yet impacted any published data.

Tested successfully in pachy-dev with the following data products (added fictitious sensor and reference location moves in INT):
DP1.00094.001 (Soil water content) - sensor-specific processing
DP1.20264.001 (Temp specific depths) - sensor-specific processing
DP1.00045.001 (tipping bucket precip)
DP1.00046.001 (throughfall precip)

Copilot AI lite review requested due to automatic review settings August 18, 2026 22:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the sensor_positions.csv publication metadata to always include effective start/end timestamps and corrects reference-location handling so rows reflect the appropriate reference geolocation over time (rather than always using the first reference geolocation).

Changes:

  • Always emit effectiveStartDateTime / effectiveEndDateTime columns and populate them from the intersection of sensor and reference geolocation validity windows.
  • Fix reference location coordinate selection so each emitted row uses the coordinates from the reference geolocation in effect for that row.
  • Expand unit tests to cover overlap behavior, multiple independent geolocation changes, and correct coordinate selection.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
modules/pub_files/tests/sensor_positions_file/test_sensor_positions_file.py Updates/extends tests to validate new effective-date columns, overlap filtering, and reference-geolocation coordinate correctness.
modules/pub_files/output_files/sensor_positions/sensor_specific_processors.py Removes the old “blank effective columns” flag and always includes effective dates in tchain rows.
modules/pub_files/output_files/sensor_positions/sensor_positions_file.py Always writes the expanded header, computes effective windows, uses per-geolocation reference coordinates, and sorts output rows by HOR.VER + effective start.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread modules/pub_files/output_files/sensor_positions/sensor_positions_file.py Outdated
covesturtevant and others added 3 commits August 18, 2026 16:42
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
burlingamet
burlingamet previously approved these changes Aug 18, 2026
@covesturtevant

covesturtevant commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

This PR is on hold for merging, awaiting updates to neonUtilities to handle the new columns.

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