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

Attribute error from runner.py #19

Open
yangpy88 opened this issue Jul 5, 2024 · 1 comment
Open

Attribute error from runner.py #19

yangpy88 opened this issue Jul 5, 2024 · 1 comment
Assignees

Comments

@yangpy88
Copy link

yangpy88 commented Jul 5, 2024

Dear all,

I got an attribute error saying "'Dummy' object has no attribute 'wait'" from "openfast_toolbox/case_generation/runner.py", line 69. The code there is p.wait(). It seems like if I set
parallel=False for function run_fastfiles, it would lead to wait=True in function run_cmd. Then p=Dummy() is applied, but there is nothing in this class, and wait() is also not defined before the end of the function. Is this a bug or a mistake from myself? What is the purpose of defining wait() ? Thanks!

Kind regards

@ebranlard
Copy link
Collaborator

Hi @yangpy88

I cannot reproduce your issue. Can you show how you call the command? The fallback can always be to set nCores=1 and parallel=True.

You can find an example at the end of runner. py, and in data/NREL5MW/runAll.py (in dev)

Thanks

@ebranlard ebranlard self-assigned this Oct 11, 2024
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

No branches or pull requests

2 participants