-
Notifications
You must be signed in to change notification settings - Fork 16
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
Write channel id and name to display settings nodes #106
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #106 +/- ##
==========================================
+ Coverage 66.01% 66.18% +0.16%
==========================================
Files 85 85
Lines 10664 10705 +41
==========================================
+ Hits 7040 7085 +45
+ Misses 3624 3620 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
bumping the version-number (in CMakeLists.txt) and an entry in version-history,markdown would be missing. |
* when adding the display-settings with the metadata-builder, by default copy the attributes "Id" and "Name" from the corresponding channel in the channels-node * add an overload of MetadataUtils::WriteDisplaySettings which allows to control what is put into the respective "Id" and "Name" attributes
I added a proposal for a revised version. The idea here is:
|
The line `std::tuple<std::string, std::tuple<bool, std::string>> channelIdAndName;` has been removed from the loop that processes channel display settings. This indicates that the variable `channelIdAndName` is no longer necessary or its usage has been refactored out of this section of the code.
Description
This PR extends libczi to set the Id and Name attributes in the DisplaySettings of the image metadata. For more informatione please see the description of the corresponding issue.
Fixes #105
Type of change
How Has This Been Tested?
Ths PR adds a unit test. Furthermore the changes were tested with a developer build of pylibczirw and manually verifying that the resulting image is loaded in ZEN as expected.