diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ffdb223..4a54478 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: cxx: ccache.exe clang-cl upload: true platform: windows-x86_64 - dal_name: mmgr_dal_SimulatedCamera.dll + dal_name: mmgr_dal_SimulatedMicroscope.dll - name: windows-msvc runner: windows-latest cc: ccache cl @@ -48,7 +48,7 @@ jobs: ldflags: -static-libstdc++ -static-libgcc upload: true platform: linux-x86_64 - dal_name: mmgr_dal_SimulatedCamera.so.0 + dal_name: mmgr_dal_SimulatedMicroscope.so.0 strip: strip --strip-unneeded - name: macos-arm64 runner: macos-15 @@ -56,7 +56,7 @@ jobs: cxx: ccache clang++ upload: true platform: macos-arm64 - dal_name: mmgr_dal_SimulatedCamera + dal_name: mmgr_dal_SimulatedMicroscope strip: strip -x - name: macos-x86_64 runner: macos-15-intel @@ -64,7 +64,7 @@ jobs: cxx: ccache clang++ upload: true platform: macos-x86_64 - dal_name: mmgr_dal_SimulatedCamera + dal_name: mmgr_dal_SimulatedMicroscope strip: strip -x env: CC: ${{ matrix.cc }} @@ -169,7 +169,7 @@ jobs: if: matrix.upload run: | mkdir dist - cp builddir/SimulatedCamera.mmdev "dist/${{ matrix.dal_name }}" + cp builddir/SimulatedMicroscope.mmdev "dist/${{ matrix.dal_name }}" - name: Strip artifact if: matrix.upload && matrix.strip @@ -178,6 +178,6 @@ jobs: - uses: actions/upload-artifact@v7 if: matrix.upload with: - name: mmdev-SimulatedCamera-${{ matrix.platform }} + name: mmdev-SimulatedMicroscope-${{ matrix.platform }} path: dist/ if-no-files-found: error diff --git a/DeviceAdapter.cpp b/DeviceAdapter.cpp index 44d386a..1606afa 100644 --- a/DeviceAdapter.cpp +++ b/DeviceAdapter.cpp @@ -12,7 +12,7 @@ #include "ModuleInterface.h" MODULE_API void InitializeModuleData() { - RegisterDevice("SimHub", MM::HubDevice, "Hub for simulated camera"); + RegisterDevice("SimHub", MM::HubDevice, "Hub for simulated microscope"); } MODULE_API MM::Device *CreateDevice(const char *name) { diff --git a/README.md b/README.md index de82aa8..ff2fb73 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Copyright 2025-2026 Board of Regents of the University of Wisconsin System SPDX-License-Identifier: BSD-2-Clause --> -# SimulatedCamera +# SimulatedMicroscope A Micro-Manager device adapter that simulates a simple microscope. Like DemoCamera, it needs no hardware, but its images are more realistic. The @@ -45,11 +45,11 @@ just test ## Installing -The build produces `builddir/SimulatedCamera.mmdev`. Currently, you need to +The build produces `builddir/SimulatedMicroscope.mmdev`. Currently, you need to copy this file into your Micro-Manager installation directory and rename it: -| Platform | File name | -| -------- | ------------------------------- | -| Windows | `mmgr_dal_SimulatedCamera.dll` | -| Linux | `mmgr_dal_SimulatedCamera.so.0` | -| macOS | `mmgr_dal_SimulatedCamera` | +| Platform | File name | +| -------- | ----------------------------------- | +| Windows | `mmgr_dal_SimulatedMicroscope.dll` | +| Linux | `mmgr_dal_SimulatedMicroscope.so.0` | +| macOS | `mmgr_dal_SimulatedMicroscope` | diff --git a/justfile b/justfile index 8430c6a..2470ec4 100644 --- a/justfile +++ b/justfile @@ -46,4 +46,4 @@ test: _configure_if_not_configured # Run benchmarks [positional-arguments] benchmark *FLAGS: build - ./builddir/bench_SimulatedCamera "$@" + ./builddir/bench_SimulatedMicroscope "$@" diff --git a/meson.build b/meson.build index a1afb6a..f64dcf9 100644 --- a/meson.build +++ b/meson.build @@ -5,7 +5,7 @@ # of the supported build system for Micro-Manager or mmCoreAndDevices (yet). project( - 'mmdev-SimulatedCamera', + 'mmdev-SimulatedMicroscope', 'cpp', meson_version: '>= 1.8.3', default_options: [ @@ -71,7 +71,7 @@ if highway_dep.found() endif shared_module( - 'SimulatedCamera', + 'SimulatedMicroscope', sources, dependencies: [ mmdevice_dep, @@ -86,10 +86,10 @@ shared_module( ) test_exe = executable( - 'test_SimulatedCamera', + 'test_SimulatedMicroscope', sources + [ - 'test_SimulatedCamera.cpp', + 'test_SimulatedMicroscope.cpp', ], dependencies: [ mmdevice_dep, @@ -101,10 +101,10 @@ test_exe = executable( cpp_args: cpp_args, ) -test('SimulatedCamera tests', test_exe) +test('SimulatedMicroscope tests', test_exe) bench_exe = executable( - 'bench_SimulatedCamera', + 'bench_SimulatedMicroscope', [ 'Gaussian2DFilter.cpp', 'bench_SimulatedSpecimen.cpp', @@ -118,4 +118,4 @@ bench_exe = executable( cpp_args: cpp_args, ) -benchmark('SimulatedCamera benchmarks', bench_exe) \ No newline at end of file +benchmark('SimulatedMicroscope benchmarks', bench_exe) \ No newline at end of file diff --git a/test_SimulatedCamera.cpp b/test_SimulatedMicroscope.cpp similarity index 100% rename from test_SimulatedCamera.cpp rename to test_SimulatedMicroscope.cpp