-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Liu 338 #220
Conversation
…id according to the schema
…ph, it is in the appRef format, which is no longer supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, specially if all tests are pssing. I left a couple of minor comments, but otherwise it looks pretty good I think.
filename = None | ||
|
||
if filepath: # if there is anything provided | ||
if filepath.count("/") == 0: # just a name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Purely stylistic, but it reads slightly better to the casual reader:
if filepath.count("/") == 0: # just a name | |
if "/" not in filepath: # just a name |
filename = filepath | ||
dirname = self.get_dir(".") | ||
# filepath = self.sanitize_paths(self.filepath) | ||
elif filepath[-1] == "/": # just a directory name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly:
elif filepath[-1] == "/": # just a directory name | |
elif filepath.endswith("/"): # just a directory name |
if dirname is None: | ||
dirname = "." | ||
filename = os.path.expandvars(filename) if filename else None | ||
dirname = self.sanitize_paths(dirname) if dirname else None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dirname
is never None
because of the if
two lines above
Thanks for the comments, have integrated those changes as well as merged with the validate-graphs PR. |
Pull request covers mainly the new treatment of the filepath and removal of the dirname component parameters. filepath is now covering both, by slightly changing the interpretation. That also required changing a number of the test graphs. In fact the update also made the treatment of check_file_path_exists more consistent, since it is now really required to set it to false if it does not exist, which is the case for most of the files generated during a workflow run.
In addition also an import bug in pyfunc.py has been fixed and the setting of the sleepTime when translating in test mode has also been fixed.
The many changes in xml2palette.py are automatic code formatting changes and can be ignored, also because the xml2palette.py tool is now deprecated and will be removed soon.