-
Notifications
You must be signed in to change notification settings - Fork 42
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
Better error checking for connect
function
#28
Conversation
PR looks good. A few (unrelated) comments:
|
The .json spec files created from the XDSM allow for test verification that the individual subsystems shown in the XDSM are meeting the input and outputs defined by the XDSM. This is achieved with a call to assert_match_spec() which is a util function we made. This is useful from the standpoint of you can have a team sit around and update and agree to an XDSM configuration. And then as that team builds subsystems, they are required to meet those XDSM input/output variables exactly or their tests will fail and their PRs won't be merged in. Hope that helps a bit! |
@ehariton thanks for the description, that makes sense. Is the function At a minimum I think we should rephrase what you wrote and put it into the docstring. In the long term I will look into setting up a documentation site, since this repo is used by many but has virtually no documentation anywhere. |
I'm sure Justin could phrase it more eloquently. Right now we have assert_match_spec() in a private repo. |
we're prototyping the The spec is super general though. I'll add one to this PR Normally I don't like having the PDFs in the repo, but for the examples in this repo I think its valuable because it allows people to download them without having latex... so it makes it easier for them to evaluate if they want to try out the codebase or not. If we had some real docs and added images then the PDFs could go away... IMO |
Thanks for the write up Justin. The point about the PDFs also make sense -- let's keep them in until we have docs up. Then we can build them when we build docs and add them to the site. |
Purpose
I noticed users passing incorrect signatures to the
connect
call, but no errors were being thrown. The incorrect signature had strings being assigned to thelabel_width
argument, and then not showing up in the XDSM.I added an error check so label_width must be an integer (or None) now.
I also made the json spec generator ignore empty strings.
Type of change
Testing
Checklist
Put an
x
in the boxes that apply.Note: documentation not required for this bug fix.