Skip to content

Commit

Permalink
added information to fdf file, more to come
Browse files Browse the repository at this point in the history
we should add more of these here and there.
fdf content will still only be shown when 'track' is
True

Signed-off-by: Nick Papior <[email protected]>
  • Loading branch information
zerothi committed Jan 15, 2024
1 parent d9acb0e commit 0e40665
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 57 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ known_first_party = ["sisl_toolbox", "sisl"]
line_length = 88
overwrite_in_place = true
extend_skip = ["src/sisl/__init__.py"]
multi_line_output = "VERTICAL_HANGING_INDENT"

[tool.black]
line-length = 88
Expand Down
8 changes: 3 additions & 5 deletions src/sisl/io/_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"SileError",
"SileWarning",
"SileInfo",
"MissingInputSileException",
"MissingInputSileError",
"MissingInputSileInfo",
"MissingInputSileWarning",
Expand Down Expand Up @@ -61,10 +62,7 @@ class MissingInputSileException(SislException):
"""

def __init__(
self,
executable: str,
inputs: InputsType,
method: Callable,
self, executable: str, inputs: InputsType, method: Callable, msg: str = ""
):
# Formulate the error message
try:
Expand All @@ -80,7 +78,7 @@ def parse(v):
str_except = "\n".join(map(parse, inputs))

super().__init__(
f"Data from method '{name}' failed due to missing output values.\n\n"
f"{msg}\nData from method '{name}' failed due to missing output values.\n\n"
f"This is because of missing options in the input file for executable {executable}.\n"
f"Please read up on the following flags in the manual of '{executable}' to figure out "
f"how to retrieve the expected quantities:\n{str_except}"
Expand Down
Loading

0 comments on commit 0e40665

Please sign in to comment.