changeset 80:74b162f74f4a draft

Uploaded
author luca_milaz
date Fri, 19 Jul 2024 19:51:19 +0000
parents 0122965378c7
children 5229ce78799d
files marea_2/custom_data_generator.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2/custom_data_generator.py	Fri Jul 19 19:47:35 2024 +0000
+++ b/marea_2/custom_data_generator.py	Fri Jul 19 19:51:19 2024 +0000
@@ -3,6 +3,7 @@
 import cobra
 import pickle
 import argparse
+import pandas as pd
 import utils.general_utils as utils
 import utils.rule_parsing  as rulesUtils
 from typing import Optional, Tuple, Union, Dict
@@ -127,7 +128,10 @@
         positiveCoeff=1;
     if (positiveCoeff==0 and r.lower_bound<0):
       trueMedium.append(r)
-  return trueMedium
+
+    df_medium = pd.DataFrame(columns="Reaction")
+    df_medium["Reaction"] = trueMedium
+  return df_medium
 
 def generate_bounds(model:cobra.Model) -> Dict[ReactionId, Tuple[float, float]]: