henry2004y / Batsrus.jl

BATSRUS/SWMF Data Processor
https://henry2004y.github.io/Batsrus.jl/dev/
MIT License
5 stars 2 forks source link

Interoperability with Python #12

Closed henry2004y closed 3 years ago

henry2004y commented 3 years ago

Demos are provided for calling Matlab/Python directly from Julia for debugging and testing. This part will later be separated out for potential Python and Matlab users. Currently the plotting and interpolation needed during plotting are done in Python. For instance, the 3D scatterred interpolation is done via Interpolate in Scipy. Hopefully these additional dependencies will be cut down.

In the current version of PyCall and PyJulia, there is already direct support for accessing Julia struct objects (noted as jlwrap).

To overcome the dependency issue on Python, I take advantage of Requires.jl. The idea is that the plotting related functions are only loaded when PyPlot is imported.

henry2004y commented 3 years ago

I don't expect this being used too much from Python, so let's move the irrelevant code to Julia interoperability repo and close this.