Skip to content

Commit

Permalink
CC
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Oct 9, 2023
1 parent da16019 commit e3c5595
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pycbc/workflow/pegasus_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
# Get the logger associated with the Pegasus workflow import
pegasus_logger = logging.getLogger('Pegasus')


class ProfileShortcuts(object):
""" Container of common methods for setting pegasus profile information
on Executables and nodes. This class expects to be inherited from
Expand Down Expand Up @@ -850,10 +851,10 @@ def insert_into_dax(self, rep_cat, sites):
@classmethod
def from_path(cls, path):
"""Takes a path and returns a File object with the path as the PFN."""
logging.warn("The from_path method in pegasus_workflow is deprecated. "
"Please use File.from_path (for output files) in core.py "
"or resolve_url_to_file in core.py (for input files) "
"instead.")
logging.warning("The from_path method in pegasus_workflow is "
"deprecated. Please use File.from_path (for output "
"files) in core.py or resolve_url_to_file in core.py "
"(for input files) instead.")
urlparts = urlsplit(path)
site = 'nonlocal'
if (urlparts.scheme == '' or urlparts.scheme == 'file'):
Expand Down

0 comments on commit e3c5595

Please sign in to comment.