In[]: output_ascii_indiv(s, outputdir)
AttributeError Traceback (most recent call last)
Input In [19], in <cell line: 1>()
----> 1 output_ascii_indiv(s, outputdir)
File ~/anaconda3/lib/python3.9/site-packages/scousepy-2.1.3.dev6+ga1b6a6b-py3.9.egg/scousepy/io.py:354, in output_ascii_indiv(self, outputdir)
349 """
350 Outputs an ascii table containing the information for each fit.
351 """
353 saa_dict = self.saa_dict[0]
--> 354 table = make_table(self, saa_dict, indiv=True)
355 table.write(outputdir+'/best_fit_solutions.dat', format='ascii',
356 overwrite=True, delimiter='\t')
357 return
File ~/anaconda3/lib/python3.9/site-packages/scousepy-2.1.3.dev6+ga1b6a6b-py3.9.egg/scousepy/io.py:370, in make_table(self, saa_dict, saa, indiv)
368 solnlist = get_solnlist_saa(self, saa_dict)
369 elif indiv:
--> 370 solnlist = get_solnlist_indiv(self)
372 solnarr = np.asarray(solnlist).T
374 for j in range(len(solnarr[:,0])):
File ~/anaconda3/lib/python3.9/site-packages/scousepy-2.1.3.dev6+ga1b6a6b-py3.9.egg/scousepy/io.py:446, in get_solnlist_indiv(self)
444 spectrum = self.indiv_dict[key]
445 soln = spectrum.model
--> 446 if soln.ncomps==0.0:
447 solution_desc = get_soln_desc(0, soln,
448 spectrum.coordinates[0],
449 spectrum.coordinates[1])
450 solnlist.append(solution_desc)
AttributeError: 'NoneType' object has no attribute 'ncomps'
Hello,
I get the above error when I try to create the output ASCII files.
I get the same error for the statistics commands too (stats=scouse.compute_stats(s)). I am not sure if it is a mistake on my end. The previous commands till stage 4 work well (I am able to extract the spectra and the fits look good). The above error is for the data in the example directory.
Any pointers on how to fix this would be of great help.
Thank you!
In[]: output_ascii_indiv(s, outputdir)
AttributeError Traceback (most recent call last)
Input In [19], in <cell line: 1>()
----> 1 output_ascii_indiv(s, outputdir)
File ~/anaconda3/lib/python3.9/site-packages/scousepy-2.1.3.dev6+ga1b6a6b-py3.9.egg/scousepy/io.py:354, in output_ascii_indiv(self, outputdir)
349 """
350 Outputs an ascii table containing the information for each fit.
351 """
353 saa_dict = self.saa_dict[0]
--> 354 table = make_table(self, saa_dict, indiv=True)
355 table.write(outputdir+'/best_fit_solutions.dat', format='ascii',
356 overwrite=True, delimiter='\t')
357 return
File ~/anaconda3/lib/python3.9/site-packages/scousepy-2.1.3.dev6+ga1b6a6b-py3.9.egg/scousepy/io.py:370, in make_table(self, saa_dict, saa, indiv)
368 solnlist = get_solnlist_saa(self, saa_dict)
369 elif indiv:
--> 370 solnlist = get_solnlist_indiv(self)
372 solnarr = np.asarray(solnlist).T
374 for j in range(len(solnarr[:,0])):
File ~/anaconda3/lib/python3.9/site-packages/scousepy-2.1.3.dev6+ga1b6a6b-py3.9.egg/scousepy/io.py:446, in get_solnlist_indiv(self)
444 spectrum = self.indiv_dict[key]
445 soln = spectrum.model
--> 446 if soln.ncomps==0.0:
447 solution_desc = get_soln_desc(0, soln,
448 spectrum.coordinates[0],
449 spectrum.coordinates[1])
450 solnlist.append(solution_desc)
AttributeError: 'NoneType' object has no attribute 'ncomps'
Hello,
I get the above error when I try to create the output ASCII files.
I get the same error for the statistics commands too (stats=scouse.compute_stats(s)). I am not sure if it is a mistake on my end. The previous commands till stage 4 work well (I am able to extract the spectra and the fits look good). The above error is for the data in the example directory.
Any pointers on how to fix this would be of great help.
Thank you!