madamow / pymoogi

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

pymoogi abfind_example.par (Error) #22

Closed denizcdursun closed 1 year ago

denizcdursun commented 1 year ago

Hello,

I'm a macOS user. I am having trouble running the program. "pymoogi synth_example.par" works fine. But when I run the "abfind" file, it gives an error:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.9/bin/pymoogi", line 33, in <module>
    sys.exit(load_entry_point('pyMOOGi==1.0.0', 'console_scripts', 'pymoogi')())
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pymoogi/__main__.py", line 31, in main
    driver, params = list_to_dict(open(syn_file).read())
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pymoogi/lib/Common_functions.py", line 74, in list_to_dict
    dict_par[line[0]].append(line[1])
IndexError: list index out of range
madamow commented 1 year ago

How do you run abfind? The error you posted refers to code specific for synth driver. It is not in abfind at all.

Wiadomość napisana przez Deniz @.***> w dniu 11/18/22, o godz. 5:46 AM:

Hello,

I'm a macOS user. I am having trouble running the program. "pymoogi synth_example.par" works fine. But when I run the "abfind" file, it gives an error:

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/bin/pymoogi", line 33, in sys.exit(load_entry_point('pyMOOGi==1.0.0', 'console_scripts', 'pymoogi')()) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pymoogi/main.py", line 31, in main driver, params = list_to_dict(open(syn_file).read()) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pymoogi/lib/Common_functions.py", line 74, in list_to_dict dict_par[line[0]].append(line[1]) IndexError: list index out of range — Reply to this email directly, view it on GitHub https://github.com/madamow/pymoogi/issues/22, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALX7YO32GC5HP52G4RROGLWI5UB3ANCNFSM6AAAAAASEM5S5A. You are receiving this because you are subscribed to this thread.

denizcdursun commented 1 year ago

Hello again, I missed the " character at the end of the line_list path. That's why it gives an error. Thank you.