crawfordsm / specidentify

Software for identifying spectral lines and calibrating spectroscopic observations.
15 stars 11 forks source link

__init__.py remove for loop #23

Open HeloiseS opened 6 years ago

HeloiseS commented 6 years ago

Here is the error message returned when importing specreduce:

(specid) heloise@Lola:~/Data/specreduce_tests$ python try_specid.py 
Traceback (most recent call last):
  File "try_specid.py", line 8, in <module>
    from specreduce.interidentify import InterIdentify
  File "/home/heloise/Data/specreduce_tests/specidentify/specreduce/__init__.py", line 17, in <module>
    sip.setapi(cl, 2)
ValueError: API 'QString' has already been set to version 1

And here are the lines to comment out from the init.py file:

#for cl in ('QString', 'QVariant'):
#    sip.setapi(cl, 2)

That fixed the ValueError.