jzmnd / levmpy Goto Github PK
View Code? Open in Web Editor NEWPython module and wrapper for the LEVM complex nonlinear least squares program
License: MIT License
Python module and wrapper for the LEVM complex nonlinear least squares program
License: MIT License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.