Skip to content

Devices: Replace Metadata with MM::CameraImageMetadata - #843

Merged
marktsuchida merged 5 commits into
micro-manager:mainfrom
marktsuchida:metadata-map
Feb 19, 2026
Merged

Devices: Replace Metadata with MM::CameraImageMetadata#843
marktsuchida merged 5 commits into
micro-manager:mainfrom
marktsuchida:metadata-map

Conversation

@marktsuchida

@marktsuchida marktsuchida commented Feb 18, 2026

Copy link
Copy Markdown
Member

This is to be the first half of #797.

Added CameraImageMetadata (CameraImageMetadata.h) as an equivalent replacement to Metadata (ImageMetadata.h), for all uses by cameras. MMDevice unit tests added.

To do in this PR:

  • Update MMCore metadata unit tests
  • Update AddTag/RemoveTag implementation in CCameraBase
  • Replace all Metadata uses by cameras
    • Check build on macOS
    • Check build on Windows
    • Check build on Linux

A separate PR will finish #797 by moving ImageMetadata.h to MMCore, after out-of-tree camera adapters have a chance to update.

@marktsuchida
marktsuchida force-pushed the metadata-map branch 3 times, most recently from b89a7f3 to 99013af Compare February 19, 2026 04:48
This is a clean replacement for the uses of Metadata (ImageMetadata.h)
in device (camera) adapters.

Unit tests show how existing usage of Metadata can be migrated to
MM::MetadataMap.

The member function to add/put/set a tag is named AddTag() so that it is
never mistaken for a member function of the Metadata class used in
camera code up to now. (It has nothing to do with
`MM::Camera::AddTag()`, but there should be no confusion there.)

(Partially assisted by Claude Code; any errors are mine.)
For the camera device side of the tests.

(Assisted by Claude Code; any errors are mine.)
A bit indirect, but test from Core for convenience.

(Assisted by Claude Code; any errors are mine.)
Switch to MM::CameraImageMetadata.
@marktsuchida marktsuchida changed the title WIP: Devices: Replace Metadata with MM::CameraImageMetadata Devices: Replace Metadata with MM::CameraImageMetadata Feb 19, 2026
@marktsuchida
marktsuchida marked this pull request as ready for review February 19, 2026 14:11
@marktsuchida
marktsuchida merged commit 93c9972 into micro-manager:main Feb 19, 2026
16 checks passed
@marktsuchida
marktsuchida deleted the metadata-map branch February 19, 2026 21:15
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.

1 participant