Skip to content

Commit 8fda874

Browse files
committed
Fix metadata reference
1 parent e08c5a0 commit 8fda874

File tree

1 file changed

+1
-1
lines changed
  • investing_algorithm_framework/domain/backtesting

1 file changed

+1
-1
lines changed

investing_algorithm_framework/domain/backtesting/backtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def save(self, directory_path: Union[str, Path]) -> None:
224224
logger.error(f"Error copying data file {file}: {e}")
225225

226226
# Save metadata if available
227-
if self.meta_data:
227+
if self.metadata:
228228
meta_file = os.path.join(directory_path, "metadata.json")
229229
with open(meta_file, 'w') as f:
230230
json.dump(self.metadata, f, indent=4)

0 commit comments

Comments
 (0)