Closed SirNate0 closed 9 months ago
To obtain the additional dependencies including Scipy and Matplotlib which are necessary for the tutorials, you will also need to install the pymeep-extras
Conda package as described in the installation page.
My issue with the current arrangement is that scipy/matplotlib are required just to import meep
, and not only to run the tutorials. I.e. the meep package depends on them, but conda is not aware of this. At the very least, maybe add the pymeep-extras
package to the suggested command for installing parallel meep?
A better option would probably be to make it so that meep can be imported without the (supposedly optional) dependencies. Particularly matplotlib, a large dependency which seems to only be needed to use Axes in a type annotation here (which seems to be possible without importing the class)
scipy is a required dependency to enable the PadeApproximant
feature which was recently added in #2440.
matplotlib is required for the visualization routines including plot2D
. The documentation for this routine does state "Requires matplotlib."
It would be possible to import the Meep module without scipy and matplotlib but this would require some changes to the code. For now, we can simply make it clear in the installation page that installing the additional package pymeep-extras
is recommended.
The point is that the conda package for meep should list these dependencies, so that they get automatically installed.
The point is that the conda package for meep should list these dependencies, so that they get automatically installed.
The pymeep
Conda package now includes matplotlib and scipy (conda-forge/pymeep-feedstock#79).
(It will take a few hours for Conda forge to update this package.)
Installing parallel meep as suggested in the documentation,
there seems to be a missing dependency on scipy. When I
import meep
, I getAfter installing scipy, I found it is also missing a matplotlib dependency.