-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #333 from lsst/tickets/DM-38953
DM-38953 (again): dynamic connections support, fixed
- Loading branch information
Showing
15 changed files
with
894 additions
and
338 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Formalize support for modifying connections in `PipelineTaskConnections.__init__` implementations. | ||
|
||
Connections can now be added, removed, or replaced with normal attribute syntax. | ||
Removing entries from e.g. `self.inputs` in `__init__` still works for backwards compatibility, but deleting attributes is generally preferred. | ||
The task dimensions can also be replaced or modified in place in `__init__`. |
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,3 @@ | ||
Stop sorting Pipeline elements on read. | ||
|
||
Ordering specified in pipeline files is now preserved instead. |
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
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
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,77 @@ | ||
# This file is part of pipe_base. | ||
# | ||
# Developed for the LSST Data Management System. | ||
# This product includes software developed by the LSST Project | ||
# (http://www.lsst.org). | ||
# See the COPYRIGHT file at the top-level directory of this distribution | ||
# for details of code ownership. | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
"""Constants used to define the connections automatically added for each | ||
PipelineTask by the execution system. | ||
""" | ||
|
||
from __future__ import annotations | ||
|
||
__all__ = ( | ||
"CONFIG_INIT_OUTPUT_CONNECTION_NAME", | ||
"CONFIG_INIT_OUTPUT_TEMPLATE", | ||
"CONFIG_INIT_OUTPUT_STORAGE_CLASS", | ||
"LOG_OUTPUT_CONNECTION_NAME", | ||
"LOG_OUTPUT_TEMPLATE", | ||
"LOG_OUTPUT_STORAGE_CLASS", | ||
"METADATA_OUTPUT_CONNECTION_NAME", | ||
"METADATA_OUTPUT_TEMPLATE", | ||
"METADATA_OUTPUT_STORAGE_CLASS", | ||
) | ||
|
||
|
||
CONFIG_INIT_OUTPUT_CONNECTION_NAME: str = "_config" | ||
"""Internal task-side name for the config dataset connection. | ||
""" | ||
|
||
CONFIG_INIT_OUTPUT_TEMPLATE: str = "{label}" + CONFIG_INIT_OUTPUT_CONNECTION_NAME | ||
"""String template used to form the name for config init-output dataset | ||
type names. | ||
""" | ||
|
||
CONFIG_INIT_OUTPUT_STORAGE_CLASS: str = "Config" | ||
"""Name of the storage class for config init-output datasets. | ||
""" | ||
|
||
LOG_OUTPUT_CONNECTION_NAME: str = "_log" | ||
"""Internal task-side name for the log dataset connection. | ||
""" | ||
|
||
LOG_OUTPUT_TEMPLATE: str = "{label}" + LOG_OUTPUT_CONNECTION_NAME | ||
"""String template used to form the name for log output dataset type names. | ||
""" | ||
|
||
LOG_OUTPUT_STORAGE_CLASS: str = "ButlerLogRecords" | ||
"""Name of the storage class for log output datasets. | ||
""" | ||
|
||
METADATA_OUTPUT_CONNECTION_NAME: str = "_metadata" | ||
"""Internal task-side name for the metadata dataset connection. | ||
""" | ||
|
||
METADATA_OUTPUT_TEMPLATE: str = "{label}" + METADATA_OUTPUT_CONNECTION_NAME | ||
"""String template used to form the name for task metadata output dataset | ||
type names. | ||
""" | ||
|
||
METADATA_OUTPUT_STORAGE_CLASS: str = "TaskMetadata" | ||
"""Name of the storage class for task metadata output datasets. | ||
""" |
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
Oops, something went wrong.