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 219 forks source link

Pandas multi-dimensional indexing FutureWarning for `epra.analyze_all_variations` #140

Open nikosavola opened 2 years ago

nikosavola commented 2 years ago

On latest pandas versions, calling epra.analyze_all_variations results in the following warnings:

c:\pyepr\pyEPR\core_quantum_analysis.py:712: FutureWarning: Support for multi-dimensional indexing (e.g. `obj[:, None]`) is deprecated and will be removed in a future version.  Convert to a numpy array before indexing instead.
  result['Q_coupling'] = self.Qm_coupling[variation][self.Qm_coupling[variation].columns[junctions]][modes]