aestimosolver / aestimo

Aestimo 1D Schrödinger-Poisson Solver
https://aestimosolver.github.io
GNU General Public License v3.0
52 stars 23 forks source link

importing aestimo solver throws and error, dependency on aeslibs #41

Open DRA-chaos opened 1 year ago

DRA-chaos commented 1 year ago

Describe the bug If run on google colab or visual studio, post pip install aestimo or !apt-get install aestimo , importing the aestimo sovler fails to work. While using the 1-D solver, an error on finding the 'aeslibs' module comes up : ModuleNotFoundError: No module named 'aeslibs'.

To Reproduce Steps to reproduce the behavior:

  1. Go to '.Google Colab..'
  2. type the code
  3. import aestimo.aestimo as solver import aestimo.config as ac ac.messagesoff = False import aestimo.database as adatabase import numpy as np import matplotlib.pyplot as plt import copy from pprint import pprint

Expected behavior ModuleNotFoundError: No module named 'aeslibs'.

Screenshots image

Desktop (please complete the following information):

sblisesivdin commented 1 year ago

Sorry for late reply. I never executed aestimo on Google Colab, but maybe we need to import aeslib modules with relative path with using "." So just put a dot before aeslib imports. I hope it works.

keaip commented 1 year ago

Importing aeslib modules with relative path with using ".", as Prof. Lisesivdin suggested, does work!

Jamshad30 commented 1 year ago

Importing aeslib modules with relative path with using ".", as Prof. Lisesivdin suggested, does work!

But this gives error in google colab.