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

automatic working directory prepend failure #312

Open
cfrontin opened this issue Aug 28, 2024 · 3 comments
Open

automatic working directory prepend failure #312

cfrontin opened this issue Aug 28, 2024 · 3 comments
Assignees

Comments

@cfrontin
Copy link
Collaborator

cfrontin commented Aug 28, 2024

Description

Prepend of log_opt.sql location is failing, resulting in a IO FileNotFound error.

Steps to reproduce issue

Please provide a minimum working example (MWE) if possible

  1. follow instructions under Set up on HPC on this page
  2. run on case in /kfs2/projects/weis/cfrontin/software/weis/examples/17_IEA22_Optimization/17_IEA22_OptStudies/of_COBYLA following instructions with /kfs2/projects/weis/cfrontin/software/weis/examples/17_IEA22_Optimization/analysis_options_of_ptfm_opt.yaml and /kfs2/projects/weis/cfrontin/software/weis/examples/17_IEA22_Optimization/modeling_options_openfast.yaml
  3. Open optimization pane in viz tool

Current behavior

File not found causes optimization pane to error out.

Expected behavior

Sweet, sweet plots.

@cfrontin
Copy link
Collaborator Author

I didn't realize at first, but it also is failing to open the OpenFAST tab as well, with a different error:

Traceback (most recent call last):
  File "/projects/weis/cfrontin/conda-envs/weis-env/lib/python3.12/site-packages/flask/app.py", line 1473, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/projects/weis/cfrontin/conda-envs/weis-env/lib/python3.12/site-packages/flask/app.py", line 882, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/projects/weis/cfrontin/conda-envs/weis-env/lib/python3.12/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/projects/weis/cfrontin/conda-envs/weis-env/lib/python3.12/site-packages/flask/app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/projects/weis/cfrontin/conda-envs/weis-env/lib/python3.12/site-packages/dash/dash.py", line 1373, in dispatch
    ctx.run(
  File "/projects/weis/cfrontin/conda-envs/weis-env/lib/python3.12/site-packages/dash/_callback.py", line 465, in add_context
    output_value = _invoke_callback(func, *func_args, **func_kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/projects/weis/cfrontin/conda-envs/weis-env/lib/python3.12/site-packages/dash/_callback.py", line 40, in _invoke_callback
    return func(*args, **kwargs)  # %% callback invoked %%
           ^^^^^^^^^^^^^^^^^^^^^
  File "/kfs2/projects/weis/cfrontin/software/weis/weis/visualization/appServer/app/pages/visualize_openfast.py", line 93, in define_graph_cfg_layout
    channels = sorted(df1['file1'][0].keys())
                      ~~~~~~~~~~~~^^^
IndexError: list index out of range

@sora-ryu
Copy link
Collaborator

For the OpenFAST tab issue, have you added the openfast file path on the yaml file? We need at least one of them to work properly.

@sora-ryu
Copy link
Collaborator

After reproducing the steps, generated yaml file has some unusual characters. Could you check on this @mayankchetan ?
image

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

3 participants