-
Notifications
You must be signed in to change notification settings - Fork 112
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
Plaintext Reader Docs are wrong #19663
Comments
Hello, I see that the code is being generated from "visit/src/test/tests/databases Do I need the issue to be assigned before I start working and put in a PR? |
Hi @DecodersLord thanks for jumping in here!
Nope, not at all! It looks like you went ahead and got started so that's great.
This is unfortunate. I didn't look into this when I opened the ticket. I assumed it was merely a code example in the docs that was incorrect, and I didn't think that it was borrowing code from our tests. It looks like we don't want to change our tests for reasons listed in the test file: https://github.com/visit-dav/visit/blob/develop/src/test/tests/databases/plaintext.py#L38 I'm at a loss for how to advise here. I will discuss with the other @visit-dav/visit-developers and get back to you. |
Thank you for your response @JustinPrivitera... I will wait for your response and can make other changes if required. |
@JustinPrivitera if the problem is that the symbol named used in the test and ultimately then appearing in the documentation is misleadingly similar to but ultimately different from the actualy CLI function a user should call, I think there are some simple remedies.
|
Thanks for chiming in @markcmiller86! Those are great solutions. |
Sure. That code is really trying to serve a few different masters...to be a faithful representation of the actual CLI code and to be easily included in our documentation and to be testable and tested with our nighly tests. All that can create situations where we present to users in our docs code that doesn't quite faithfully represent the CLI and when we discover such situations, we should correct them as you have identified here. |
Thank you for the solutions @markcmiller86. I guess you can decline my previous PR and I will put in a new one? |
@DecodersLord I think either would be fine. The first is nice and simple. I would ensure the comment explains that
No need for that; you can just make changes on the branch that you already have. |
The code example here is wrong:
should be
The text was updated successfully, but these errors were encountered: