Skip to content

Updates to EMTFXML - #291

Merged
kujaku11 merged 18 commits into
mainfrom
patches
Oct 7, 2026
Merged

kujaku11 merged 18 commits into
mainfrom
patches

Conversation

@kujaku11

@kujaku11 kujaku11 commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Some updates need to be done to EMTFXML and how it is written.

  • In provenance.submitter and provenance.createor the key words should be changes from organization to org and url to org_url. This is a pain and should be dealt with in the future to have consistent key words.
  • Change units in DataType to have brackets like in mV/km/nT goes to [mV/km]/[nT] and an unknown unit goes to "[]"
  • Change Location.datum if "WGS 84" remove the space, even though that is the official representation.
  • Add settings subelement to an Instrument object
  • Change ProcessDate and Software.last_mod to return just dates
  • Update tests

reluctantly, there is different key word names for organization and url.
tipper units should be "[]" and impedance units should be "[mV/km]/[nT]".
The official representation of WGS84 is with a space, but here we are forcing no space.
@kujaku11 kujaku11 self-assigned this Oct 5, 2026
kujaku11 and others added 6 commits October 5, 2026 12:35
Switch `DataType.units` default to the canonical `[mV/km]/[nT]` form and update related tests to match validator behavior for empty/invalid units (`[]`) and XML output. Adjust instrument XML tests to expect `settings` to always be emitted per EMTFXML requirements, including null-like values. Update EMTFXML provenance test fixtures to include creator/submitter organization and URL fields from current metadata output.
Update EMTFXML provenance tests to import `Person` from the EMTFXML metadata module and use the current `Person.org` field instead of `organization`. This keeps the test suite aligned with the actual EMTFXML metadata model and serialized field names.
Change `ProcessingSoftware.last_mod` default to use `MTime(...).date`, making it a normalized ISO date string instead of an `MTime` object. Update EMTFXML software metadata tests to assert date-only string behavior for `last_mod` while keeping `last_updated` assertions as `MTime`.
@kujaku11 kujaku11 added the release:patch patch release label Oct 7, 2026
@kujaku11
kujaku11 merged commit 9cc21f0 into main Oct 7, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:patch patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant