oda_integral_wrapper issueshttps://gitlab.astro.unige.ch/oda/api-clients/oda_api_wrapper/-/issues2023-09-04T10:06:39Zhttps://gitlab.astro.unige.ch/oda/api-clients/oda_api_wrapper/-/issues/3IndexError for light curve2023-09-04T10:06:39ZGabriele BarniIndexError for light curve```python
IndexError Traceback (most recent call last)
Input In [16], in <cell line: 7>()
38 print(par_dict_j)
39 print(scw_list)
---> 40 ...```python
IndexError Traceback (most recent call last)
Input In [16], in <cell line: 7>()
38 print(par_dict_j)
39 print(scw_list)
---> 40 data=wrap.long_scw_list_call(scw_list, s_max=500, sleep_time=120,
41 save_partial_products=False,
42 wait=False, **par_dict_j )
43 # source.update({'jemx2_lc' : data})
44 # except Exception as e:
45 # print('JEM-X2 lc of %s failed' % source['title'])
46 # print(f"Failed processing JEM-X2 lc of source {source['title']}:\n {repr(e)}")
47 # source.update({'jemx2_lc' : 'Error'})
48 else:
49 source.update({'isgri_lc' : 'Error'})
File ~/gallery-notebooks/src/oda-integral-wrapper/oda_integral_wrapper/wrapper.py:205, in INTEGRALwrapper.long_scw_list_call(self, in_total_scw_list, s_max, wait, sleep_time, compute_fluxes, save_partial_products, **arguments)
202 return self.sum_spectra()
204 if 'lc' in self.product:
--> 205 return self.stitch_lc()
207 if 'ima' in self.product:
208 additional_paramters = {}
File ~/gallery-notebooks/src/oda-integral-wrapper/oda_integral_wrapper/wrapper.py:677, in INTEGRALwrapper.stitch_lc(self)
675 def stitch_lc(self):
676 combined_data = copy.deepcopy(self.all_data[0])
--> 677 if not 'lc' in combined_data._p_list[0].name:
678 raise ValueError('This is not a light curve and you try to stitch them')
680 if len(self.all_data) == 1:
IndexError: list index out of range
```https://gitlab.astro.unige.ch/oda/api-clients/oda_api_wrapper/-/issues/2the purpose of wrapper in the README?2021-02-19T13:13:52ZVolodymyr SAVCHENKOthe purpose of wrapper in the README?Readme is incomplete as it is copied from oda_api.
But we should balance what's in oda_api and what's in the wrapper.
Presumably, wrapper will have INTEGRAL-specific tools which are too specific to be upgraded to common oda_api ones?
...Readme is incomplete as it is copied from oda_api.
But we should balance what's in oda_api and what's in the wrapper.
Presumably, wrapper will have INTEGRAL-specific tools which are too specific to be upgraded to common oda_api ones?
You can appreciate that 50 scw is quite short term and indeed already not needed on the fairly operational staging-1-3.Carlo FERRIGNOCarlo FERRIGNOhttps://gitlab.astro.unige.ch/oda/api-clients/oda_api_wrapper/-/issues/1No write access to master !2021-02-19T10:40:07ZCarlo FERRIGNONo write access to master !I cannot merge on master for my project ! Could you give me "owner" status ?I cannot merge on master for my project ! Could you give me "owner" status ?Volodymyr SAVCHENKOVolodymyr SAVCHENKO