madamow / pymoogi

python wrapper for MOOG. All plots are handled with matplotlib.
10 stars 4 forks source link

sh: 1: \rm: not found #20

Closed debs122 closed 2 years ago

debs122 commented 2 years ago

Ma'am, I have installed pymoogi and I am trying to run the examples. I could successfully run the synth_example.par. But I could not run the others. I am getting an error of sh: 1: \rm: not found. I have attached one picture for your reference. Screenshot from 2022-08-09 09-36-51 Thanks and regards, Debasish

madamow commented 2 years ago

The rm command is called in MOOG's Begin.f to remove a directory pymoogi doesn't use/create. It does not affect running Abfind driver. The screen you posted looks correct. You are asked to choose an element. Type 26 for Fe, hit enter, and you should be able to see a plot

debs122 commented 2 years ago

Thank you ma'am. But, for ewfind, blends, etc. I am not getting any output and rm: not found is shown 1i

Also when I see the files, I only see synth_example as executable (in green colour). 2i

madamow commented 2 years ago

All par files are text files. They need to be readable, pymoogi doesn't care about them being executable. Ewfind and blend drivers do not produce plots in pymoogi, just output files, so the behavior you see is correct. When you do: ls -lrt after running those drivers input files, you should notice new outputs.

madamow commented 2 years ago

I will add some prints in pymoogi to make an user aware that only output files, not plots are expected from blend and ewfind drivers.

madamow commented 2 years ago

I removed code from Begin.f that was checking the number of lines that could be printed in terminal as it is not needed for pymoogi. This solves the \rm not found confusion.

debs122 commented 2 years ago

Thank you very much ma'am