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

default path of the folders containing the OMEGA binary and omegapy-made files using the environment variables #13

Open
pyg0629 opened this issue Dec 7, 2024 · 1 comment
Labels
question Further information is requested

Comments

@pyg0629
Copy link

pyg0629 commented Dec 7, 2024

Hello,I am a bit confused about configuring environment variable paths because I am new to this area and not very clear on the relevant definitions. I have set the paths as follows:

OMEGA_BIN_PATH="D:\anaconda\envs\omega\Library\bin"
OMEGA_PY_PATH=D:\anaconda\envs\omega\Lib\site-packages\omegapy

However, it still seems to result in errors, as shown below:
Warning: $OMEGA_BIN_PATH not defined, set to '/data2/opt/geomeg/data/product/' by default.
Warning: $OMEGA_PY_PATH not defined, set to '/data/mex-omegj/data1/omega_python/omegapy/' by default.
Could you please guide me on how to correctly set the file paths? I look forward to your reply!

@AStcherbinine
Copy link
Owner

Hello,

It looks like you are working on Windows, so as explained here on the documentation you need use the od.set_omega_bin_path() and od.set_omega_py_path() functions because it cannot use environment variables so you have to do it locally in your code. Which means you'll always see this warning when loading the module at the first time, then you can set it to whatever you want.
If you want to check further in your code that you are actually using the good paths, you can do it with the od.get_omega_bin_path() and od.get_omega_py_path() functions which will return you the content of the variables in you python env.

Also, I'm very surprised by the paths you mentioned above:

OMEGA_BIN_PATH="D:\anaconda\envs\omega\Library\bin"
OMEGA_PY_PATH=D:\anaconda\envs\omega\Lib\site-packages\omegapy

These are supposed to point to folders in your working directory, where you are going to store OMEGA data, not inside your Anaconda Python installation.

  • OMEGA_BIN_PATH: folder where are located the raw OMEGA data (.QUB and .NAV files) as downloaded from the PSA
  • OMEGA_PY_PATH: folder where OMEGA-Py will save the OMEGAdata files if you want to save/load OMEGA-Py-processed data.

https://astcherbinine.github.io/omegapy/configuration/#windows-or-if-you-have-troubles-using-the-environment-variables

@AStcherbinine AStcherbinine added the question Further information is requested label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants