8000 Nyaml2nxdl bug by RubelMozumder · Pull Request #78 · FAIRmat-NFDI/pynxtools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Nyaml2nxdl bug #78

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

Merged
merged 61 commits into from
Mar 27, 2023
Merged

Nyaml2nxdl bug #78

merged 61 commits into from
Mar 27, 2023

Conversation

RubelMozumder
Copy link
Collaborator

This seams work perfectly still not taking care of comments in forward and backward convert.

For comments I have another branch nyaml2nxdl_comment_conversion:
Self Comments for dev:

  1. yaml comments can be collected in CommentCollector class:
    TODO: Needs to track of parent yaml node such as NX-fields, NX-attributes and NX-Group etc
  2. XML comments also can be collected by CommentCollector class, need to test whether the class working for XML comments perfectly or not.

@sanbrock sanbrock self-requested a review March 22, 2023 17:39
Copy link
Collaborator
@sanbrock sanbrock left a comment

Choose a reason for hiding this comment

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

please make sure that ci/cd passes.

@domna
Copy link
Collaborator
domna commented Mar 23, 2023

please make sure that ci/cd passes

The problem is that the master branch is currently failing with the exact same error we have here. We need to merge #75 first and then rebase here to fix the ci/cd

RubelMozumder added 23 commits March 23, 2023 16:26
        ['\0', '\a', '\b', '\t', '\t',
         '\n', '\v', '\f', '\r', '\e',
         ' ', '"', '\', '/', '\N',
         '\_', '\L', '\P']
indide any doboule codes.
changes: All doc strings are in the next lines without any double codes.
        ['\0', '\a', '\b', '\t', '\t',
         '\n', '\v', '\f', '\r', '\e',
         ' ', '"', '\', '/', '\N',
         '\_', '\L', '\P']
indide any doboule codes.
changes: All doc strings are in the next lines without any double codes.
…traGroups','ignoreExtraFields',

                       'ignoreExtraAttributes']
Adding some TODO for making code clean and more readable.
…sted_handle' instead making the code real recursive.
fixing attributes of attributes and including recursive_build for xml_hadle_attribute in yaml->nxdl
append link functionality with backward converter
@coveralls
Copy link
coveralls commented Mar 23, 2023
8000

Pull Request Test Coverage Report for Build 4518429705

  • 658 of 861 (76.42%) changed or added relevant lines in 5 files are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.9%) to 56.346%

Changes Missing Coverage Covered Lines Changed/Added Lines %
nexusutils/nyaml2nxdl/nyaml2nxdl_helper.py 23 28 82.14%
nexusutils/nyaml2nxdl/nyaml2nxdl.py 5 12 41.67%
nexusutils/nyaml2nxdl/nyaml2nxdl_backward_tools.py 275 363 75.76%
nexusutils/nyaml2nxdl/nyaml2nxdl_forward_tools.py 336 439 76.54%
Files with Coverage Reduction New Missed Lines %
nexusutils/nyaml2nxdl/nyaml2nxdl_forward_tools.py 2 79.32%
nexusutils/nyaml2nxdl/nyaml2nxdl.py 2 43.94%
Totals Coverage Status
Change from base Build 4502430097: 0.9%
Covered Lines: 4124
Relevant Lines: 7319

💛 - Coveralls

Copy link
Collaborator
@andreaa93 andreaa93 left a comment

Choose a reason for hiding this comment

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

I find the code much more robust now, it is perfectly dealing with all the subtleties of the nxdl fileformat. I also like the new stdoutput of the --verbose flag

@domna domna mentioned this pull request Mar 27, 2023
@RubelMozumder RubelMozumder requested a review from sanbrock March 27, 2023 10:05
@RubelMozumder
Copy link
Collaborator Author

Done!

@RubelMozumder RubelMozumder merged commit 53131c0 into master Mar 27, 2023
@RubelMozumder RubelMozumder deleted the nyaml2nxdl_bug branch March 28, 2023 12:54
RubelMozumder added a commit that referenced this pull request Jun 28, 2023
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.

5 participants
0