Skip to main content

Toolkit for data reduction, normalization, combination, visualization and analyis of triple-axis spectrometers, especially for Tapain and Sika

Project description

TasVisAn

TasVisAn is a Python library for data reduction, visualization, and analysis of neutron triple-axis spectrometers (TASs), particularly for the thermal-neutron triple-axis spectrometer Taipan and cold-neutron triple-axis spectrometer Sika at Australian Centre for Neutron Scattering, ANSTO. It can also be used for other triple-axis spectrometers in other facilities, for example, the thermal-neutron triple-axis spectrometer BT7 and the cold-neutron triple-axis spectrometer BT4 at NIST. More triple-axis spectrometers will be supported soon.

Install name: tasvisan
Import name: tasvisan


🚀 Installation

pip install tasvisan

📦 Usage

import tasvisan

# Example usage
# (replace with real functionality)
result = tasvisan.do_something()
print(result)

Run the GUI, Go to terminal:

#run python in terminal
>python
#in the prompt of python
>>import tasvisan
>>tasvisan.gui.TASDataBrowser.main()
>>

On linux like Ubuntu and Linuxmint, if you have warning like this:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user'libGL error: glx: failed to create dri3 screenlibGL error: failed to load driver: virtio_gpu python

add the following lines in your .bashrc

# Ensure always render the GUI using software
export LIBGL_ALWAYS_SOFTWARE=1

# Ensure XDG_RUNTIME_DIR exists for third-party apps
if [ -z "$XDG_RUNTIME_DIR" ]; then
    export XDG_RUNTIME_DIR=/tmp/runtime-$USER
    if [ ! -d "$XDG_RUNTIME_DIR" ]; then
        mkdir -p "$XDG_RUNTIME_DIR"
        chmod 0700 "$XDG_RUNTIME_DIR"
    fi
fi

then run

source ~/.bashrc

Then, you can rerun the GUI interface in python again.

🎯 Features

Modular design for scientific workflows Lightweight and easy to integrate into existing pipelines Designed for extensibility in research environments Compatible with NumPy-based data processing Friendly GUI for Data Browsing

📁 Project Structure

tasvisan/
├── src/tasvisan/     # Main package (import tasvisan)
├── pyproject.toml    # Build configuration
├── README.md
└── LICENSE

🔬 Scope

This package is intended for:

Triple-axis Spectrometer Data Reduction, Normalization, Visualization, and Analysis

Quick Data Combination and Contour Mapping

Resolution Convolution Fitting to Inelastic Neutron Scattering Data

Experimental Planning and Command Validation and Simulation

Data Reduction and 3D Visualization of Multiplexing and Multi-analyzer Triple-axis Spectrometers

🛠️ Development

Repository:

https://github.com/gcdengansto/TasVisAn

Install in editable mode:

pip install -e .

📖 Documentation

Documentation is under development. Usage examples and tutorials can be found at https://github.com/gcdengansto/TasVisAn.

🤝 Contributing

Please contact the author for fixing bugs and adding additional functions

📜 License

This project is licensed under the MIT License — see the LICENSE file for details.

👤 Author

Guochu Deng

Email: gc.deng.ansto@gmail.com

⚠️ Disclaimer

This software is provided for scientific research purposes. No guarantees are made regarding correctness or fitness for a particular application.

Project details


Download files

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

Source Distribution

tasvisan-0.1.6.tar.gz (75.9 kB view details)

Uploaded Source

Built Distribution

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

tasvisan-0.1.6-py3-none-any.whl (78.6 kB view details)

Uploaded Python 3

File details

Details for the file tasvisan-0.1.6.tar.gz.

File metadata

  • Download URL: tasvisan-0.1.6.tar.gz
  • Upload date:
  • Size: 75.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for tasvisan-0.1.6.tar.gz
Algorithm Hash digest
SHA256 643a7fad9cf2d23d7d4c50c72380e9215e743e471d54dadf1eab67db7ec5f498
MD5 f50a63e7aa8eeb1a93d60cc8bdcca6e2
BLAKE2b-256 4205b21f573ace3bcfb808549ef4d1b8d94dc2defb0a141358941e0db67dbbd5

See more details on using hashes here.

File details

Details for the file tasvisan-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: tasvisan-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 78.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for tasvisan-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4e7694c8180d873284a004b1beeb5ab80fb02a4dabbd62f4b9c0fe2e34c22e30
MD5 0e5fe4c3245aeabfd5183a589584d219
BLAKE2b-256 22f93bd8a67ce1a220b3dbac25b1c9e12db1772a0389d45f027b5b78797058b2

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