Open nagarajvernekar30 opened 2 months ago
I am taking a look now.
Can you try running the synth_example.par
file with theplot
option set to 0 and see if it works as it should?
Hello,
Thanks for the quick reply. I tried with the example par file, and it does not work there. It could be something to do with moog installation, so I will try reinstalling pymoogi and let you know.
Hey, I just tried reinstalling pymoogi and tried but the error is still the same. So I created a separate environment and install pymoogi there but still I have the same error. So I am not sure anymore.
The block of code that gives you the error reads the atmospheric model file. Are you able to run the original synth_example.par
file at all?
it runs when plot is set to 1 or 2. It fails as soon as its set to 0. Also, it creates out1 and out2 file but does not create the out3 file. This makes me think that the synthesis seems to be working, only the smoothening part is failing.
Update: Just tried it on a new computer that never had pymoogi or MOOG installed in it. I still get the same error. I actually do not care about the smoothened spectrum as i do not add any. So are you aware of where in the code I could ask it to make a new file with the unsmoothened flux?
I am afraid I cannot help you if I cannot recreate your error. To do that, I need to know:
I will try to recreate your environment and see if I can get the same error.
Specs of my system are: OS: Ubuntu 22.04 Python: 3.11.5 but also tried on 3.9 GCC : 11.4.0
For compiling MOOG, I went into pymoogi/pymoogi/MOOG and executed 'make'. This gave me the output that MOOG was successfully installed. After this, I added the line 'export MOOGPATH=/home/adorea/pymoogi/pymoogi/moog' into my bashrc and then installed pymoogi using the python setup file.
I just used a different version of MOOGSILENT (NOV2019) and it seems to be working. So ya, it could be something with the way MOOG was compiled but I am not sure exactly what I did wrong.
Thanks! I am glad you found a way around it. If you have a working MOOG version from elsewhere, you do not have to use the one distributed with pyMOOGi. Just point it to the correct executable.
I am trying to create a grid using MOOG and for this, I don't want the plots appear. But when I set "plot 0" which should stop creating plots, the code gives an error saying
This seems like its an issue within moog but I am not sure. The same par file works perfectly when plot is set to 1 or 2. Do you know how to solve this?
my par file: