Skip to content

Commit

Permalink
utils:log,siegfried - format docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Oct 16, 2023
1 parent f3bb1be commit 2d0ef09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions acacore/siegfried/siegfried.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ class Siegfried:
def __init__(self, binary: str | PathLike = "sf"):
"""
Args:
binary: the path to the Siegfried binary, or the program name if it is included in the PATH variable
binary: The path to the Siegfried binary, or the program name if it is included in the PATH variable
Raises:
IdentificationError: if Siegfried is not configured properly
IdentificationError: If Siegfried is not configured properly
"""
self.binary: str = str(binary)
_check_process(run([self.binary, "-v"], capture_output=True, encoding="utf-8"))
Expand All @@ -93,7 +93,7 @@ def identify(self, path: str | PathLike) -> SiegfriedResult:
A SiegfriedResult object
Raises:
IdentificationError: if there is an error calling Siegfried or processing its results
IdentificationError: If there is an error calling Siegfried or processing its results
"""
process: CompletedProcess = run(
[self.binary, "-json", "-multi", "1024", str(path)],
Expand Down
4 changes: 2 additions & 2 deletions acacore/utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ def setup_logger(log_name: str, log_path: Path) -> Logger:
General method for setting op a log object. Ensures that the different logs we use across tools are standardized.
Args:
log_name: the name given to the logger within the logging modules own namespace. All descendant logs needs
log_name: The name given to the logger within the logging modules own namespace. All descendant logs needs
to have a name on the form 'log_name.descendant_log_name', which often is the name of the module or submodule
that the function is called from.
log_path: the path directly to the log as a `txt` file. If the file is not there, it will be created.
log_path: The path directly to the log as a `txt` file. If the file is not there, it will be created.
If it already exists, it will append the messages to the file.
Returns:
Expand Down

0 comments on commit 2d0ef09

Please sign in to comment.