Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: end-of-file-fixer
- id: sort-simple-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.14
rev: v0.15.0
hooks:
- id: ruff
args: [--no-cache, --fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion src/drtsans/mono/biosans/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2178,7 +2178,7 @@ def create_output_dir(output_dir):

def form_output_name(workspace):
workspace_name = str(workspace)
file_name = workspace_name.split("/")[-1].split(".")[0]
file_name = workspace_name.rsplit("/", maxsplit=1)[-1].split(".")[0]
return f"{file_name}.png"


Expand Down
2 changes: 1 addition & 1 deletion src/drtsans/mono/gpsans/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ def reduce_single_configuration(loaded_ws, reduction_input, prefix="", skip_nan=

def form_output_name(workspace):
workspace_name = str(workspace)
file_name = workspace_name.split("/")[-1].split(".")[0]
file_name = workspace_name.rsplit("/", maxsplit=1)[-1].split(".")[0]
return f"{file_name}.png"


Expand Down
2 changes: 1 addition & 1 deletion tests/integration/drtsans/tof/eqsans/test_reduction_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def export_iq_comparison(iq1d_tuple_list: List[Tuple[str, IQmod, str]], png_name
plt.legend()

# save
plt.savefig(f"{png_name.split('.')[0]}_error_bar.png")
plt.savefig(f"{png_name.split('.', maxsplit=1)[0]}_error_bar.png")
# close
plt.close()

Expand Down