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

On lab setup reference to opera radar db json in code repository #31

Open
BerendWijers opened this issue Feb 21, 2025 · 0 comments
Open
Labels
L1 Readiness level 1

Comments

@BerendWijers
Copy link
Collaborator

Currently the initializer cell references the opera radar db from the home directory of the user

$HOME/data/conf/OPERA_RADARS_DB.json

Starting aac9254 we include the file in the repository. We should make sure that the initializer correctly points to this directory.

We need to determine the relative path from the initializer cell to the reference file. Considering the initializer is a jupyter executed cell and not a container run in a workflow this should be possible.

By default, the workflow file has the same path as working directory so we should be able to find the reference file by providing a relative path

import pathlib
print(f"{pathlib.Path.cwd()=}")
opera_radars_db_path = pathlib.Path.cwd()
print(f"{pathlib.Path.cwd().joinpath('../meta/OPERA_RADARS_DB.json').exists()=}")
opera_radars_db_path = pathlib.Path.cwd().joinpath('../meta/OPERA_RADARS_DB.json')
pathlib.Path.cwd()=PosixPath('/home/jovyan/NaaVRE/RAVRE-virtual-lab/virtual_lab/codebase')
pathlib.Path.cwd().joinpath('../meta/OPERA_RADARS_DB.json').exists()=True
@BerendWijers BerendWijers added the L1 Readiness level 1 label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L1 Readiness level 1
Projects
None yet
Development

No branches or pull requests

1 participant