UCBerkeleySETI / hyperseti

A SETI / technosignature search code to find intelligent life beyond Earth
https://hyperseti.readthedocs.io
11 stars 4 forks source link

normalize.py GPU code tries to logger.info(f"Flagged fraction: {flag_fraction:2.4f}") #58

Closed texadactyl closed 2 years ago

texadactyl commented 2 years ago
Traceback (most recent call last):
  File "run.py", line 52, in <module>
    hyperseti()
  File "run.py", line 34, in hyperseti
    threshold=SNR_THRESHOLD)
  File "/home/texadactyl/.local/lib/python3.7/site-packages/hyperseti/hyperseti.py", line 136, in find_et
    kernel=kernel, gpu_id=gpu_id, *args, **kwargs)
  File "/home/texadactyl/.local/lib/python3.7/site-packages/hyperseti/utils.py", line 175, in inner
    output = func(*args, **kwargs)
  File "/home/texadactyl/.local/lib/python3.7/site-packages/hyperseti/utils.py", line 81, in inner
    output = func(*new_args, **kwargs)
  File "/home/texadactyl/.local/lib/python3.7/site-packages/hyperseti/hyperseti.py", line 65, in run_pipeline
    data = normalize(data, mask=mask, return_space='gpu')
  File "/home/texadactyl/.local/lib/python3.7/site-packages/hyperseti/utils.py", line 81, in inner
    output = func(*new_args, **kwargs)
  File "/home/texadactyl/.local/lib/python3.7/site-packages/hyperseti/normalize.py", line 73, in normalize
    logger.info(f"Flagged fraction: {flag_fraction:2.4f}")
TypeError: unsupported format string passed to cupy.core.core.ndarray.__format__

Solution: comment out or remove logging calls.