Pyomo / mpi-sppy

MPI-based Stochastic Programming in PYthon
https://mpi-sppy.readthedocs.io
Other
65 stars 38 forks source link

Dependency cleanup #393

Open bknueven opened 4 months ago

bknueven commented 4 months ago

Running afew.py on a new system today and a few dependencies surprised me.

I have relegated matplotlib to only be imported when a plotting function is called. I have also added a hard dependency on pandas as several built-in modules use it.

That said, I also get the following message on my system, which is part of the reason I hate having pandas as a dependency:

/Users/bknueven/Software/mpi-sppy/mpisppy/extensions/phtracker.py:63: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.
  self.df = pd.concat([self.df, new_dict], ignore_index=True)
DLWoodruff commented 3 months ago

We just merged a fix to the pandas deprecation warning; however, maybe we should also work to make pandas not a hard requirement.