Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix research function to work without an algorithm file #498

Conversation

Marinovsky
Copy link
Collaborator

@Marinovsky Marinovsky commented Sep 5, 2024

Closes #491

The algorithm name is just used to create the configurations for lean and the docker container in the research() function. The content of the file is never used, and it doesn't even need to exist. Thus, I added an optional argument in project_manager.find_algorithm_file to not throw an exception when the file is not found but instead return None. Then, if the result is None we just use a default python algorithm file name for the variable algorithm_file so that we can create the configs we need.

Copy link
Member

@Martin-Molinero Martin-Molinero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 👍

@Martin-Molinero Martin-Molinero merged commit 99fbdcf into QuantConnect:master Sep 5, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

main.py file is required for lean research
2 participants