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.1.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.1-cp314-cp314-win_amd64.whl (33.0 MB view details)

Uploaded CPython 3.14Windows x86-64

jscatter-1.9.0.1-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.1-cp314-cp314-macosx_15_0_arm64.whl (31.5 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

jscatter-1.9.0.1-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.1-cp313-cp313-macosx_15_0_arm64.whl (31.5 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

jscatter-1.9.0.1-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.1-cp312-cp312-macosx_15_0_arm64.whl (31.5 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

jscatter-1.9.0.1-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.1-cp310-cp310-manylinux_2_34_x86_64.whl (33.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

File details

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

File metadata

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

File hashes

Hashes for jscatter-1.9.0.1.tar.gz
Algorithm Hash digest
SHA256 639306c85f25dbc0539d1c1cfc8eb1fe9c82179472fcb8379f77dc6aee830c07
MD5 dadc523168d687dbd8da5dd9f21d4ac5
BLAKE2b-256 1e240a13099cadbc9fde9dbc5a2334fc499717d8feee9410e6c417d70f9f1bda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jscatter-1.9.0.1-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.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 60146e734a401a1835e302578efd2b51cb1c1b1d961f4e4ea8a241a9d3ff0c7c
MD5 678dd829b63860516c19aee35566aad1
BLAKE2b-256 4cfba828b730f0d1d0666d3466fd89ed12aac4b557c30d8ba59ab834f42a5558

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.9.0.1-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6f3abff19e40aedfaaf9dd723838b823dbbec155ac4276d120fc7082c6c96b21
MD5 15fbbdf7a04270f966ce9ceb8bc62283
BLAKE2b-256 707002e6a441bf798c92c106d681d11c8cf6d9af4c7d0f3286071f233f613c65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.9.0.1-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ddfb251984040e7e29adff7c6a2f33e6a74d6611fa1809247f443382f87d106a
MD5 920bd50330ca810b8f4a48ba8c431187
BLAKE2b-256 3e240fcd487aa012c4584f14a77ba6cf304bf8a3e5f056eee0d2f7febd29e4e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jscatter-1.9.0.1-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.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6774d546f583dc774bfa4b90fbedac833e7f96ea0185e1b9149de92633718c28
MD5 143903ba64159dc9ca48bfa3b72b1a0c
BLAKE2b-256 861eb5e058a0dd95d30562920c92c9e5e5e285a0adb96ad3df3a24a2e3ba139c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.9.0.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a80d593939d3472c6ed5de42ed6a92055cabec8b151ebaeb1002a4d4a9f0cc6c
MD5 d06d849786032b3ffe34053da0246a34
BLAKE2b-256 aef9e448e8b8f65b752c6c4d92c8929df0bf9dd48efd3dc837804c881b789dfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.9.0.1-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 32525cb4620bba50eb6a57df059432661996ef44f148edc8a9122e81560089a1
MD5 70b28a6443e62344d5beca327c39932c
BLAKE2b-256 674ea0b79bb9b9ba3ecb9f0fc50bd4f41f53e19d1bdf047f59d775c611814038

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jscatter-1.9.0.1-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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 28ac822461f0162de0746342790b9b0916116d8ba135b30195a00f443730b708
MD5 0380b3f3c0591172af1a02e61c6ce645
BLAKE2b-256 f830e0e60b4635d83a00ce4eaa6c8fb6a84bd90ee2706b34e5f72e973247855f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.9.0.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d5fbb5c8732cfbc92315000f12dd83a49221e1ac571ee323c7bf3ae8da41ce68
MD5 9904f1305a288411e15d1989a4a6f073
BLAKE2b-256 9b11a5f5c4452450d7388efc0f897823a5d0c5a03f4241e957cf508c9c90e572

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.9.0.1-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 3c445b313ca03e3c8e93ba5a5e524c8510209c98da301d3398afa888921b30a6
MD5 292bf8b8136b844af9bdda497346bc6b
BLAKE2b-256 f415a2c32d1e551a02205a0a2f1e272835d7f4a3b51b4ba294d261514a837fc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.9.0.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7ff4a46841e0f8cb70b72ebc96c9d1944718e7030c8b49cc142d59e8dd5b0f99
MD5 03721af9a59e700a8f495d54130cbde8
BLAKE2b-256 3c4264629f66b2bb1e35994547646344cacd5da3e80849efa51a4be59ee8f466

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.9.0.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0b7edf8b2bca2ff0a9dda8a5c19d443039a35b89a25782c876d2cf89573b2982
MD5 1851eccdbe5f2bf41eb8dd497b848516
BLAKE2b-256 bea23070a788849d4b997b02f31be83a4ed84f64d0b272e9f6814878a742c9f1

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