Comments (6)
Changing my numpy version to 1.23 fixed the AttributeError: module 'numpy' has no attribute 'bool'.
Thank you!
from quakemigrate.
Thanks for posting Sam. Please will you also check what numpy version you are running? (Should be possible with conda list
and then search for the numpy line).
from quakemigrate.
Thanks for posting Sam. Please will you also check what numpy version you are running? (Should be possible with
conda list
and then search for the numpy line).
Added above (Numpy v 1.24.2)
from quakemigrate.
Ok. The problem is that these aliases (np.bool
etc.) expired in numpy v1.24, and we haven't updated them yet (in the master branch). There are three possible solutions:
- revert your numpy to 1.23 (
conda install numpy=1.23
) -- easiest option, and recommended to try first - update
np.bool
,np.int
etc within the quakemigrate scripts yourself as a temporary stop-gap - switch to the
feat_WheelBuilding
branch, which we are finalising at the moment before pushing to master. This removes all version pins and sorts these kinds of issues. However it is still in testing. Instructions if you do want to pursue this option are below:
conda create -n test_install python=3.9
conda activate test_install
git clone https://www.github.com/QuakeMigrate/QuakeMigrate.git
git checkout -b feat_WheelBuilding origin/feat_WheelBuilding
cd QuakeMigrate
pip install .
# Then make sure you change back up out of the 'QuakeMigrate' directory:
cd ..
python
>>> import quakemigrate
>>> quakemigrate.__version__
'1.0.0.rc2'
# ^ check this is the same!!
from quakemigrate.
(Leaving this as an open issue until this has been dealt with in the master branch.)
from quakemigrate.
Closed with #138
from quakemigrate.
Related Issues (20)
- [BUG]: All traces rejected where one pair can't be merged due to "Incompatible traces" error.
- error in compute_traveltimes HOT 4
- Issue Import QuakeMigrate in Python (AttributeError) HOT 2
- No files found in archive for this time period : No detection HOT 4
- Overlapping waveforms in locate plot summary HOT 4
- PickTimes export to Obspy HOT 7
- [BUG]: skfmm LUT generation doesn't work for the southern hemisphere HOT 2
- FEAT: Make picking optional.
- BUG: 'discarded' events not being plotted in Trigger summary
- BUG: Binder notebooks do not work. HOT 1
- Allow multiple channels for P phase in event & pick plots
- FEAT: Build QuakeMigrate travel-time lookup tables from 3-D velocity models
- BUG: plotting failure with matplotlib 3.8 HOT 2
- Data failed to pass the specified data quality criteria HOT 3
- Tests failing due to change in NonLinLoc source directory HOT 2
- BUG: cibuildwheel fails to build wheels for Windows
- Tests timing out on data acquisition from EarthScope stage HOT 7
- Warnings about deprecation of Node.js 16 HOT 1
- examples program expand longitude canβt run detect HOT 6
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 quakemigrate.