Giter Site home page Giter Site logo

bjheinen / liquiddiffract Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 5.0 6.72 MB

LiquidDiffract is a GUI program to process experimental X-ray diffraction data of liquids/amorphous solids.

License: GNU General Public License v3.0

Python 100.00%
x-ray-diffraction structure-factor pair-distribution-function python physics total-scattering

liquiddiffract's Issues

Atomic fraction as float

@bjheinen Currently atomic fraction n must be an integer. Can this be made a float? For example, I have GaSn alloy with 8.5 at. % Sn. To get around this, if I multiply atomic fractions by 100 I get the following error:

Traceback (most recent call last):
File "C:\Users\James\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\LiquidDiffract\gui\optim_ui.py", line 197, in on_click_calc_sq
self.data['sq_y'] = core.calc_structure_factor(self.data['cor_x_cut'],
File "C:\Users\James\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\LiquidDiffract\core\core.py", line 562, in calc_structure_factor
avg_scattering_f = calc_average_scattering(composition, Q_cor)
File "C:\Users\James\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\LiquidDiffract\core\core.py", line 224, in calc_average_scattering
np.sum(np.asarray([x*y for x in atomic_ff for y in atomic_ff]), 0)
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 11.7 GiB for an array with shape (1000000, 1570) and data type float64

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.