Skip to content

Suffix every module and library that shares a name with AutomatedDentalTools - #38

Merged
Raphael-Barret merged 3 commits into
DCBIA-OrthoLab:mainfrom
Raphael-Barret:chore/rename-modules-remote-suffix
Oct 15, 2026
Merged

Raphael-Barret merged 3 commits into
DCBIA-OrthoLab:mainfrom
Raphael-Barret:chore/rename-modules-remote-suffix

Conversation

@Raphael-Barret

Copy link
Copy Markdown
Collaborator

Clears the blocking finding in the review of Slicer/ExtensionsIndex#2411: module
and Python names identical to those in AutomatedDentalTools, where installing
both means one silently shadows the other.

20 of the 26 modules collided, and so did 5 Python packages, which matter
just as much: they reach sys.path and resolve before any module does. The
collision is not an error anyone sees. The first entry on the path wins, the
other is simply never loaded, and which one wins depends on the order the two
extensions were installed.

Gone, in favour of a Remote suffix on the directory, the script, the icon, the
MODULE_NAME and the classes: Agent, Agent_CLI, ALI, AMASSS, AREG,
ASO, AutoCrop3D, AutoMatrix, BATCHDENTALSEG, CLIC, CNE, CNE_CLI,
DOCShapeAXI, FlexReg, GreedyReg, Medical_Data_Anonymizer_Module,
MRI2CBCT, MRI2CBCT_CLI, SurgMovPred, VFACE. The packages follow:
AREG_Method, VFACE_utils, MRI2CBCT_utils, MRI2CBCT_CLI_utils and
Agent_CLI_utils.

TOOL_NAME is untouched, every one of them. It is the SERVER's name for the
tool, it is declared explicitly in each module and never derived from the class,
and a rename that changed it would have changed what goes over the wire. The
values still read ALI, AMASSS, AREG, AREG_CBCT, ASO, AutoCrop3D,
AutoMatrix, Batch_Dental_Seg, CLIC, Crown_Seg, DOCShapeAXI,
example_tool, FlexReg, GreedyReg, Surg_Mov_Pred, VFACE. The two sets
already differed before this change, which is why the decoupling existed to
rely on.

Every module also moves to its own category, Automated Dental Tools Remote,
with .Advanced preserved for the four that used it. A category is only a label
and fixes no collision, but without it a user holding both extensions reads
ALI and ALI Remote one under the other in the same folder. Three spellings
of the old category are normalised on the way through; "Automated Dental Tools team" in contributors is not a category and is left alone.

Verified against a baseline taken on main before the rename: 1450 tests, and
the only failures are the four that already failed there, with identical counts,
test_flexreg_client 2, test_cohort_batches 5 and the two test_panel 39 and
86. Nothing new fails. The module tests load their module by path, so those
paths, imports and class references moved with it; the comment in
base_widget.py that illustrated the module/tool distinction with ASOWidget
was stale and now says what is true.

@Raphael-Barret
Raphael-Barret merged commit 88a544e into DCBIA-OrthoLab:main Oct 15, 2026
@Raphael-Barret
Raphael-Barret deleted the chore/rename-modules-remote-suffix branch October 15, 2026 14:44
Jules-GP pushed a commit that referenced this pull request Oct 21, 2026
…rename

The Remote-suffix rename (#38) left CMake lists and file names out of step, so
CMake configure failed and the ExtensionsIndex packaging checks failed:

- AutoCrop3DRemote and CLICRemote listed icons under their old names.
- AgentRemote, CNERemote, MRI2CBCTRemote and Agent_CLIRemote listed .ui files
  under new names that don't exist; the Python code still loads the existing
  Agent.ui, CNE.ui, MRI2CBCT.ui and Agent_CLI.ui, so list those.
- MRI2CBCT_CLIRemote/ImportLibrary.cmake still named the renamed
  MRI2CBCT_CLI_utils package.

Two problems only showed up once it built:

- ServerToolsCoreLib/tls.py (added with the HTTPS-only change) was not
  installed, so every module importing ServerToolsCoreLib failed to load.
- Agent_CLIRemote and CNE_CLIRemote kept their XML files as Agent_CLI.xml and
  CNE_CLI.xml. A scripted CLI's XML must match its script name, and the
  callers still used slicer.modules.agent_cli and slicer.modules.cne_cli,
  which are AutomatedDentalTools' module names. Rename the XML files, add the
  Remote suffix to their titles, and call slicer.modules.agent_cliremote and
  slicer.modules.cne_cliremote.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant