Skip to content

Conversation

@hippolyteblot
Copy link
Member

No description provided.

- develop
pull_request:
branches:
- main
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would do only on develop

# Check existence
if not self._is_defined("_input_settings"):
raise TypeError("Please provide input parameters for Session: %s" %self._session_name)
# Check content
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is removed because it is verified in _check_input_settings ?

# Returned files (filtered information)
"outputs": [] if not infos["returnedFiles"] else [
{"path": value} for value in infos["returnedFiles"]["output_file"]
{"path": value} for value in infos["returnedFiles"].values()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has already been corrected, but not exactly in the same way
Can you please merge develop and call me to manage the conflict ?

input_settings = self._get_input_settings(location)
else:
raise AttributeError("Input settings are missing")
input_settings = {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So input_setting is optional now ?

f"Parameter '{name}' contains some invalid character(s): {', '.join(invalid)}"
)
# If input is a File, check file(s) existence
invalid_chars.append((name, invalid))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to name it invalid_chars_inputs

)
if param["type"] == "Boolean":
if value not in ["true", "false"]:
wrong_types.append(name)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename wrong_type_inputs

# Case: VIP path
if str(input).startswith(self._SERVER_PATH_PREFIX): # PurePath.is_relative_to() is unavailable for Python <3.9
if self._is_defined('_vip_input_dir'):
if str(input).startswith(self._SERVER_PATH_PREFIX) and len(str(input)) > 0: # PurePath.is_relative_to() is unavailable for Python <3.9
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guesse input can be empy at this point ? it is not verified yet ?

@hippolyteblot
Copy link
Member Author

Replaced by PR #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants