Skip to content
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

Resolve bad YAML output display in the API #1370

Closed
KevinCawley opened this issue Dec 6, 2020 · 0 comments · Fixed by #1546
Closed

Resolve bad YAML output display in the API #1370

KevinCawley opened this issue Dec 6, 2020 · 0 comments · Fixed by #1546

Comments

@KevinCawley
Copy link
Contributor

Code Sample, a copy-pastable example if possible

YAMLLoader.add_constructor("!quantity", YAMLLoader.construct_quantity)
YAMLLoader.add_implicit_resolver(
    "!quantity", MockRegexPattern(quantity_from_str), None
)
YAMLLoader.add_implicit_resolver(
    "tag:yaml.org,2002:float", MockRegexPattern(float), None
)
YAMLLoader.add_constructor(
    yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG,
    YAMLLoader.mapping_constructor,

Problem description

image

This code is from https://github.com/tardis-sn/tardis/blob/master/tardis/io/util.py, and displays in https://tardis-sn.github.io/tardis/api/tardis.io.util.html

This is causing two large text walls of YAML code to be generated when docs are compiled. This code needs to be corrected so this text wall is not present. It may be an issue with the YAML and what it is loading, or it may be something else.

atharva-2001 added a commit to atharva-2001/tardis that referenced this issue Apr 23, 2021
atharva-2001 added a commit to atharva-2001/tardis that referenced this issue Apr 23, 2021
atharva-2001 added a commit to atharva-2001/tardis that referenced this issue Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants