Commit a36b0f11 authored by Zolnierczuk, Piotr's avatar Zolnierczuk, Piotr
Browse files

small fix for older sc

parent 95f0a01e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -8,7 +8,11 @@ PI = _const.pi
# h(Planck)/m_n(neutron mass)
HMN      = _const.Planck/_const.neutron_mass #3.95603401e-07 # m*m/s
# h(bar) in eV*s
try:
    HBAR_EVS = _const.physical_constants['reduced Planck constant in eV s'][0]
except KeyError:
    HBAR_EVS = _const.physical_constants['Planck constant in eV s'][0]/PI/2

# neutron gyromagnetic ratio
GAMMA_N  = _const.physical_constants['neutron gyromag. ratio'][0]# 183,247,171 s^-1 T^-1

+2 −2
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@ PySEN revision module
"""
import sys
__version__  = "1.2"
__release__  = "rc8"
__date__     = "Jan 20, 2023"
__release__  = "rc9"
__date__     = "Feb 2, 2023"

def version(full=False):
    "get pysen version number"