Skip to main content

Combines dataArrays with attributes for fitting plotting and analysis including models for Xray and neutron scattering

Project description

The aim of Jscatter is treatment of experimental data and models:

  • Reading and analyzing experimental data with associated attributes as temperature, wavevector, comment, ….

  • Multidimensional fitting taking attributes into account.

  • Providing useful models for neutron and X-ray scattering form factors, structure factors and dynamic models (quasi elastic neutron scattering) and other topics.

  • Simplified plotting with paper ready quality.

  • Easy model building for non programmers.

  • Python scripts/Jupyter Notebooks to document data evaluation and modelling.

Binder citation install license pyversion Read the Docs Beginners Guide

Jscatter Logo

Main concept

  • Data are organised in dataArray/dataList with attributes as .temperature, .wavevector, .pressure and methods for filter, merging and more.

  • Multidimensional, attribute dependent fitting (least square Levenberg-Marquardt, Bayesian fit, differential evolution, regularisation, …).

  • Provide relative simple plotting commands to allow a fast view on data and possible later pretty up.

  • User write models using the existing model library or self created models.

    The model library contains routines e.g. for vectorized quadrature (formel) or specialised models for scattering as formfactor, structurefactor, dynamic and biomacromolecules.

Documentation

Documentation located at http://jscatter.readthedocs.io. A number of examples how to use Jscatter is provided and can be run from Jscatter.

A short example how to use Jscatter

import jscatter as js

i5=js.dL(js.examples.datapath+'/iqt_1hho.dat')     # read the data (16 sets) with attributes
# define a model for the fit
diffusion=lambda A,D,t,wavevector,elastic=0:A*np.exp(-wavevector**2*D*t)+elastic

# do the fit
i5.fit(model=diffusion,                     # the fit function
       freepar={'D':[0.08],'A':0.98},       # start parameters, "[]" -> independent fit
       fixpar={'elastic':0.0},              # fixed parameters
       mapNames={'t':'X','wavevector':'q'}) # map names from the model to names from the data

p=js.grace(1.2,0.8)                         # open a plot
p.plot(i5,symbol=[-1,0.4,-1],legend='Q=$q') # plot with Q values in legend
p.plot(i5.lastfit,symbol=0,line=[1,1,-1])   # plot fit as lines
p.save('test.agr')

** Released under the GPLv3 **

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jscatter-1.9.0.tar.gz (19.6 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

jscatter-1.9.0-cp314-cp314-win_amd64.whl (33.0 MB view details)

Uploaded CPython 3.14Windows x86-64

jscatter-1.9.0-cp314-cp314-manylinux_2_34_x86_64.whl (33.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

jscatter-1.9.0-cp314-cp314-macosx_15_0_arm64.whl (31.5 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

jscatter-1.9.0-cp313-cp313-win_amd64.whl (32.1 MB view details)

Uploaded CPython 3.13Windows x86-64

jscatter-1.9.0-cp313-cp313-manylinux_2_34_x86_64.whl (33.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

jscatter-1.9.0-cp313-cp313-macosx_15_0_arm64.whl (31.5 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

jscatter-1.9.0-cp312-cp312-win_amd64.whl (32.1 MB view details)

Uploaded CPython 3.12Windows x86-64

jscatter-1.9.0-cp312-cp312-manylinux_2_34_x86_64.whl (33.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

jscatter-1.9.0-cp312-cp312-macosx_15_0_arm64.whl (31.5 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

jscatter-1.9.0-cp311-cp311-manylinux_2_34_x86_64.whl (33.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

jscatter-1.9.0-cp310-cp310-manylinux_2_34_x86_64.whl (32.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

File details

Details for the file jscatter-1.9.0.tar.gz.

File metadata

  • Download URL: jscatter-1.9.0.tar.gz
  • Upload date:
  • Size: 19.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for jscatter-1.9.0.tar.gz
Algorithm Hash digest
SHA256 d495840b55bbfdc22eb0beb967a6787888a6456f16ca525cd0abb8c7630e67af
MD5 587941cc70ea0fa2a2339e736e41c63d
BLAKE2b-256 4d8347bcb2edd67b072afc8a81131fad70757a32c9a7ad1adc200690931e7206

See more details on using hashes here.

File details

Details for the file jscatter-1.9.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: jscatter-1.9.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 33.0 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for jscatter-1.9.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a2df9d6d9c1739b9f400b1e3fc2a264365d1e56b21c85f7df262ed0efe71c8e6
MD5 709b7f5b3e73db771a79da065ffafcf0
BLAKE2b-256 a745d77f85b7ae21f9dd0d374a6745c977795e767382a98248b836a254a76dcd

See more details on using hashes here.

File details

Details for the file jscatter-1.9.0-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for jscatter-1.9.0-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9ebb01cbc1cd44fd2bf98d82d4cbd79e77227de1d15a5d2b48e7b691768b60cb
MD5 4cbd3f1cb5861ed0aa84b128ef439012
BLAKE2b-256 d2302ef5d4d6c3a35f6d030e787a5675f1bf3ed5d4470056d99f4fb41c7b3e1c

See more details on using hashes here.

File details

Details for the file jscatter-1.9.0-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for jscatter-1.9.0-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 6bd09fc52c4313f08fc9be270831ff872aa333ec61bc346e6fd1a066af334544
MD5 89f057185dd8b04e4da80718aecc319c
BLAKE2b-256 e5bbfb22a5312ccd3d58b2a326eebeb81a141a4adcd95074ce111e61b32122bc

See more details on using hashes here.

File details

Details for the file jscatter-1.9.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: jscatter-1.9.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 32.1 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for jscatter-1.9.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b6de0e65954912fd839b22107968cd7419b20bb1a246411f89bae8d2a648d53c
MD5 ffe0d027ad3c5a80f859b97b872876b5
BLAKE2b-256 d451f7501bb751179d0ce2e3fb99fa00a537679ace01430eed126c9d10a7f4c7

See more details on using hashes here.

File details

Details for the file jscatter-1.9.0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for jscatter-1.9.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c77d49a1ae8bf04e99cd8e9862cfb149546a3e6651b026fa4e830a8e008730fd
MD5 cdf6c83773dbefaa159123e93cf1f7a6
BLAKE2b-256 3543add0c403fa45c760c607974a9d3bcffe0e32b344870878810809808b2777

See more details on using hashes here.

File details

Details for the file jscatter-1.9.0-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for jscatter-1.9.0-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 526e9eca7879d9c5527525987051feb43b3b8bbe2610a0dad64a3b9d6a44cac4
MD5 2c43a6d4c6da70b109ebb796818bf7cc
BLAKE2b-256 d3a05fac1a532856f06a5e92aac9d3e512aceaeef6851a0a9222a32c68bfb861

See more details on using hashes here.

File details

Details for the file jscatter-1.9.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: jscatter-1.9.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 32.1 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for jscatter-1.9.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1f5bfb70b5b63f2f5aabbb7a43eb57b0b903fa61716ee671e54c9c20452d92f6
MD5 cd910a8613b0e1af9af09f1b54ad85ef
BLAKE2b-256 1934991b96f7676438e6dc6e6e7b98effdd7cfe3836ae5e51a6f588dfb6b124d

See more details on using hashes here.

File details

Details for the file jscatter-1.9.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for jscatter-1.9.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2a8b8bf49d075e38b724553a2e7b9475e08563f378c0768499a041610c652f93
MD5 b29515115bc81c175fbce4d8bc2af3ac
BLAKE2b-256 c71937015297cbccdaf8cf23ae9a5b87b456595679a89884f00aec14e46ee81c

See more details on using hashes here.

File details

Details for the file jscatter-1.9.0-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for jscatter-1.9.0-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 bec7a34a1ec2d9c3e00263a9195143a4f75aca5b9e60192067e1b4737abae6eb
MD5 0d2c852b2c4a83716f835dc0964ae967
BLAKE2b-256 d9c88db039623c7b1d2cae62fd2ccae42a0c22de3d94fd5fe275a7addfd6c054

See more details on using hashes here.

File details

Details for the file jscatter-1.9.0-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for jscatter-1.9.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 09d70ff5f8b68f69f96ae9ed3872846f46b1f2ff9efc9a10bccfa38703fcce8e
MD5 a275833b20083b5677843f6c72f9e5d3
BLAKE2b-256 fff258dfabf703f32a808afa3e53a17ad9813ea4ee3f94244475ed35f26542dd

See more details on using hashes here.

File details

Details for the file jscatter-1.9.0-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for jscatter-1.9.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 192b1e889c2ef4a254687b31a566c64bff257694c0f881b8f5c3b3c984990173
MD5 f0f848d0c07b3550dda009aa6b277ae0
BLAKE2b-256 0617ea25909f94f64f28bd92bd5e88d37efdfffd1453c40aaff5798e76561f8c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page