fix: make factor rules analyst opt in
This commit is contained in:
parent
a17fc55fb4
commit
28e4e67e5a
|
|
@ -397,7 +397,8 @@ class GraphSetupSourceTests(unittest.TestCase):
|
|||
self.assertEqual(len(setup_graph.args.defaults), 1)
|
||||
self.assertIsInstance(setup_graph.args.defaults[0], ast.Constant)
|
||||
self.assertIsNone(setup_graph.args.defaults[0].value)
|
||||
self.assertIn('selected_analysts = ["market", "social", "news", "fundamentals", "factor_rules"]', source)
|
||||
self.assertIn('selected_analysts = ["market", "social", "news", "fundamentals"]', source)
|
||||
self.assertNotIn('selected_analysts = ["market", "social", "news", "fundamentals", "factor_rules"]', source)
|
||||
|
||||
|
||||
class ConditionalLogicSourceTests(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class GraphSetup:
|
|||
- "factor_rules": Factor rule analyst
|
||||
"""
|
||||
if selected_analysts is None:
|
||||
selected_analysts = ["market", "social", "news", "fundamentals", "factor_rules"]
|
||||
selected_analysts = ["market", "social", "news", "fundamentals"]
|
||||
|
||||
if len(selected_analysts) == 0:
|
||||
raise ValueError("Trading Agents Graph Setup Error: no analysts selected!")
|
||||
|
|
|
|||
Loading…
Reference in New Issue