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

Improve model for BinData #11

Merged
merged 2 commits into from
Jul 21, 2020
Merged

Conversation

jmuhlich
Copy link
Collaborator

No description provided.

In the schema BinData is an extension of string, but modeling this in python
as a subclass of str with extra constructor args is not feasible. Instead
this change moves the string content to a `value` attribute which aligns
with how our to_dict converter presents element text content.

Fixes tlambert03#9
* Now that BinData parses properly we can remove the xfail marker from
  about half of the sample ome-xml files
* Refactor filename stem extraction
* Invert SHOULD_PASS to SHOULD_FAIL for easier updating
* Remove +x mode bit from sample xml files
@codecov-commenter
Copy link

Codecov Report

Merging #11 into master will decrease coverage by 0.20%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
- Coverage   95.40%   95.20%   -0.21%     
==========================================
  Files           1        1              
  Lines         392      396       +4     
==========================================
+ Hits          374      377       +3     
- Misses         18       19       +1     
Impacted Files Coverage Δ
src/ome_autogen.py 95.20% <100.00%> (-0.21%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40d5492...34d232e. Read the comment docs.

Copy link
Owner

@tlambert03 tlambert03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fantastic!
I can't access that original file you sent me that wasn't working... is any of this working for your stuff yet?

@@ -35,16 +54,19 @@ def mark_xfail(fname):
),
)

def true_stem(p):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tlambert03 tlambert03 merged commit 4dbadfa into tlambert03:master Jul 21, 2020
@jmuhlich jmuhlich deleted the bindata-class branch July 21, 2020 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants