Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BioFlow-Insight
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shareFAIR
BioFlow-Insight
Commits
75231f53
Commit
75231f53
authored
1 year ago
by
George Marchment
Browse files
Options
Downloads
Patches
Plain Diff
test
parent
e758232b
No related branches found
Branches containing commit
Tags
v0.0.26
Tags containing commit
No related merge requests found
Pipeline
#13244
failed with stages
in 41 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/bioflowinsighterror.py
+2
-2
2 additions, 2 deletions
src/bioflowinsighterror.py
src/nextflow_file.py
+1
-0
1 addition, 0 deletions
src/nextflow_file.py
with
3 additions
and
2 deletions
src/bioflowinsighterror.py
+
2
−
2
View file @
75231f53
...
...
@@ -4,9 +4,9 @@ class BioFlowInsightError(Exception):
self
.
origin
=
origin
#TODO -> add message at the end
if
(
origin
!=
None
):
super
().
__init__
(
f
"
[
{
num
}
] Error in the file
'
{
self
.
origin
.
get_file_address
()
}
'
:
"
+
error
)
super
().
__init__
(
f
"
{
'
\033
[91m
'
}
[
{
num
}
] Error in the file
'
{
self
.
origin
.
get_file_address
()
}
'
:
"
+
error
+
'
\033
[0m
'
)
else
:
super
().
__init__
(
f
"
[
{
num
}
]
{
error
}
"
)
super
().
__init__
(
f
"
{
'
\033
[91m
'
}
[
{
num
}
]
{
error
}
{
'
\033
[0m
'
}
"
)
#To handle the different type of errors; I'm gonna add numbers to the errors
#Pair numbers if it's the users fault
...
...
This diff is collapsed.
Click to expand it.
src/nextflow_file.py
+
1
−
0
View file @
75231f53
...
...
@@ -23,6 +23,7 @@ from .bioflowinsighterror import BioFlowInsightError
class
Nextflow_File
(
Nextflow_Building_Blocks
):
def
__init__
(
self
,
address
,
duplicate
=
True
,
DSL
=
""
,
author
=
None
,
name
=
None
,
origin
=
None
,
output_dir
=
'
./results
'
,
display_info
=
True
):
self
.
file
=
address
print
(
self
.
get_file_address
())
if
(
self
.
get_file_address
().
find
(
'
/
'
)
!=-
1
):
raise
BioFlowInsightError
(
f
"
BioFlow-Insight cannot directly analyse a workflow from its directory. Please analyse the workflow from the parent directory instead.
"
,
num
=
-
1
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment