Commit 9a627140 authored by Zolnierczuk, Piotr's avatar Zolnierczuk, Piotr
Browse files

install updates

parent 227e49b1
Loading
Loading
Loading
Loading
+34 −1
Original line number Diff line number Diff line


* release v2.0.6 (bugfix)	Sep 02, 2025
    - clarify nseplot help messages
    - bugfix in echowriter (missing f-format)
    - test fixture fix (timestamps)

* release v2.0.5 (bugfix)	Aug 21, 2025
    - fix nxs2taco - handle empty runs
	catch and raise RuntimeError when
		* no proton charge in NeXus file
		* no neutron counts in NeXus file
		* no neutron counts scan point
    - small bug in the gui

* release v2.0.4			Aug 19, 2025
    - new phase table fit method (old way available as "classic")
    - remove anaconda from readme

* release v2.0.3			Aug 12, 2025
    - flip ratio bug fix
    - fixing setup.py

* release v2.0.2			Aug 01, 2025
    - new i00 PV (nxs2taco)
	- improvements to water model
    - fixing obsolete hardware module
    - updated readme and pylint police

* release v2.0.1			Jun 02, 2025
    added change log
    handle files with scantype undefined


* version 2.0 (June 2, 2025)

	Summary of changes was made with the help of ChatGPT.
@@ -66,4 +100,3 @@
		Added default diffraction normalization options.
		Improved error reporting and configuration sanity.
		Reworked detector coordinate mappings and readouts.
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ ifeq ($(strip $(PYUIC)),)
$(error pyuic5 or pyuic6 are missing, check PyQt installation)
endif

#PROJVER=$(shell git describe --tags --abbrev=0 || echo "v0.0.0")
PROJVER=$(shell $(PYTHON) -c "from pysen.revision import __version__; print(__version__)")
PROJECT=$(PROJNAME)-$(PROJVER)

+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ authors = [

description = "Python tools for the SNS-NSE instrument"
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.10"

classifiers = [
    "Programming Language :: Python :: 3",
+2 −2
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@ PySEN revision module
"""
import sys
__version__  = "2.0"
__release__  = ".6"
__date__     = "Sep 2, 2025"
__release__  = ".7a"
__date__     = "Sep 3, 2025"

def version(full=False):
    "get pysen version number"
+5 −9
Original line number Diff line number Diff line
@@ -14,24 +14,20 @@ ABOUT = """The PySEN (Python for Spin Echo with Neutrons) package is
a collection of Python modules and tools for the SNS-NSE instrument"""
NAME = 'pysen'

def get_version():
def get_version(name, version_file='revision.py'):
    """get version
        
    I wish I knew simpler way
    that works with pyproject.toml
    I wish I knew simpler way that works with pyproject.toml
    """
    path = os.path.join(pathlib.Path(__file__).parent, 
                        'pysen/revision.py')
    spec   = importlib.util.spec_from_file_location(NAME,path)
    path   = os.path.join(pathlib.Path(__file__).parent, name, version_file)
    spec   = importlib.util.spec_from_file_location(name,path)
    module = importlib.util.module_from_spec(spec)
    spec.loader.exec_module(module)
    #print(f"PYSEN MODULE VERSION: {module.version()}")
    return module.version()


setup(
      name          =  NAME,
      version       =  get_version(),
      version       =  get_version(NAME),
      author        =  AUTHOR,
      author_email  = "zolnierczukp AT ornl gov",
      url           = "http://neutrons.ornl.gov/nse",