Skip to content

Commit

Permalink
Merge branch 'main' into 2249-use-generic-stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-wilkins authored Sep 17, 2023
2 parents 9bedc88 + 90e45b7 commit 0ed78c3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.9

- uses: actions/checkout@v3
- id: set-matrix
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
- name: Install utilities to build installer
if: ${{ matrix.installer }}
run: |
python -m pip install pyinstaller==5.7.0
python -m pip install pyinstaller
- name: Build sasview with pyinstaller
if: ${{ matrix.installer }}
Expand Down Expand Up @@ -283,7 +283,7 @@ jobs:
strategy:
matrix:
os: [ windows-latest, ubuntu-20.04 ]
python-version: [ 3.8 ]
python-version: [ 3.11 ]
fail-fast: false

name: Test installer
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@

# List of python versions to use for release builds
python_release_list = [
'3.8',
'3.11',
]

# List of python versions to use for tests
python_test_list = python_release_list + [
'3.8',
'3.9',
'3.10'
]
Expand Down
9 changes: 4 additions & 5 deletions build_tools/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
numpy<1.24
scipy==1.10.0
numpy
scipy
docutils
pytest
pytest_qt
Expand All @@ -10,7 +10,6 @@ h5py
sphinx
pyparsing
html5lib
reportlab==3.6.6
pybind11
appdirs
six
Expand All @@ -22,7 +21,7 @@ xhtml2pdf
pylint
periodictable
uncertainties
matplotlib~=3.5.2
matplotlib
lxml
pytools
cffi
Expand All @@ -33,7 +32,7 @@ bumps
html2text
jsonschema
pywin32; platform_system == "Windows"
PySide6==6.2.4
PySide6==6.4.3
twisted
zope
superqt
Expand Down
2 changes: 1 addition & 1 deletion src/sas/qtgui/Utilities/GuiUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ def jdefault(o):
objects that can't otherwise be serialized need to be converted
"""
# tuples and sets (TODO: default JSONEncoder converts tuples to lists, create custom Encoder that preserves tuples)
if isinstance(o, (tuple, set, np.float)):
if isinstance(o, (tuple, set, float)):
content = { 'data': list(o) }
return add_type(content, type(o))

Expand Down
6 changes: 3 additions & 3 deletions src/sas/sascalc/pr/p_invertor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

class Pinvertor(object):
#q data
x = np.empty(0, dtype=np.float)
x = np.empty(0, dtype=np.float64)
#I(q) data
y = np.empty(0, dtype=np.float)
y = np.empty(0, dtype=np.float64)
#dI(q) data
err = np.empty(0, dtype=np.float)
err = np.empty(0, dtype=np.float64)
#Number of q points
npoints = 0
#Number of I(q) points
Expand Down

0 comments on commit 0ed78c3

Please sign in to comment.