Skip to content
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

Fix typos #9919

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ert/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,15 @@ def valid_num_iterations(user_input: str) -> str:
return user_input


def attemp_int_conversion(val: str) -> int:
def _attempt_int_conversion(val: str) -> int:
try:
return int(val)
except ValueError as e:
raise ArgumentTypeError(f"{val} is not a valid integer") from e


def convert_port(val: str) -> int:
int_val = attemp_int_conversion(val)
int_val = _attempt_int_conversion(val)
if not 0 <= int_val <= 65535:
raise ArgumentTypeError(f"{int_val} is not in valid port range 0-65535")
return int_val
Expand Down
6 changes: 3 additions & 3 deletions src/ert/enkf_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ def _manifest_to_json(ensemble: Ensemble, iens: int, iter: int) -> dict[str, Any
)
manifest[param_config.name] = file_path
# Add expected response files to manifest
for respons_config in ensemble.experiment.response_configuration.values():
for input_file in respons_config.expected_input_files:
manifest[f"{respons_config.response_type}_{input_file}"] = (
for response_config in ensemble.experiment.response_configuration.values():
for input_file in response_config.expected_input_files:
manifest[f"{response_config.response_type}_{input_file}"] = (
substitute_runpath_name(input_file, iens, iter)
)

Expand Down
Loading