Repository navigation
Suffix every module and library that shares a name with AutomatedDentalTools - #38
Merged
Raphael-Barret merged 3 commits intoOct 15, 2026
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clears the blocking finding in the review of Slicer/ExtensionsIndex#2411: module
and Python names identical to those in
AutomatedDentalTools, where installingboth 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.pathand resolve before any module does. Thecollision 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
Remotesuffix on the directory, the script, the icon, theMODULE_NAMEand 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_utilsandAgent_CLI_utils.TOOL_NAMEis untouched, every one of them. It is the SERVER's name for thetool, 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 setsalready 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
.Advancedpreserved for the four that used it. A category is only a labeland fixes no collision, but without it a user holding both extensions reads
ALIandALI Remoteone under the other in the same folder. Three spellingsof the old category are normalised on the way through;
"Automated Dental Tools team"incontributorsis not a category and is left alone.Verified against a baseline taken on
mainbefore the rename: 1450 tests, andthe only failures are the four that already failed there, with identical counts,
test_flexreg_client2,test_cohort_batches5 and the twotest_panel39 and86. 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.pythat illustrated the module/tool distinction withASOWidgetwas stale and now says what is true.