Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jluethi committed May 31, 2024
1 parent 8b082a9 commit 2319008
Showing 1 changed file with 0 additions and 57 deletions.
57 changes: 0 additions & 57 deletions tests/test_roi_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,60 +123,3 @@ def test_roi_table_overlaps(alignment):
target_values_well[alignment],
)
)


# def test_roi_tables_2d():
# ROOT_DIR = Path(__file__).parent
# image_dir = str(join(ROOT_DIR.parent, "resources", "Projection-Mix"))

# mode = ModeEnum.SinglePlaneAcquisition
# plate_acquisition = mode.get_plate_acquisition(
# acquisition_dir=image_dir,
# alignment=TileAlignmentOptions.GRID,
# )
# roi_tables = create_ROI_tables(plate_acquisition=plate_acquisition)
# assert set(roi_tables.keys()) == {"E08", "E07"}
# assert set(roi_tables["E08"].keys()) == {"FOV_ROI_table", "well_ROI_table"}
# print(roi_tables["E08"]["FOV_ROI_table"].to_df())
# print(roi_tables["E08"]["well_ROI_table"].to_df())

# target_values = [
# 0.0,
# 0.0,
# 0.0,
# 1399.6031494140625,
# 699.8015747070312,
# 50.0,
# ]
# assert all(
# math.isclose(a, b, rel_tol=1e-5)
# for a, b in zip(
# roi_tables["E08"]["well_ROI_table"].to_df().values.flatten().tolist(),
# target_values,
# )
# )

# roi_columns = [
# "x_micrometer",
# "y_micrometer",
# "z_micrometer",
# "len_x_micrometer",
# "len_y_micrometer",
# "len_z_micrometer",
# ]

# df_fov = roi_tables["E08"]["FOV_ROI_table"].to_df()
# assert list(df_fov.columns) == roi_columns
# assert len(df_fov) == 2
# target_values = [
# 699.8015747070312,
# 0.0,
# 0.0,
# 699.8015747070312,
# 699.8015747070312,
# 50.0,
# ]
# assert all(
# math.isclose(a, b, rel_tol=1e-5)
# for a, b in zip(df_fov.loc["FOV_2"].values.flatten().tolist(), target_values)
# )

0 comments on commit 2319008

Please sign in to comment.