Comments (4)
With running example_fits.py, the performance hit is really due to writing out the PDF with matplotlib. Possibly there are some improvements that can be done there_?_ The example_fits.py takes 1:36 on my system with writing the PDF, 4 seconds when not writing the PDF-file ...
from pypahdb.
There appear to be several options to speed-up the PDF production. While there are several alternative plotting packages, they all come with other requirements, e.g., Qt. On the other hand, several people suggest to reuse axis, etc. to speed up Matplotlib.
[update] Might be good to put an example output image(s)/plot(s) in the README and usage ...
from pypahdb.
It looks like snakeviz
works quite well for profiling/visualizing the results (https://jiffyclub.github.io/snakeviz/).
It's installable via pip
or conda
, and you basically just use it thusly...
python -m cProfile -o profiling_results.prof example_fits.py
snakeviz profiling_results.prof
(opens in your browser)
from pypahdb.
Interesting. I've installed the package and ran the profiling. Unfortunately I'm not getting the nice graphs---it looks like it doesn't like space in path names ... Though, the bottleneck we have is still Matplotlib. You were mentioning before that reusing the axis for each plot could speed-up the PDF-output. My current thoughts are that moving away from Matplotlib might not be such a good idea given its widespread use among the community ...
from pypahdb.
Related Issues (20)
- Move nbsphinx from requirements.txt to requirements-dev.txt? HOT 1
- Documentation fixes for API changes HOT 1
- Possible performance issues? HOT 5
- Changelog
- Travis and pickle HOT 1
- Versioning in the docs not showing correctly HOT 1
- Spectrum1D HOT 3
- Astropy HOT 2
- astropy.units HOT 1
- Astropy distortion warning when running example_fits.py HOT 2
- Add Class Inheritance Diagram to the docs HOT 2
- Use AppVeyor for Windows platform CI (a la Travis)?
- package and class importing/calling issue HOT 1
- "Format not recognized" error HOT 3
- Other File Formats
- Update precomputed matrix with version 3.20 spectra HOT 2
- Not Able to Install in Windows HOT 4
- charmap decoding error HOT 3
- Issues with installing pyPAHdb HOT 2
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 pypahdb.