Comments (2)
>>> import numpy as np
>>> import numpy.lib.recfunctions as recfn
>>> from matplotlib import mlab
>>> x = np.recarray(10000,dtype=[('x',int),('y',int)])
>>> %timeit -r 10000 -n 1 mlab.rec_append_fields(x,['z'],[np.zeros(len(x))])
MatplotlibDeprecationWarning: The rec_append_fields function was deprecated in version 2.2.
1 loop, best of 10000: 140 µs per loop
>>> %timeit -r 10000 -n 1 recfn.rec_append_fields(x,['z'],[np.zeros(len(x))])
1 loop, best of 10000: 684 µs per loop
Note that I'm doing 1e4 explicit runs to avoid any potential caching issues.
from ugali.
Closed by kadrlica#14
from ugali.
Related Issues (20)
- Loading config in mcmc HOT 10
- Absolute magnitude from generic isochrone color HOT 1
- Add background density to results
- User age/metallicity bounds not respected
- Fix string type check for py2/py3 HOT 2
- Update isochrone download scripts HOT 1
- Update ugali dwarf catalogs HOT 9
- Add catalog for diffuse structures
- Typo in DECam mesa isochrone IO HOT 1
- Fix IAU name generation HOT 1
- Output Galactic coordinates with uncertainties
- Change coordinate name to equatorial
- bug in plotMembership in ugali.utils.plotting
- Surface Brightness calculation in ugali.analysis.results.py should use azimuthally-averaged half-light radius HOT 4
- ugali.stats.peak_interval appears to be calculating the interval incorrectly HOT 3
- Add Martin surface brightness to results
- Rename master branch to main
- Move to GitHub actions
- Update Johnson-Cousin transformations HOT 1
- pip install options
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 ugali.