DIASPlanetary / jupiter_magnetosphere_boundaries

This repository contains functions to determine the characteristics of the boundaries of Jupiter magnetosphere.
MIT License
0 stars 1 forks source link

pdyn_to_ms_boundaries has divide by 0 warnings which should be suppressed #1

Open daraghhollman opened 11 months ago

daraghhollman commented 11 months ago
jupiter_magnetosphere_boundaries/pdyn_to_ms_boundaries.py:54: RuntimeWarning: invalid value encountered in divide
  lt180plus = 180 + (np.arccos(xdataptsed/rad180plus)*deg)

These warnings are clearly unavoidable due to the nature of the function and the range plotted but it would be nice if there was to option to suppress them so they don't appear in terminal.

CorentinLouis commented 11 months ago

Yes I agree. I didn't check yet if there is a way of hidding it. Will try to do it asap