Skip to content

Commit

Permalink
troubleshooting my code with git hook errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brittyscience committed Nov 11, 2024
1 parent 8dd5685 commit 3e812e9
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _run(
freq: str = "0.1",
) -> str:
if self.path_registry is None:
raise ValueError("PathRegistry is not set")
return "PathRegistry is not set"

try:
print("Loading trajectory...")
Expand Down Expand Up @@ -216,7 +216,7 @@ def _run(
plot_file_id = plot_and_save_hb_plot(
hb_counts,
title=f"{method.capitalize()} Time Series",
plot_type="time Series",
plot_type="time_series",
method=method,
path_registry=self.path_registry,
ylabel="Count",
Expand Down Expand Up @@ -248,7 +248,7 @@ def _run(
)

return (
"Succeeded. Analysis completed, results saved to file and plot"
"Succeeded. Analysis completed, results saved to file and plot "
"saved. "
f"Results file: {result_file_id}, "
f"Histogram or Time series plot: {plot_file_id}, "
Expand Down Expand Up @@ -283,7 +283,7 @@ def __init__(self, path_registry: PathRegistry):
def _run(self, traj_file: str, top_file: str | None = None) -> str:

if self.path_registry is None:
raise ValueError("PathRegistry is not set")
return "PathRegistry is not set"
try:
if not top_file:
top_file = self.top_file(traj_file)
Expand Down Expand Up @@ -313,10 +313,10 @@ def _run(self, traj_file: str, top_file: str | None = None) -> str:
)

return (
"Succeeded. Kabsch-Sander analysis completed, results saved to file"
"and plot saved"
f"Results file:{result_file_id},"
f"Plot file: {plot_time_series_file_id},"
"Succeeded. Kabsch-Sander analysis completed, results saved to file "
"and plot saved. "
f"Results file:{result_file_id}, "
f"Plot file: {plot_time_series_file_id}, "
)

except Exception as e:
Expand Down

0 comments on commit 3e812e9

Please sign in to comment.