-
Notifications
You must be signed in to change notification settings - Fork 23
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
synchronize tests across langs, add helper makefile #767
Conversation
|
@javh @bussec Are we allowing
it seems even if we don't accept NA, this is maybe a python bug? |
Catching the exception prevents the crash, but I'm not sure if that is what we want, or if we want pandas to allow NA and transform to None.
|
The R library will accept I think allowing |
bad, but no so bad it causes a crash! It isn't so much about what to test in the "bad" file. I'm more worried that in a "good" file there is an |
I would suggest that on input from an AIRR file, NA/None should not be interpreted as null and this should be rejected. It is non compliant if the data has NA/None for null, no? Also on output, it should never output NA/None for null, it should always output an empty string. |
Yeah, it's true that the files are non-compliant if they include NA/None. And the R and python libraries do output empty string for NA/None values. But, NA/None tend to be the default outputs from TSV writers outside the airr reference libraries. So, it's a compromise to deal with typical TSV output. |
Sounds like there are two things here. 1) change the test so it works for both R and python. That should be easy then. 2) python and R need more support for null-like values, for cross-language interoperability of AIRR TSV. That should probably be it's own issue, as it's new code to write, with the task to write additional tests to handle the null-like values. |
@schristley Can you remind me, did we decide to back out of the V2 conversion script, just make the V3 spec the default, and manually maintain the V2 spec? |
yes, I believe so |
@javh I changed this PR to be primarily to synchronize the tests, and add the Makefile. |
Start building the base so we only need to edit the OpenAPI v3 spec, and the v2 spec can be generated from v3. Also clean up the test suites so there is one common set of test data files used by all languages.
Restarted as I messed up the master merge with the old PR #758