Giter Club home page Giter Club logo

pysingfel's Introduction

pysingfel

Python version of singfel, which is a C++ package calculating the propagation of the scattered light signal (including incoherent effects) to the detector plane.

Benchmark

+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | | C++ | pysingfel | +=============+=============+=============+=============+=============+=============+=============+ | No. of dp   | 100       | 200 | 400 | 100       | 200 | 400 | +-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | Time (s)   | 72.514     | 143.179     | 283.113     | 75.768     | 150.969     | 302.367 | +-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | Ave time (s)| 3.626       | 3.579       | 3.539       | 3.788       | 3.774       | 3.780 | +-------------+-------------+-------------+-------------+-------------+-------------+-------------+ Here 'dp' means diffraction pattern. On average pysingfel is only about 5.3% slower than the C++ version, thanks for the just-in-time optimization provided by Numba library.

Usage

  1. Integrated inside the simex_platform. A python script named radiationDamageMPI has the same interface as the excutive radiationDamageMPI in the C++ version and could be used in the same way. Therefore simex_platform doesn't need to change.
  2. Calculate diffraction patterns directly from Protein Data Bank (.pdb) file. See test_particle.test_calFromPDB() for more infomation.

pysingfel's People

Contributors

cfgrote avatar wang-zy avatar

Watchers

James Cloos avatar  avatar

Forkers

pinkdiamond1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.