Improve XML Dependency Handling and Documentation in subyt
Submodule
#68
Labels
components.subyt
related to pysubyt
documentation
Improvements or additions to documentation
enhancement
New feature or request
testing
Milestone
There are several improvements needed regarding the handling of
xmlasdict
dependency and XML processing within thesubyt
submodule. These improvements include documentation updates, warning messages, and potentially registering a fake source class. Below are the specific tasks and suggestions:Update Documentation:
xmlasdict
is not a required dependency for the general use ofsubyt
. It is only needed for XML inputs, primarily used inside tests.xmlasdict
.Improve Warning Messages:
log.warn
message indicating that XML support is not available if thexmlasdict
dependency is not met.xmlasdict
dependency. --> this will most likely require the next suggestion!Register a Fake Source Class (New Feature):
XMLSource
.xmlasdict
dependency and guide users accordingly.Tasks
Documentation Update:
xmlasdict
.xmlasdict
dependency.Warning Message Enhancement:
log.warn
to provide a more detailed and upfront message when XML processing is attempted without thexmlasdict
dependency.Register Fake Source Class:
xmlasdict
.Additional Notes
log.warn
implementation already provides a warning about XML support being unavailable when thexmlasdict
dependency is missing. The proposed enhancements aim to make this more user-friendly and informative.The text was updated successfully, but these errors were encountered: