Skip to content

Commit 4cf6064

Browse files
committed
Add debug
1 parent e6b3186 commit 4cf6064

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

investing_algorithm_framework/domain/services/market_data_sources.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,20 @@ def _data_source_exists(self, file_path):
5656
Returns:
5757
bool - True if the file exists and the column names are correct,
5858
"""
59+
print(f"Checking if data source exists for {file_path}")
60+
5961
try:
6062
if os.path.isfile(file_path):
6163
df = polars.read_csv(file_path)
6264

65+
print("checking column names")
6366
if df.columns != self.column_names:
6467
raise OperationalException(
6568
f"Wrong column names on {file_path}, required "
6669
f"column names are {self.column_names}"
6770
)
6871
else:
72+
print(f"File {file_path} does not exist")
6973
return False
7074

7175
return True

0 commit comments

Comments
 (0)