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

Patch flow cell output replacer #462

Merged
merged 1 commit into from
Dec 18, 2023
Merged
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 cg_lims/EPPs/udf/set/replace_flow_cell_output_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ def get_output_path(process: Process) -> str:
def convert_output_path(path: str) -> str:
"""Return a corrected output path if needed. Can currently convert paths of the types:
- \\<some novaseq windows network path>\clinicaldata\Runs\<run folder>
- X:\<run folder>\
- <windows hard drive>:\<run folder>\
- //cg-nas.scilifelab.se/cg_data/seqdata/20230824_LH00217_0004_A225CW7LT3

They are replaced with: \\130.237.80.51\Runs\<run folder>
"""
new_path = path
if "X:\\" in path:
if ":\\" in path:
new_path = "\\\\130.237.80.51\\Runs" + path.split(":")[1]
elif "\\clinicaldata\\Runs\\" in path:
new_path = "\\\\130.237.80.51\\Runs" + path.split("Runs")[1]
Expand Down
Loading