-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make COOSYS and TIMESYS more consistent #23
Comments
Also ensure that |
On Thu, Nov 09, 2023 at 12:11:34AM -0800, Tom wrote:
`TIMESYS` but optional in `COOSYS`. Should those be made
consistent or are they different for a reason other than that they
were created at different times?
The only reason is that they were created at different times (and
perhaps by different people). Unsurprisingly (given that I'm a
co-author), I'd argue that the TIMESYS pattern is what we should
follow. But the question is: how do we do that? Making previously
optional attributes mandatory will make previously valid VOTables
invalid, which is something we're not allowed to do in a minor update
according to current rules.
Me... I'd say we should follow common practices and allow such moves
with sufficient warning. I think python is a good model. They give
deprecation warnings for two or three minor versions and then drop
things that somehow went bad.
Trouble is: I don't think we can push out deprecation warnings from
the normative material of VOTables. Or is there some XSD hack to do
something equivalent?
Would it be a sufficient substitute if we made sure TOPCAT and
astropy gave deprecation warnings?
|
Regarding deprecation warnings from topcat, I could do it but it would likely appear in the logging system at INFO level, which most people would never see. However I could add a WARNING for deprecated features to stilts |
COOSYS
andTIMESYS
are very similar, so their inconsistencies can lead to confusion for implementors. These changes should be made to make them more consistent:State that
COOSYS
andTIMESYS
elements MUST be defined prior to their first reference. CurrentlyCOOSYS
is only a SHOULD, and only for that case of a reference via "ref".State that references to
COOSYS
andTIMESYS
must be explicit via aref
attribute. Currently references toCOOSYS
are allowed to be implicit.These changes likely need to wait for version 2.0 to maintain backward compatibility. This issue could become moot if the nature of the
COOSYS
andTIMESYS
elements changes in other major ways.The text was updated successfully, but these errors were encountered: