Comments (2)
No fancy design patterns for now:
def solver(input, method='cython'):
if method == 'cython':
result = single_track_PDEsolver(input)
else if method == 'python':
result = single_track_PDEsolver_python(input)
return result
from iontracks.
By test I mean:
@pytest.mark.parametrize # parametrisation with main input parameters should result in short execution of the tests, i.e. less than 60 s
@pytest.mark.parametrize("method", ["cython", "python"])
def test_abstraction_solver
the purpose is to check if pure python implementation gives the same numerical results as cython, at least for such input parameters for which python calculations are fast enough to complete within 60 s
from iontracks.
Related Issues (20)
- Add requirements.txt
- Fix example script HOT 1
- LET calculations HOT 1
- Add github actions workflow
- Add simple pytest enviroment
- Add support for Windows Cython compilation
- Add type hints
- Investigate compiling cython with setup.cfg
- Check if kinetic energy units are being consistently used HOT 1
- Add printout for debugging purposes to see the progress of solver HOT 1
- Add general check
- Check pythran speedup
- Check cython sse speedup
- Check continues beam example script HOT 1
- Check photons / electrons code
- Check numba speedup HOT 2
- Reorganize `hadrons` package
- Accelerate `electrons` package
- Add free electron component
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 iontracks.