Skip to content

Error while running refine_binary_events #72

@ArjunMurlidhar

Description

@ArjunMurlidhar

I am running into this error while running refine_binary_events:

_"""
Traceback (most recent call last):
File "/home/murlidhar.4/.conda/envs/popsycle/lib/python3.13/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
~~~~^^^^^^^^^^^^^^^
File "/home/murlidhar.4/.conda/envs/popsycle/lib/python3.13/multiprocessing/pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "/home/murlidhar.4/Documents/Popsycle/PopSyCLE/popsycle/synthetic.py", line 5426, in one_lightcurve_analysis
param_dict = lightcurve_parameter_gen(model, model_parameter_dict, np.array([global_comp_idx_L, global_comp_idx_S]),
obj_id_L, obj_id_S, name, save_phot, phot_dir, overwrite)
File "/home/murlidhar.4/Documents/Popsycle/PopSyCLE/popsycle/synthetic.py", line 5644, in lightcurve_parameter_gen
end_idx = np.where(phot[start_idx:] == min_btwn_peaks)[0][0] + start_idx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: index 0 is out of bounds for axis 0 with size 0
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/murlidhar.4/Documents/Popsycle/PopSyCLE/popsycle/run.py", line 1283, in
main()
~~~~^^
File "/home/murlidhar.4/Documents/Popsycle/PopSyCLE/popsycle/run.py", line 1266, in main
run(output_root=args.output_root,
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
field_config_filename=args.field_config_filename,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<10 lines>...
skip_refine_events=args.skip_refine_events,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skip_refine_binary_events=args.skip_refine_binary_events)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/murlidhar.4/Documents/Popsycle/PopSyCLE/popsycle/run.py", line 1177, in run
synthetic.refine_binary_events(events=refined_events_filename,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
companions=refined_events_comp_filename,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
phot_dir=phot_dir,
^^^^^^^^^^^^^^^^^^
multi_proc=multi_proc_refine_binary_events)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/murlidhar.4/Documents/Popsycle/PopSyCLE/popsycle/synthetic.py", line 5229, in refine_binary_events
results = pool.starmap(one_lightcurve_analysis, inputs)
File "/home/murlidhar.4/.conda/envs/popsycle/lib/python3.13/multiprocessing/pool.py", line 375, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/murlidhar.4/.conda/envs/popsycle/lib/python3.13/multiprocessing/pool.py", line 774, in get
raise self.value
IndexError: index 0 is out of bounds for axis 0 with size 0

I would appreciate any help in resolving this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions