Coder Social home page Coder Social logo

jzmnd / levmpy Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 300 KB

Python module and wrapper for the LEVM complex nonlinear least squares program

License: MIT License

Fortran 90.66% Python 9.10% NASL 0.24%
fortran impedance-spectroscopy non-linear-least-squares python

levmpy's People

Contributors

jzmnd avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

levmpy's Issues

No module named 'fortranlib'

Hi jzmnd,

I've been trying to use your great module to fit my results since last time I had to basically use the windows GUI for LEVM close to 400 times. I've been trying to use it on linux Mint but it is not working.

In order to successfully install the module I had to previously install the gfortran package. I installed it writing the following (after downloading the zip file to my PC):

sudo pip3 install LEVMpy.zip

Where I get a message that the package is succesfully installed for the 1.1 version. I then tried a test file like this:

import levmpy expt = levmpy.Experiment("testA", outsuffix="OUTFILE", path="~/Pt-H/")

And run it with python3. This immediately gives me an error:

AttributeError: module 'levmpy' has no attribute 'Experiment'

Which I think is fixed changing the init files since in Python 3 apparently the imported classes must be preceded with a dot. The levmpy init file then reads

from .levmpy import *

I repeat this in the init file from the fortranlib directory and the program works till there.
It then shows this error which I don't know how to fix

File "testLEVM.py", line 1, in <module> import levmpy File "/usr/local/lib/python3.8/dist-packages/levmpy/__init__.py", line 1, in <module> from .levmpy import * File "/usr/local/lib/python3.8/dist-packages/levmpy/levmpy.py", line 14, in <module> import fortranlib as _lv ModuleNotFoundError: No module named 'fortranlib'

I noticed that the contents of my fortranlib directory are very different from the ones contained in the GitHub directory page. I list my files here using the ls command:

__init__.py LEVMpyFortran.cpython-38-x86_64-linux-gnu.so __pycache__

Could it be that I need another package to install the file? Did you use a specific one? By the way I'm not using Anaconda. I mention it since apparently that was important in several threads I checked but that was before installation. I also tried to run it using Python 2 instead but didn't work.

Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.