from pathlib import Path import panel as pn import scripts.tap_const as tc EXPERIMENT = "72AC_PhD_2404" # Setup Paths if tc.phenopsis.joinpath(EXPERIMENT).is_dir() is True: pt_data = tc.data pt_images = tc.phenopsis.joinpath(EXPERIMENT) pt_rotations = tc.dataout.joinpath("rotation_angles").joinpath(f"{EXPERIMENT}") else: here = Path(".").parent pt_data = here.joinpath("data") pt_images = here.joinpath("images").joinpath(EXPERIMENT) pt_rotations = here.joinpath("rotation_angles").joinpath(f"{EXPERIMENT}") pn.extension("plotly", "tabulator") template = pn.template.BootstrapTemplate(title="Raltonia Annotation Tool")