-
Notifications
You must be signed in to change notification settings - Fork 21
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
Verify spec #35
Verify spec #35
Conversation
Nice, we should also add this verification to the compilation script and generate a report for each model (e.g. highlight as an error icon on the model card if error detected). |
@FynnBe Can you generate an error report after verification, not only throw error but output details about the error? |
example from travis:
|
coded together with Maksim Novikov
This looks great! |
add Array field that is like a numpy.ndarray
add optional sample_in/outputs
to generate json spec for fields.Shape
The checker works for my most current v3 spec: What's left to do before merging? |
get the tests to pass... |
and start to simplify transformations
pybio/core/datasets/base.py
Outdated
@@ -0,0 +1,34 @@ | |||
import collections | |||
from typing import Dict, Optional, OrderedDict, Sequence, Tuple |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Dict instead of OrderedDict
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went with MutableMapping instead, but seem to have forgotten it here... I'll fix it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if MutableMapping implies ordering, while python Dict does.
I am a bit puzzled why this fails:
|
for PosixPaths this does not seem legal: |
also contains: