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

Don't look if ADF output in cupid-webpage unless cupid-diagnostics ran the atm notebooks #160

Open
mnlevy1981 opened this issue Dec 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mnlevy1981
Copy link
Collaborator

Describe the bug
When testing #159, I ran

$ cupid-diagnostics --land
$ cupid-webpage

and got

Traceback (most recent call last):
  File "${CONDA_ENVS}/cupid-infrastructure/bin/cupid-webpage", line 8, in <module>
    sys.exit(build())
             ^^^^^^^
  File "${CONDA_ENVS}/cupid-infrastructure/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "${CONDA_ENVS}/cupid-infrastructure/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "${CONDA_ENVS}/cupid-infrastructure/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "${CONDA_ENVS}/cupid-infrastructure/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "${CUPID_ROOT}/cupid/cupid_webpage.py", line 57, in build
    shutil.copytree(
  File "${CONDA_ENVS}/cupid-infrastructure/lib/python3.11/shutil.py", line 559, in copytree
    with os.scandir(src) as itr:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: './ADF_output'

To Reproduce
Run cupid-diagnostics for the key_metrics example on a subset of components that does not include the atmosphere, then run cupid-webpage

Expected behavior
Only try to copy output from the ADF if it exists (or maybe if we expect it to exist?)

@dabail10
Copy link
Collaborator

Similar issue with cupid-clean:

(cupid-infrastructure) [dbailey@derecho1 ~/CUPiD]> cupid-clean
ERROR: config.yml not found

@mnlevy1981
Copy link
Collaborator Author

@dabail10 the cupid-clean issue looks like you need to cd examples/key_metrics before running it. I don't think the clean command looks for ADF output

@TeaganKing TeaganKing added the bug Something isn't working label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants