Skip to content

drop ivoa COORDS model dependency and replace with simpler definitions#13

Merged
pahjbo merged 2 commits into
masterfrom
drop_coords_model
Mar 16, 2026
Merged

drop ivoa COORDS model dependency and replace with simpler definitions#13
pahjbo merged 2 commits into
masterfrom
drop_coords_model

Conversation

@pahjbo
Copy link
Copy Markdown
Member

@pahjbo pahjbo commented Mar 13, 2026

at the same time attempt to use the ADQL geom point type as the main implementation of position.

at the same time attempt to use the ADQL geom point type as the main implementation of position.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 13, 2026

Test Results

30 tests  ±0   30 ✅ ±0   41s ⏱️ -2s
 4 suites ±0    0 💤 ±0 
 4 files   ±0    0 ❌ ±0 

Results for commit 9b9006c. ± Comparison against base commit db8a391.

♻️ This comment has been updated with latest results.

@pahjbo pahjbo marked this pull request as ready for review March 16, 2026 13:05
Copilot AI review requested due to automatic review settings March 16, 2026 13:05
Copy link
Copy Markdown

Copilot AI left a comment

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 ProposalDM and ProposalManagement models to remove the dependency on the IVOA COORDS/STC coords model, replacing it with a simplified internal proposal:coords package and using ADQL geometry (adqlgeom:Point) as the primary representation for sky positions. It also bumps model/library versions and updates the build to use the ADQLGeomDM dependency and apply formatting to generated Java.

Changes:

  • Replace COORDS/STC coordinate types with proposal:coords primitives/dtypes (e.g., mjd, CartesianPoint) and adqlgeom:Point-based CelestialPosition.
  • Update example/test code to use the new position and polarization types (CelestialPosition, Polarization, Mjd, SinglePointing) and new Ivoid package.
  • Bump model versions to 0.7 and adjust Gradle configuration/dependencies (ADQLGeomDM, Spotless, repository URL).

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/test/java/org/ivoa/dm/proposal/prop/NOTexample.java Updates imports and replaces STC polarization enum usage with new proposal:coords.Polarization.
src/test/java/org/ivoa/dm/proposal/prop/LCOExample.java Switches Ivoid import to org.ivoa.vodml.stdtypes.Ivoid.
src/test/java/org/ivoa/dm/proposal/prop/ExampleProposal.java Migrates target coordinates to CelestialPosition with adqlgeom:Point and uses Mjd + new polarization enum.
src/test/java/org/ivoa/dm/proposal/prop/ExampleGenerator.java Changes reference frame accessors from SpaceSys to String.
src/test/java/org/ivoa/dm/proposal/prop/EmerlinExampleTest.java Updates field example from old STC point field to new SinglePointing/CelestialPosition using Point.
src/test/java/org/ivoa/dm/proposal/prop/EmerlinExample.java Replaces STC polarization enum usage with proposal:coords.Polarization and updates Ivoid import.
src/test/java/org/ivoa/dm/proposal/prop/BaseGenerator.java Updates getICRS/getICRF implementations to return String.
src/test/java/org/ivoa/dm/proposal/prop/BaseExample.java Replaces STC SpaceSys objects with string reference frames; updates telescope location dtype field name to refpos.
src/test/java/org/ivoa/dm/proposal/prop/AbstractProposalTest.java Adjusts coordinate frame assertions to the new CelestialTarget.coord.referenceFrame structure.
src/main/vodsl/proposaldm.vodsl Bumps model version, switches import to ADQLGeomDM, adds proposal:coords package, introduces CelestialPosition, replaces/renames field types, and updates polarization/epoch modeling.
src/main/vodsl/proposalManagement.vodsl Bumps model version, switches import to ADQLGeomDM, and updates telescope location type to proposal:coords.CartesianPoint.
src/main/vo-dml/proposaldm.vo-dml.xml Regenerates VO-DML XML for model v0.7: new import, new coords package/types, updated target/field structures.
src/main/vo-dml/proposalManagement.vo-dml.xml Regenerates VO-DML XML for model v0.7: import change and location type update.
settings.gradle.kts Switches repository URL to the public repo endpoint.
mkdocs_template.yml Sets docs_dir: docs/ for MkDocs configuration.
build.gradle.kts Updates plugin/version/dependency, adds Spotless formatting for generated Java, and switches dependency to ADQLGeomDM.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pahjbo pahjbo merged commit 5653e68 into master Mar 16, 2026
6 of 7 checks passed
@pahjbo pahjbo deleted the drop_coords_model branch March 16, 2026 13:33
pahjbo added a commit to orppst/pst-api-service that referenced this pull request Mar 17, 2026
* simplifying of the coordsys just being string
* actual source coordinates use a Point object from ADQLGeom

see ivoa/ProposalDM#13 for all the changes to the model
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.

2 participants