-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python: Remove one of three filesystem structures
For commands where the entry in python/mrtrix3/commands/ is not a standalone .py file but a directory, previously there were two possible filesystem contents. One was for that sub-directory to contain a .py file with the same name as the command, as determined by the name of the python/commands/ sub-directory, and that file is expected to contain functions called uage() and execute(). The second is for such a file to be absent, but for there to instead exist two files called usage.py and execute.py, which would provide those relevant functions. This commit removes support for the latter.
- Loading branch information
Showing
2 changed files
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
23 changes: 23 additions & 0 deletions
23
python/mrtrix3/commands/population_template/population_template.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright (c) 2008-2024 the MRtrix3 contributors. | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# Covered Software is provided under this License on an "as is" | ||
# basis, without warranty of any kind, either expressed, implied, or | ||
# statutory, including, without limitation, warranties that the | ||
# Covered Software is free of defects, merchantable, fit for a | ||
# particular purpose or non-infringing. | ||
# See the Mozilla Public License v. 2.0 for more details. | ||
# | ||
# For more details, see http://www.mrtrix.org/. | ||
|
||
from .usage import usage as my_usage | ||
from .execute import execute as my_execute | ||
|
||
def usage(cmdline): #pylint: disable=unused-variable | ||
return my_usage(cmdline) | ||
|
||
def execute(): #pylint: disable=unused-variable | ||
return my_execute() |