Comments (8)
I haven't thought much about it beyond musing that acceleration with numba is probably a good idea :-)
It would be great to make some progress on #6 and add some tests to ensure that the package is portable and reproducible on different platforms. Acceleration without tests could be a recipe for trouble.
from pyrads.
The fortran wrapping can be a chore. The RRTMG wrapper for climlab could serve as a useful example.
from pyrads.
@AndrewWilliams3142 it's not pretty! If I can find some time I will take another look at #6. I do think the automation of the build is important to make this package more portable and more testable.
from pyrads.
Good point @brian-rose ! I'll start working on some tests this week.
I've also added a setup.py in #13 , which seems to work when I tried it locally. I'm not sure how to wrap fortran build though.
from pyrads.
Numba does seem to speed things up significantly -- great work @AndrewWilliams3142 !
I've added a conda env so new PyRADS users can hopefully use this out-of-the-box. @brian-rose @AndrewWilliams3142 let me know if you have any other suggestions to increase user friendliness
from pyrads.
No worries @ddbkoll , happy to help!
As @brian-rose said already, I think the next step should be to automate the fortran build ( and fully close #6 ), this will make it easier to add some unit tests as well. I did a dive into the climlab RRTMG wrapper as suggested, but I don't really know enough about conda/compilers to be able to follow the details sadly
from pyrads.
@brian-rose great! I just noticed your minimalf2py
repo actually - I'll take a look at that and see if I can understand the automatic compilation process a bit better. Happy to be of help if i can
from pyrads.
Yes, that's a good place to start (and I should have mentioned earlier). I created that repo specifically to help debug some build / CI issues.
from pyrads.
Related Issues (13)
- Add an open-source license HOT 1
- Stratospheric water vapor inaccurate
- Make latent heat of vaporization a function of temperature
- Numba causes silent errors for mixed-component atmospheres HOT 11
- Relaxing CO2 trace gas assumption in OpticalThickness.py ? HOT 4
- OpticalThickness.py/compute_tau_H2ON2_CO2dilute HOT 1
- Adding isotopologues
- Upload scripts to reproduce Figures in Koll & Cronin (2018).
- Change pressure broadening coefficients from "air" to "mixed" HOT 1
- conda-installed gfortran on OSX: builds fail at runtime HOT 7
- Packaging this nice package
- Python 3 compatibility
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 pyrads.