Scan-o-Matic / scanomatic-standalone

GNU General Public License v3.0
0 stars 0 forks source link

Fix mypy errors - part 5 #116

Closed e-larsson closed 2 years ago

e-larsson commented 2 years ago

Part of #51

The intent was to fix mypy errors in image_analysis/image_fixture.py but I think most of the errors originate from the FixtureImage init function being too generous in how one can instantiate a FixtureImage object.

FixtureImage is only used in one place with one of the classmethods.

There are more things which could be improved, such as most of the functions could be moved out of the class, but I spent enough time on this...

e-larsson commented 2 years ago

@local-minimum I added some integration tests to test the new functions of FixtureImage