zlatko-minev / pyEPR

Powerful, automated analysis and design of quantum microwave chips & devices [Energy-Participation Ratio and more]
https://pyepr-docs.readthedocs.io
Other
160 stars 222 forks source link

Empty pandas Series should have `dtype` #107

Closed nikosavola closed 1 year ago

nikosavola commented 2 years ago

Currently, I get

FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
Ljs = pd.Series({})

many times from core_distributed_analysis.py when running simply do_EPR_analysis().

The fix is to explicitly write the correct dtype to all the Series in the code

zlatko-minev commented 2 years ago

Ah yeah that's a good one to fix.