tasvisan 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tasvisan-0.1.2/LICENSE +21 -0
- tasvisan-0.1.2/PKG-INFO +122 -0
- tasvisan-0.1.2/README.md +92 -0
- tasvisan-0.1.2/pyproject.toml +49 -0
- tasvisan-0.1.2/setup.cfg +4 -0
- tasvisan-0.1.2/src/tasvisan/__init__.py +11 -0
- tasvisan-0.1.2/src/tasvisan/base.py +1108 -0
- tasvisan-0.1.2/src/tasvisan/gui/TASDataBrowser.py +1450 -0
- tasvisan-0.1.2/src/tasvisan/gui/__init__.py +7 -0
- tasvisan-0.1.2/src/tasvisan/tas/__init__.py +7 -0
- tasvisan-0.1.2/src/tasvisan/tas/bt4.py +232 -0
- tasvisan-0.1.2/src/tasvisan/tas/bt7.py +282 -0
- tasvisan-0.1.2/src/tasvisan/tas/sika.py +781 -0
- tasvisan-0.1.2/src/tasvisan/tas/taipan.py +1303 -0
- tasvisan-0.1.2/src/tasvisan/tas/validator.py +284 -0
- tasvisan-0.1.2/src/tasvisan/utils/__init__.py +85 -0
- tasvisan-0.1.2/src/tasvisan/utils/toolfunc.py +1523 -0
- tasvisan-0.1.2/src/tasvisan.egg-info/PKG-INFO +122 -0
- tasvisan-0.1.2/src/tasvisan.egg-info/SOURCES.txt +20 -0
- tasvisan-0.1.2/src/tasvisan.egg-info/dependency_links.txt +1 -0
- tasvisan-0.1.2/src/tasvisan.egg-info/requires.txt +13 -0
- tasvisan-0.1.2/src/tasvisan.egg-info/top_level.txt +1 -0
tasvisan-0.1.2/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018-2026 Guochu Deng
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
tasvisan-0.1.2/PKG-INFO
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tasvisan
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Toolkit for data reduction, normalization, combination, visualization and analyis of triple-axis spectrometers, especially for Tapain and Sika
|
|
5
|
+
Author-email: Guochu Deng <gc.deng.ansto@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/gcdengansto/TasVisAn
|
|
8
|
+
Project-URL: Repository, https://github.com/gcdengansto/TasVisAn
|
|
9
|
+
Keywords: neutron,scattering,resolution,inelastic,spectrometer,triple-axis
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Requires-Python: >=3.8
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: numpy>=1.20
|
|
18
|
+
Requires-Dist: matplotlib>=3.5
|
|
19
|
+
Requires-Dist: scipy>=1.7
|
|
20
|
+
Requires-Dist: pandas>=1.3
|
|
21
|
+
Requires-Dist: lmfit>=1.0
|
|
22
|
+
Requires-Dist: h5py>=3.0
|
|
23
|
+
Requires-Dist: plotly>=5.0
|
|
24
|
+
Requires-Dist: inspy-conv
|
|
25
|
+
Requires-Dist: QtPy
|
|
26
|
+
Requires-Dist: PySide6
|
|
27
|
+
Provides-Extra: dev
|
|
28
|
+
Requires-Dist: pytest; extra == "dev"
|
|
29
|
+
Dynamic: license-file
|
|
30
|
+
|
|
31
|
+
# TasVisAn
|
|
32
|
+
|
|
33
|
+
**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.
|
|
34
|
+
|
|
35
|
+
> Install name: `tasvisan`
|
|
36
|
+
> Import name: `tasvisan`
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 🚀 Installation
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install tasvisan
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## 📦 Usage
|
|
47
|
+
```bash
|
|
48
|
+
import tasvisan
|
|
49
|
+
|
|
50
|
+
# Example usage
|
|
51
|
+
# (replace with real functionality)
|
|
52
|
+
result = tasvisan.do_something()
|
|
53
|
+
print(result)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 🎯 Features
|
|
57
|
+
Modular design for scientific workflows
|
|
58
|
+
Lightweight and easy to integrate into existing pipelines
|
|
59
|
+
Designed for extensibility in research environments
|
|
60
|
+
Compatible with NumPy-based data processing
|
|
61
|
+
Friendly GUI for Data Browsing
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
## 📁 Project Structure
|
|
65
|
+
```bash
|
|
66
|
+
tasvisan/
|
|
67
|
+
├── src/tasvisan/ # Main package (import tasvisan)
|
|
68
|
+
├── pyproject.toml # Build configuration
|
|
69
|
+
├── README.md
|
|
70
|
+
└── LICENSE
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## 🔬 Scope
|
|
74
|
+
|
|
75
|
+
This package is intended for:
|
|
76
|
+
|
|
77
|
+
> Triple-axis Spectrometer Data Reduction, Normalization, Visualization, and Analysis
|
|
78
|
+
|
|
79
|
+
> Quick Data Combination and Contour Mapping
|
|
80
|
+
|
|
81
|
+
> Resolution Convolution Fitting to Inelastic Neutron Scattering Data
|
|
82
|
+
|
|
83
|
+
> Experimental Planning and Command Validation and Simulation
|
|
84
|
+
|
|
85
|
+
> Data Reduction and 3D Visualization of Multiplexing and Multi-analyzer Triple-axis Spectrometers
|
|
86
|
+
|
|
87
|
+
## 🛠️ Development
|
|
88
|
+
|
|
89
|
+
Repository:
|
|
90
|
+
|
|
91
|
+
https://github.com/gcdengansto/TasVisAn
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
Install in editable mode:
|
|
95
|
+
```bash
|
|
96
|
+
pip install -e .
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## 📖 Documentation
|
|
100
|
+
|
|
101
|
+
Documentation is under development.
|
|
102
|
+
Usage examples and tutorials can be found at https://github.com/gcdengansto/TasVisAn.
|
|
103
|
+
|
|
104
|
+
## 🤝 Contributing
|
|
105
|
+
|
|
106
|
+
Please contact the author for fixing bugs and adding additional functions
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## 📜 License
|
|
110
|
+
|
|
111
|
+
This project is licensed under the MIT License — see the LICENSE file for details.
|
|
112
|
+
|
|
113
|
+
## 👤 Author
|
|
114
|
+
|
|
115
|
+
Guochu Deng
|
|
116
|
+
|
|
117
|
+
Email: gc.deng.ansto@gmail.com
|
|
118
|
+
|
|
119
|
+
## ⚠️ Disclaimer
|
|
120
|
+
|
|
121
|
+
This software is provided for scientific research purposes.
|
|
122
|
+
No guarantees are made regarding correctness or fitness for a particular application.
|
tasvisan-0.1.2/README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# TasVisAn
|
|
2
|
+
|
|
3
|
+
**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.
|
|
4
|
+
|
|
5
|
+
> Install name: `tasvisan`
|
|
6
|
+
> Import name: `tasvisan`
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 🚀 Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
pip install tasvisan
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## 📦 Usage
|
|
17
|
+
```bash
|
|
18
|
+
import tasvisan
|
|
19
|
+
|
|
20
|
+
# Example usage
|
|
21
|
+
# (replace with real functionality)
|
|
22
|
+
result = tasvisan.do_something()
|
|
23
|
+
print(result)
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## 🎯 Features
|
|
27
|
+
Modular design for scientific workflows
|
|
28
|
+
Lightweight and easy to integrate into existing pipelines
|
|
29
|
+
Designed for extensibility in research environments
|
|
30
|
+
Compatible with NumPy-based data processing
|
|
31
|
+
Friendly GUI for Data Browsing
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## 📁 Project Structure
|
|
35
|
+
```bash
|
|
36
|
+
tasvisan/
|
|
37
|
+
├── src/tasvisan/ # Main package (import tasvisan)
|
|
38
|
+
├── pyproject.toml # Build configuration
|
|
39
|
+
├── README.md
|
|
40
|
+
└── LICENSE
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## 🔬 Scope
|
|
44
|
+
|
|
45
|
+
This package is intended for:
|
|
46
|
+
|
|
47
|
+
> Triple-axis Spectrometer Data Reduction, Normalization, Visualization, and Analysis
|
|
48
|
+
|
|
49
|
+
> Quick Data Combination and Contour Mapping
|
|
50
|
+
|
|
51
|
+
> Resolution Convolution Fitting to Inelastic Neutron Scattering Data
|
|
52
|
+
|
|
53
|
+
> Experimental Planning and Command Validation and Simulation
|
|
54
|
+
|
|
55
|
+
> Data Reduction and 3D Visualization of Multiplexing and Multi-analyzer Triple-axis Spectrometers
|
|
56
|
+
|
|
57
|
+
## 🛠️ Development
|
|
58
|
+
|
|
59
|
+
Repository:
|
|
60
|
+
|
|
61
|
+
https://github.com/gcdengansto/TasVisAn
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
Install in editable mode:
|
|
65
|
+
```bash
|
|
66
|
+
pip install -e .
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## 📖 Documentation
|
|
70
|
+
|
|
71
|
+
Documentation is under development.
|
|
72
|
+
Usage examples and tutorials can be found at https://github.com/gcdengansto/TasVisAn.
|
|
73
|
+
|
|
74
|
+
## 🤝 Contributing
|
|
75
|
+
|
|
76
|
+
Please contact the author for fixing bugs and adding additional functions
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## 📜 License
|
|
80
|
+
|
|
81
|
+
This project is licensed under the MIT License — see the LICENSE file for details.
|
|
82
|
+
|
|
83
|
+
## 👤 Author
|
|
84
|
+
|
|
85
|
+
Guochu Deng
|
|
86
|
+
|
|
87
|
+
Email: gc.deng.ansto@gmail.com
|
|
88
|
+
|
|
89
|
+
## ⚠️ Disclaimer
|
|
90
|
+
|
|
91
|
+
This software is provided for scientific research purposes.
|
|
92
|
+
No guarantees are made regarding correctness or fitness for a particular application.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "tasvisan"
|
|
7
|
+
version = "0.1.2"
|
|
8
|
+
description = "Toolkit for data reduction, normalization, combination, visualization and analyis of triple-axis spectrometers, especially for Tapain and Sika"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.8"
|
|
11
|
+
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Guochu Deng", email = "gc.deng.ansto@gmail.com" }
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
license = "MIT"
|
|
17
|
+
license-files = ["LICEN[CS]E*"]
|
|
18
|
+
|
|
19
|
+
dependencies = [
|
|
20
|
+
"numpy>=1.20",
|
|
21
|
+
"matplotlib>=3.5",
|
|
22
|
+
"scipy>=1.7",
|
|
23
|
+
"pandas>=1.3",
|
|
24
|
+
"lmfit>=1.0",
|
|
25
|
+
"h5py>=3.0",
|
|
26
|
+
"plotly>=5.0",
|
|
27
|
+
"inspy-conv",
|
|
28
|
+
"QtPy",
|
|
29
|
+
"PySide6"
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
keywords = ["neutron", "scattering", "resolution", "inelastic", "spectrometer", "triple-axis"]
|
|
33
|
+
|
|
34
|
+
classifiers = [
|
|
35
|
+
"Programming Language :: Python :: 3",
|
|
36
|
+
"Intended Audience :: Science/Research",
|
|
37
|
+
"Topic :: Scientific/Engineering :: Physics",
|
|
38
|
+
"Operating System :: OS Independent",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[project.urls]
|
|
42
|
+
Homepage = "https://github.com/gcdengansto/TasVisAn"
|
|
43
|
+
Repository = "https://github.com/gcdengansto/TasVisAn"
|
|
44
|
+
|
|
45
|
+
[tool.setuptools.packages.find]
|
|
46
|
+
where = ["src"]
|
|
47
|
+
|
|
48
|
+
[project.optional-dependencies]
|
|
49
|
+
dev = ["pytest"]
|
tasvisan-0.1.2/setup.cfg
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from .base import TasData
|
|
2
|
+
from .tas.taipan import Taipan
|
|
3
|
+
from .tas.sika import Sika
|
|
4
|
+
|
|
5
|
+
try:
|
|
6
|
+
from .gui.TASDataBrowser import main
|
|
7
|
+
except ImportError:
|
|
8
|
+
warnings.warn('QtPy not found, cannot run Resolution GUI')
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
__all__ = ['TasData', 'Taipan', 'Sika']
|