spedas / pyspedas

Python-based Space Physics Environment Data Analysis Software
https://pyspedas.readthedocs.io/
MIT License
143 stars 58 forks source link

Bitwise inversion on bool values is deprecated #822

Closed jameswilburlewis closed 2 months ago

jameswilburlewis commented 2 months ago

2024-04-11T03:48:28.6830659Z 11-Apr-24 03:48:28: /home/runner/work/pyspedas/pyspedas/pyspedas/mms/tests/data_rate_segments.py:67: DeprecationWarning: Bitwise inversion '~' on bool is deprecated. This returns the bitwise inversion of the underlying int object and is usually not what you expect from negating a bool. Use the 'not' operator for boolean negation or ~int(x) if you really want the bitwise inversion of the underlying int.