Skip to content

HSC: Periodically fails in catalog masking step #4

@AstroPatty

Description

@AstroPatty
Traceback (most recent call last):
  File "/home/prwells/anaconda3/envs/lenskappa/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/home/prwells/anaconda3/envs/lenskappa/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/home/prwells/code/lenskappa/lenskappa/counter.py", line 232, in _weight_worker
    for index, row in enumerate(self._get_weight_values(num_samples, thread_num = thread_num, globals=globals, *args, **kwargs)):
  File "/home/prwells/code/lenskappa/lenskappa/counter.py", line 206, in _get_weight_values
    control_catalog = self._reference_survey.get_objects(tile, masked=self._mask, get_distance=True, dist_units = u.arcsec)
  File "/home/prwells/code/lenskappa/lenskappa/surveys/hsc.py", line 109, in get_objects
    return self._starmasks.mask_catalog(unmasked_catalog, region, patches)
  File "/home/prwells/code/lenskappa/lenskappa/surveys/hsc.py", line 381, in mask_catalog
    final_mask = final_mask & is_masked
TypeError: ufunc 'bitwise_and' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions