From 3b7c94f9af98e8dcff8fe03a7aa09ec3177ac96e Mon Sep 17 00:00:00 2001
From: Bryan Brancotte <bryan.brancotte@pasteur.fr>
Date: Mon, 11 Mar 2024 15:55:45 +0100
Subject: [PATCH] bugfix from @gmarchment

---
 src/nextflow_file.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nextflow_file.py b/src/nextflow_file.py
index 9a026ff..fe13314 100644
--- a/src/nextflow_file.py
+++ b/src/nextflow_file.py
@@ -24,7 +24,7 @@ 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):
+        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)
         
         self.output_dir = Path(output_dir)
-- 
GitLab