Skip to content

Unskip biologic tests#165

Merged
ScottSoren merged 3 commits into
ixdat:mainfrom
matenestor:unskip_biologic_tests
Feb 7, 2024
Merged

Unskip biologic tests#165
ScottSoren merged 3 commits into
ixdat:mainfrom
matenestor:unskip_biologic_tests

Conversation

@matenestor

Copy link
Copy Markdown
Member

Fixes for failing tests for reading biologic files and checking dataset integration consistency. This is a patch after #134 which now creates cycle number and Ns series with =0 suffix when they are missing in an .mpt file. (This triggered a change in Zilien code as well 😄 ).

@matenestor matenestor requested a review from ScottSoren February 6, 2024 16:05
@matenestor

Copy link
Copy Markdown
Member Author

Is a changelog entry required for this?

@ScottSoren ScottSoren left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One question but looks good! Thanks for diagnosing and fixing these tests :)

elif mpt_name.endswith("=0"):
# ConstantValue series with "=0" suffix is created when an
# essential series is not in the parsed dataset.
# This suffix is removed by Zilien when integrating .mpt files,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@matenestor , what is Zilien's behavior when running with EC data incorporated from a Biologic file with Ns? Without Ns?
When does Zilien add an Ns column to the data? Does it remove a "=0" suffix, or just (in contrast to ixdat) not add such a suffix?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@ScottSoren Zilien will now remove the "=0" suffix created from all columns names containing it, so they are there in a pure form, since ixdat doesn't load the columns as ConstantValue anyway.
Though, there is a column raw_current=0 (at least this one) being produced by Zilien, because back then I didn't think there would be a difference. But I am patching the dataset generation now.

Comment thread tests/functional/test_zilien_reader.py
@ScottSoren

Copy link
Copy Markdown
Member

I think no Changelog needed for this. Merging (but see questions in comments). Thanks for the PR!

@ScottSoren ScottSoren merged commit 1f60bd5 into ixdat:main Feb 7, 2024
ScottSoren added a commit that referenced this pull request Feb 7, 2024
This was necessary to include fixes of tests (#165) before PR'ing a fix
to #158
@ScottSoren ScottSoren mentioned this pull request Feb 7, 2024
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.

2 participants