Some updates to ADES schema after validation attempts using MPC obs table#95
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the ADES schema and supporting tooling/docs to reflect validation findings from MPC observation data, including relaxed field length constraints and an additional photometric band conversion for MPC 80-column export.
Changes:
- Update XSD constraints:
refmax length to 28, telescopedesignto 35, and adjusttrkSubpattern handling. - Add/extend test fixtures for schema validation (new XML inputs) and band conversion (
Rj→R) expected output. - Refresh documentation workflow instructions and update generated artifacts.
Reviewed changes
Copilot reviewed 10 out of 16 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| xsd/submit.xsd | Updates schema limits/patterns for submit validation (notably RefType length and Telescope design). |
| xsd/general.xsd | Updates schema limits/patterns for general validation (RefType length and Telescope design). |
| xml/adesmaster.xml | Updates master schema source and embedded documentation for RefType, trkSub pattern, and Telescope design. |
| Python/ades/xmltompc80col.py | Adds missing Rj→R band conversion and applies formatting/cleanup. |
| tests/test_validation.py | Extends valgeneral test matrix with new XML fixtures. |
| tests/input/obs_design.xml | New fixture to validate longer telescope design strings. |
| tests/input/obs_ITF_trksub.xml | New fixture covering ITF-style trkSub values containing /. |
| tests/input/band_conversions.xml | Adds an optical record using Rj to validate conversion behavior. |
| tests/expected/band_conversions.obs | Updates expected MPC80 output for the new Rj case. |
| doc/README.docs | Updates doc build commands to call scripts via ./. |
| attic/ades_master_22Dec2025.pdf | Adds the generated PDF artifact to the attic snapshot set. |
Comments suppressed due to low confidence (1)
xsd/submit.xsd:339
- This change updates OldTrkSubType's pattern, but submit.xsd's TrkSubType only unions BaseTrkSubType, so '/' will still be rejected for submit-schema validation. If the intent is to allow '/' in submitter files, TrkSubType needs to include OldTrkSubType or BaseTrkSubType's pattern needs to be expanded accordingly.
<xsd:simpleType name="OldTrkSubType">
<xsd:restriction base="StringType">
<xsd:pattern value="[- ?+@./()/\\A-Za-z0-9_]*"/>
<xsd:maxLength value="8"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="TrkSubType">
<xsd:union memberTypes="BaseTrkSubType"/>
</xsd:simpleType>
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
stevenstetzler
approved these changes
Mar 17, 2026
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.
@stevechesley , @stevenstetzler
after some discussions we had around observations consistency, this is a PR containing some of the changes we talked about:
trkSubto contain/(this will validate ITF observations)refto be 28 chars long (this is the max length we have in the database)designto be 35 chars long (Marco Micheli's request)Then I added one conversion from
RjtoRthat was missing.I added the tests and update the documentation.
[cc @matthewjohnpayne ]