@@ -410,19 +410,25 @@ def printl(*objects, pretty=False, is_decorator=False, idx=1, **kwargs):
410410
411411parent_path = os .path .dirname (cellacdc_path )
412412html_path = os .path .join (cellacdc_path , '_html' )
413- models_path = os .path .join (cellacdc_path , 'models ' )
414- promptable_models_path = os .path .join (cellacdc_path , 'promptable_models ' )
413+ segmenters_path = os .path .join (cellacdc_path , 'segmenters ' )
414+ segmenters_promptable_path = os .path .join (cellacdc_path , 'segmenters_promptable ' )
415415data_path = os .path .join (parent_path , 'data' )
416416resources_folderpath = os .path .join (cellacdc_path , 'resources' )
417417resources_filepath = os .path .join (cellacdc_path , 'resources_light.qrc' )
418418logs_path = os .path .join (user_profile_path , '.acdc-logs' )
419419acdc_fiji_path = os .path .join (user_profile_path , 'acdc-fiji' )
420420acdc_ffmpeg_path = os .path .join (user_profile_path , 'acdc-ffmpeg' )
421421resources_path = os .path .join (cellacdc_path , 'resources_light.qrc' )
422- models_list_file_path = os .path .join (settings_folderpath , 'custom_models_paths.ini' )
423- promptable_models_list_file_path = os .path .join (
422+ segmenters_list_file_path = os .path .join (
423+ settings_folderpath , 'custom_models_paths.ini'
424+ )
425+ segmenters_promptable_list_file_path = os .path .join (
424426 settings_folderpath , 'custom_promptable_models_paths.ini'
425427)
428+ models_path = segmenters_path
429+ promptable_models_path = segmenters_promptable_path
430+ models_list_file_path = segmenters_list_file_path
431+ promptable_models_list_file_path = segmenters_promptable_list_file_path
426432favourite_func_metrics_csv_path = os .path .join (
427433 settings_folderpath , 'favourite_func_metrics.csv'
428434)
@@ -806,4 +812,30 @@ def inner_function(self, *args, **kwargs):
806812single_pos_index_cols = (
807813 'experiment_folderpath' ,
808814 'Position_n'
809- )
815+ )
816+
817+ # Public modular API (scripting entry points)
818+ from cellacdc .domain import ExperimentSession , PositionSession # noqa: E402
819+
820+ try :
821+ from cellacdc .api import ( # noqa: E402
822+ AnnotationViewer ,
823+ current_viewer ,
824+ imshow ,
825+ open_session ,
826+ run ,
827+ view_intensity ,
828+ view_labels ,
829+ view_path ,
830+ view_session ,
831+ )
832+ except ImportError :
833+ AnnotationViewer = None # type: ignore
834+ current_viewer = None # type: ignore
835+ imshow = None # type: ignore
836+ open_session = None # type: ignore
837+ run = None # type: ignore
838+ view_intensity = None # type: ignore
839+ view_labels = None # type: ignore
840+ view_path = None # type: ignore
841+ view_session = None # type: ignore
0 commit comments