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

This version

1.8.2

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

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

jscatter-1.8.2-cp314-cp314-macosx_15_0_arm64.whl (30.4 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

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

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

jscatter-1.8.2-cp312-cp312-macosx_15_0_arm64.whl (30.4 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

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

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

jscatter-1.8.2-cp311-cp311-macosx_15_0_arm64.whl (31.5 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

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

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

jscatter-1.8.2-cp310-cp310-macosx_15_0_arm64.whl (30.4 MB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

jscatter-1.8.2-cp39-cp39-manylinux_2_34_x86_64.whl (32.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

File details

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

File metadata

  • Download URL: jscatter-1.8.2.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.8.2.tar.gz
Algorithm Hash digest
SHA256 b33058a9f3a48baf84c58506d890e9f3d67b2d5a8bd43d4e9688e36090faf99e
MD5 39ea3aae61245e0f8560bf04aea87043
BLAKE2b-256 83121db6db0c2956705fe2c757c38d4675b629fdedca42751810f1097707b878

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.8.2-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c0c2b63b3faed0750f7d928a0ccb168c9442221132767a92f24018aeb11050be
MD5 caa0815d14d3299fccf3ad38384f7c8e
BLAKE2b-256 d293985e7260021bc39b6f5ef5b43f9cf87dac968dc2daf7d99a3de6c8232467

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.8.2-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c8a8edac1499a16187fa35981aab017702b0be90b93e67a5c5b5d5d0affd651f
MD5 2db4b84423885ca393c2fac8ae35a239
BLAKE2b-256 2f1a9571211abca77f610fc7939c7891b77b2e814bea92c70c52541e5e007918

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.8.2-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c897f26d1d7ea0e0c23fd66f5b5f1758d469668e81b1cfe8edb44abb4ee0070f
MD5 5f0c297531b094dd604160fb48e5a282
BLAKE2b-256 9e00005bc6279b3a5ad68771cc11f154a9de7cd63112567e148ce8b7f3fbc543

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.8.2-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 6d308c49be7bf427ba9955025c05fe7c5b7a4338771f171d04b5bc65408bc6cc
MD5 37ee2675965353e798be27222bb5e22c
BLAKE2b-256 51868d85b800b23da61fffc816ce570d8e99e2452fcd8b9b0226a132a11af4e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.8.2-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8731d0cdf167d682cc2fd8fc581abb47dd93cdd1df6821b0f0d0ae4b6fb5fa19
MD5 ee4f32f7d8399382b52e1d4b055e9d6d
BLAKE2b-256 179fb32f3b1f9610ea74316288467fbf786746a44ad1bca8cbe9791e967ea8ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.8.2-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5aa161bc3d0b5d50ce431e9ae821c2f260cfc4ca0cea6e7c0867df1db30a4402
MD5 cd6551564e73302135789bb4225ce061
BLAKE2b-256 dd15d0f6c273764eeecbc56b5d0f99e85757b4668a780842d0276a9817623ddb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.8.2-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 39db653dd3b36770521eb3c07c5703dad9318f9a671293da8a9bcabc29d74d40
MD5 8ae2c205f2164de46d3457756646914e
BLAKE2b-256 81607f70d56e84d92b1b59b84349df77304946704884617954a3ac84805cb971

See more details on using hashes here.

File details

Details for the file jscatter-1.8.2-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for jscatter-1.8.2-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e101c80017a72ee31cf133b24684b1e43f6126c91686267f7956e740e1bdf057
MD5 821d7e946a155f1a6b801846144ef402
BLAKE2b-256 794fc55f8d68c34a879929f3892f53405dc03f72da1535e2789accddbf1367c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jscatter-1.8.2-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 502dfccca81328d104956c78d6e836d3741df50372c3eb511991acb8c89f934e
MD5 25a232bdb96e77511bd46d152523f1bf
BLAKE2b-256 6915ee19845458499b63ff358f484227dc8537881e35a7bd7201c33bfa430be1

See more details on using hashes here.

File details

Details for the file jscatter-1.8.2-cp310-cp310-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for jscatter-1.8.2-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d7c3b33710efacc9f7c0e2c93f775cb1ba7c560ba8bf9afe3139ab7c98f7c36f
MD5 425ea8ddcd9bd9eee297a00b9afc68ef
BLAKE2b-256 fbc7119502793f5d7b910649221ff7a441ca0fdc97d286cf5dde4fa40397c743

See more details on using hashes here.

File details

Details for the file jscatter-1.8.2-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for jscatter-1.8.2-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7641d99a894a22a63c1e10734c9356f5af85de0949c8025ee6d9c64008a26a06
MD5 57a30d0eba90241698b276b265f13c13
BLAKE2b-256 72e2f77a617c151da5d17b096d358c002a12d2a7a7d02b7873e0d6d0e874fa44

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