Comments (8)
How did you install pybert and which version do you have?
from gimli.
I installed it using pip install pybert and its the 0.0.2 version.
It is a folder i my site packages in the pygimli environment.
from gimli.
You probably installed some other pybert. Up to now, there is no pip installation of OUR pybert (but there should be one as now pyGIMLi can also be installed by pip). Please use conda install -c gimli pybert
or just clone pyBERT by git.
from gimli.
I am not able to run conda install -c gimli pybert
with my current python version (3.11), but to be able to run it i have made a new environment, that will allow be to run the install. The envionment is made with this code:
conda create -n pg_newness -c gimli -c conda-forge python=3.8 "pygimli<=1.4.0"
But in spyder when i run only import pygimli as pg
and import pybert as pb
it yields the following error:
AttributeError: module 'numpy' has no attribute 'float'.
np.float
was a deprecated alias for the builtin float
. To avoid this error in existing code, use float
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64
here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
(In addition i would like to use the newest version of pygimli as possible. I was succesful in running my code with pygimli 1.3.1 version, but i am using the dataframe .copy() command, and that is not accessable in the 1.3.1 version)
from gimli.
Why would you want pygimli <= 1.4.0 ? Can you please try with >= 1.5.0 ?
from gimli.
I didnt think i was able to, but I have now created an environment with
conda create -n pg_newness -c gimli -c conda-forge python=3.8 "pygimli<=1.5.0"
When i run each of these import:
import pygimli as pg
import pybert as pb
from pybert.importer.exportData import exportRes2dInv
I still get the error:
AttributeError: module 'numpy' has no attribute 'float'.
np.float
was a deprecated alias for the builtin float
. To avoid this error in existing code, use float
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64
here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
I suspected it had something to do with my numpy version, but i have tried different version from 1.19 to 1.24, and i keep getting the same issue, and i am not even calling any .np commands with just importing pg and pd.
from gimli.
Hallo again, and sorry for all of the back and forth!
I finally created an environment with
conda create -n pg_newness -c gimli -c conda-forge python=3.9 "pygimli<=1.5.0"
And it apprears to all be working now, thank you!
from gimli.
In this case the <= does not make much sense, did you now install 1.5.0 or 1.4.x?
In any case, we stopped supporting Python<3.9 so fixing to 3.8 was the source of the problem.
from gimli.
Related Issues (20)
- Joint inversion module missing HOT 4
- bug-typo/Cm05.cols HOT 1
- The cellMarkers is different before and after the inversion process AND inversion mesh setting HOT 2
- This may be a corrupt mesh error HOT 7
- pyvista shows no result graph when I tried to reproduce the example '3D surface ERT inversion' HOT 2
- ERT: blanked out cells when adding new regions to the mesh HOT 4
- Cannot import name 'RVector3' form 'pygimli.core.core HOT 6
- how to fix import pygimli error libcholmod.so.3 on Mybinder HOT 9
- Plot Inversion Result from Another Software use Pygimli HOT 2
- fitReciprocalErrorModel IP data HOT 7
- Seeking Help with 3D Magnetic Inversion HOT 2
- Question about geometric factor for an ERT survey with submerged and terrestrial electrodes HOT 4
- ERTManager.invert() --> error: malloc(): unsorted double linked list corrupted HOT 4
- Failure to install on mac HOT 6
- Wrong coordinates in tutorial notebook HOT 4
- pyGIMLi and NUM_THREADS HOT 7
- 3d geometry with topography and fixed thin layer HOT 5
- pg.interpolate() giving error with regionwise regularization HOT 8
- Discussion regarding `errorVals`-`absoluteError`-`relativeError` HOT 4
- Petrophysical joint inversion: smooth the output result HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gimli.