Skip to content

Kvec talks to isodistort #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 306 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
306 commits
Select commit Hold shift + click to select a range
78ce130
BLD: fix typo on pixi.toml
tacaswell Jan 16, 2025
e6b23fc
BLD: re-generate lock file
tacaswell Jan 16, 2025
c982af9
Merge pull request #40 from kif/meson
tacaswell Jan 16, 2025
e92e27f
CI: add job to smoke-test building and installing (#128)
tacaswell Jan 16, 2025
10c9f03
more backslash fixes; remove PyCifRW (CifFile) from GSAS-II dist and …
briantoby Jan 18, 2025
b4dbfcc
fix import of pyspg (binary module); redo spg & lattice unit tests
briantoby Jan 19, 2025
76f3ef0
allow running the GUI w/o pixi install
briantoby Jan 20, 2025
ae319c3
FIX: fix escaping in re expressions (replaces #127); N.B. CifFile (Py…
briantoby Jan 21, 2025
949d5a4
BLD: install data files with code
tacaswell Jan 22, 2025
244e448
TST/CI: add test for getting cross section + run tests on CI
tacaswell Jan 22, 2025
a08cf50
BLD: update pyproject.toml Python classifiers
tacaswell Jan 22, 2025
7abd3c8
fix many imports; add path hacking for where GSAS-II is not installed…
briantoby Jan 23, 2025
b090ffd
Merge pull request #134 from tacaswell/bld/inc_input_data
briantoby Jan 23, 2025
9bbeb6e
remove depricated scipy.misc
briantoby Jan 23, 2025
778d8ca
Merge updates in master into develop branch
briantoby Jan 23, 2025
d9775f0
minor cleanup; replacement GSASII/GSASII.py
briantoby Jan 23, 2025
c56c821
finish off refinement self-test
briantoby Jan 24, 2025
b727694
remove retired svn interface routines
briantoby Jan 24, 2025
c608065
fix build for removed file
briantoby Jan 24, 2025
5ecb5cf
try to get the self tests working again
briantoby Jan 24, 2025
48f69ea
more work on test exception; change path hacking to an exception (did…
briantoby Jan 24, 2025
7ec0540
deal sensibly if PyCifRW (CifFile) not installed; minor cleanup for i…
briantoby Jan 25, 2025
0286251
Improve version tracking; remove unneeded menu items if installed int…
briantoby Jan 25, 2025
cc7281d
consolidate referenced papers into a dict; show in w/new menu item
briantoby Jan 27, 2025
a843128
merge in changes from master 55d005d5: removes replaces polymask with…
briantoby Jan 27, 2025
fb63897
adding in isodistort after k vec searched
Kvieta1990 Jan 29, 2025
a35c101
successfully downloaded cif files
Kvieta1990 Jan 29, 2025
6f4a971
fix isofilename grabbing
Kvieta1990 Jan 30, 2025
04e374e
start to add in k vector grabber from the table
Kvieta1990 Jan 31, 2025
5c1532d
Bring latest changes in master into develop
briantoby Jan 31, 2025
d5c7dbd
finalize k vector grabber. need testing
Kvieta1990 Jan 31, 2025
1b40636
replace config.py with ~/.GSASII/confg.ini; remove some unused option…
briantoby Feb 1, 2025
a7fd4ff
add in handlers
Kvieta1990 Feb 1, 2025
abbd93d
work on versioning
briantoby Feb 2, 2025
929d696
finish routines & docs for versioning
briantoby Feb 2, 2025
adb29df
pixi: add code to update git_version & fix version handling, config_e…
briantoby Feb 5, 2025
a5fe752
misc fixes related to running self-tests; docs updates
briantoby Feb 6, 2025
ca6402f
change path hacking to opt-in & have that turned on in pixi run ui, o…
briantoby Feb 6, 2025
f93cb66
doctor for smoke test to run only the latest version from checkout
briantoby Feb 6, 2025
7b65f99
doctor for smoke test to run only the latest version from checkout
briantoby Feb 6, 2025
a332a96
address some windows issues: rename GSASII.py to G2.py to avoid impor…
briantoby Feb 8, 2025
38084dc
revise mac self-install
briantoby Feb 9, 2025
9d5f764
debug master->develop transition on Windows
briantoby Feb 9, 2025
741f916
bring up to date w/current master (c94f93aa)
briantoby Feb 10, 2025
a9dfcd3
self-test path fixes
briantoby Feb 10, 2025
3d6cef3
debug failing self-test in github (works locally)
briantoby Feb 10, 2025
f71135a
work on self-test
briantoby Feb 10, 2025
e9fe3ba
Update reftest.yml
briantoby Feb 10, 2025
53b9ed9
debug refinement test
briantoby Feb 11, 2025
eba65ab
fix several issues with diaglog and so on
Kvieta1990 Feb 12, 2025
c216706
minor cleanup
briantoby Feb 13, 2025
0eaa58f
minor cleanup
briantoby Feb 13, 2025
3c041c1
remove clang from pixi.toml
briantoby Feb 13, 2025
139162e
Update pixi.toml to fix previous
briantoby Feb 13, 2025
3ab4088
restore pixi.toml
briantoby Feb 13, 2025
d35bb5b
See Add ciffile dependency (#142)
tacaswell Feb 19, 2025
995b152
adapt versioning info to use saved_version.py when present, git_verin…
briantoby Feb 20, 2025
cc61d3f
remove pybaselines from distributed code as per bug in #147
briantoby Feb 20, 2025
5d577ac
revise version scripts to deal with v in version tags
briantoby Feb 23, 2025
d318da1
Merge remote-tracking branch 'origin/master' into develop
briantoby Feb 23, 2025
10507e0
more work on develop conda/installer build
briantoby Feb 23, 2025
85d89d7
Merge remote-tracking branch 'origin/master' into develop
briantoby Feb 26, 2025
3b2c32a
correct name in macStart comment
briantoby Feb 26, 2025
df17fd4
Merge remote-tracking branch 'origin/master' into develop
briantoby Feb 26, 2025
872ae02
finish move of getCellEsd
briantoby Feb 27, 2025
ed7ddd2
make refinement self test much faster
briantoby Feb 28, 2025
ae5007e
add spherical harmonics to scriptable; add test of pytexture to test_…
briantoby Mar 1, 2025
856fd90
add NIST*LATTICE self tests
briantoby Mar 2, 2025
08dd208
remove broken stride check from fmask; replace deprecated numpy routines
briantoby Mar 3, 2025
e860527
fix unclosed subprocess files
briantoby Mar 3, 2025
90a8cd4
why error w/subprocess still running? try changing order of .terminate
briantoby Mar 3, 2025
b6ab75b
scripting: read images from URL, remove raise from try/except
briantoby Mar 4, 2025
cb160fc
Add image self-test; postpone GSASIIctrlGUI import until needed in CI…
briantoby Mar 4, 2025
0f89a97
minor CIFexport cleanup
briantoby Mar 4, 2025
63be9e0
remove memory leaks w/open().write(); while at it clean up warnings s…
briantoby Mar 5, 2025
7a4fa6e
fix use of TestSPG to separate out path hacking
briantoby Mar 5, 2025
71c081f
rename develop to main
briantoby Mar 5, 2025
14b3efe
tell about combined push command after creating tag
briantoby Mar 5, 2025
c2441f8
add .wait() to subprocess use in nistlat hoping to clean up occasiona…
briantoby Mar 5, 2025
a068a36
bring main up to date with master
briantoby Mar 5, 2025
28e3faf
look for other uses with subprocess.Popen w/o a .wait() call
briantoby Mar 5, 2025
7818f96
add scripting download for histograms & phases; add TOF self-test; re…
briantoby Mar 6, 2025
4bb7fa5
improve error message on Ouch 8
briantoby Mar 6, 2025
f78a338
start work on generating windows self-test; start w/conda
briantoby Mar 6, 2025
30f58f5
Update win_test.yml
briantoby Mar 6, 2025
8b71568
don't run smoke-test on windows-sandbox commits
briantoby Mar 6, 2025
609d87f
remove buggy test file
briantoby Mar 6, 2025
e257c4f
debug workflow script 1
briantoby Mar 6, 2025
a73f1a9
debug workflow script 2
briantoby Mar 6, 2025
8d612f9
debug workflow script 3
briantoby Mar 6, 2025
23210f0
debug workflow script 4
briantoby Mar 6, 2025
057d735
try example
briantoby Mar 6, 2025
73ad6bf
try example+
briantoby Mar 6, 2025
742a7a3
try w/my commands
briantoby Mar 6, 2025
5d9eb62
try fix my commands
briantoby Mar 6, 2025
c5d1338
try gsas2pkg
briantoby Mar 6, 2025
c725efc
try gsas2pkg
briantoby Mar 6, 2025
b2ed9b8
try gitstrap
briantoby Mar 6, 2025
48af72a
try gitstrap 1
briantoby Mar 6, 2025
8b5a44c
try gitstrap 2
briantoby Mar 6, 2025
f4dca84
try gitstrap 3
briantoby Mar 6, 2025
5239ed2
try self-tests
briantoby Mar 6, 2025
6ab89ca
find self-tests
briantoby Mar 6, 2025
7c9026b
find self-tests 1
briantoby Mar 7, 2025
e94d513
try to address blockdata use in lattic via meson
briantoby Mar 7, 2025
df42f77
cleanup subprocess in nistlat (tested win & mac)
briantoby Mar 7, 2025
777645e
deal with alternate np.int type in Image
briantoby Mar 7, 2025
98eec6b
work on self-tests
briantoby Mar 7, 2025
235f5c5
work on self-tests 1
briantoby Mar 7, 2025
444ec5a
work on self-tests 2
briantoby Mar 7, 2025
9dc1879
work on self-tests 3
briantoby Mar 8, 2025
f133fed
work on self-tests 3; force gil
briantoby Mar 8, 2025
307ef07
test w/gitstrap
briantoby Mar 8, 2025
89a94b6
more work on self-tests
briantoby Mar 8, 2025
3d7fbc8
more work on 3.11 self-tests
briantoby Mar 8, 2025
f177b22
3.11 self-tests
briantoby Mar 8, 2025
30cdff1
3.11 self-tests 1
briantoby Mar 8, 2025
8f353ec
3.12 self-tests
briantoby Mar 8, 2025
3d395fe
more on 3.12 self-tests
briantoby Mar 8, 2025
d7468fa
more on 3.12 self-tests
briantoby Mar 8, 2025
050cf23
update binary cache list
briantoby Mar 8, 2025
82c8182
work on 3.11 debug
briantoby Mar 8, 2025
564ba53
more work on 3.11 debug
briantoby Mar 8, 2025
c59e61f
put smoketest back before merge
briantoby Mar 8, 2025
a36b321
Merge branch 'win-self-test-sandbox-1'
briantoby Mar 8, 2025
95c6f1b
more self-test attempts; turn off run of working tests
briantoby Mar 9, 2025
4990739
more self-test attempts
briantoby Mar 9, 2025
651e03c
give up on gitstrap w/3.11; try to install gsas2new
briantoby Mar 10, 2025
594854b
Update win-selfinstall-test.yml
briantoby Mar 10, 2025
50bde75
find and install gsas2new
briantoby Mar 10, 2025
18363dc
install gsas2new
briantoby Mar 10, 2025
af5120a
install gsas2new
briantoby Mar 10, 2025
dff96a0
find installation of gsas2new
briantoby Mar 10, 2025
3d3a401
Update win-selfinstall-test.yml
briantoby Mar 10, 2025
dae785a
Update win-selfinstall-test.yml
briantoby Mar 10, 2025
94398d5
Update win-selfinstall-test.yml
briantoby Mar 10, 2025
fa1e9f6
Update win-selfinstall-test.yml
briantoby Mar 10, 2025
646ce3d
Update win-selfinstall-test.yml
briantoby Mar 10, 2025
4acdb8e
Update win-selfinstall-test.yml
briantoby Mar 10, 2025
3f726cd
Update win-selfinstall-test.yml
briantoby Mar 10, 2025
20e1a21
Update win-selfinstall-test.yml
briantoby Mar 10, 2025
1c3fecb
Update win-selfinstall-test.yml
briantoby Mar 10, 2025
c6dad12
make self-test more stable
briantoby Mar 10, 2025
af7a024
working on project gen
Kvieta1990 Mar 11, 2025
8b332f1
cleanup remaining subprocess call
briantoby Mar 12, 2025
43e9881
address test bug w/out of range arccos value; commented out traceback…
briantoby Mar 12, 2025
4d7ed3e
resume self-test on push
briantoby Mar 12, 2025
8a78a67
test remote wf trigger
briantoby Mar 13, 2025
2fc9c9a
deal w/G2obj objects in .gpx; clean up old cPickle refs
briantoby Mar 13, 2025
5dbb3a0
generalize optional package installation; note all optional packages …
briantoby Mar 15, 2025
3a02a27
Merge remote-tracking branch 'origin/master'
briantoby Mar 15, 2025
e77e9dd
Merge remote-tracking branch 'origin/master'
briantoby Mar 15, 2025
46fc5a9
fix TIF import warn bug; add CBF read self-test
briantoby Mar 15, 2025
2085db5
debug test_CBF
briantoby Mar 15, 2025
eb1f4d5
fix CBF import of unpack
briantoby Mar 15, 2025
27c8877
update path-hack/warning code for binaries
briantoby Mar 16, 2025
4bb9a36
pixi install: use gfortran on Win, include win in pixi self-test
briantoby Mar 16, 2025
a7b6cae
add MacOS compilers to pixi
briantoby Mar 16, 2025
dea8eb9
DIFFaX self-test; fix Layers imports & plotting
briantoby Mar 17, 2025
5bb3084
add code to report latest version # even when G2 is not installed w/git
briantoby Mar 19, 2025
dfbbf9b
bring main up to date with master
briantoby Mar 19, 2025
965197d
add version for binaries to meson build; show binary version on start…
briantoby Mar 20, 2025
eb08eee
add seekpath to optional & default modules; add k-vector self-test
briantoby Mar 21, 2025
db4af55
update MIDAS importer; bring to master v5.2.0/5805
briantoby Mar 22, 2025
c8a46b0
move package test to after packages are imported
briantoby Mar 23, 2025
88fca4a
show binary version in scripting; module updates for pixi
briantoby Mar 23, 2025
9c06be4
add in k vector tests (#157)
Kvieta1990 Mar 23, 2025
eb47960
fix meson install scripts for windows
briantoby Mar 25, 2025
f3357fd
more work on Windows compilation & fix binary loc for k-vec
briantoby Mar 26, 2025
11291f8
correct .dll copying for meson install step
briantoby Mar 27, 2025
97b949d
cleanup access to git release files and note potential improvements
briantoby Apr 16, 2025
64daf9c
working on proj creation from kvec
Kvieta1990 Apr 17, 2025
d237a67
bring main up-to-date with master
briantoby Apr 20, 2025
36bfbd1
patch: remove GSASII.py file
briantoby Apr 21, 2025
1019111
misc master->main cleanups
briantoby Apr 21, 2025
3514889
Pull in latest changes on 'origin/master'
briantoby Apr 21, 2025
63cac96
Merge remote-tracking branch 'origin/master'
briantoby Apr 21, 2025
ed22425
remove master-only test patch
briantoby Apr 21, 2025
c726a1b
clean up docs
briantoby Apr 22, 2025
979fd74
more change notes added
briantoby Apr 22, 2025
13b43cd
Merge last intended update to 'origin/master' (version #)
briantoby Apr 23, 2025
a572793
improve deformation GUI
vondreele Apr 23, 2025
2f970fe
remove unneeded deformation data from atmdata.py
vondreele Apr 23, 2025
5a718ab
cleanup display of deformation parms in GUI
vondreele Apr 24, 2025
ad02d9a
extensive but superficial changes in docs; addvance mini version to d…
briantoby Apr 24, 2025
81f8d0d
Merge remote changes to main
briantoby Apr 24, 2025
dd6138b
work on deformation GUI
vondreele Apr 25, 2025
06a276f
Merge remote-tracking branch 'remotes/origin/main'
vondreele Apr 25, 2025
150cecf
Address startup & update bugs
briantoby Apr 25, 2025
f41fd97
Merge branch 'main' of github.com:AdvancedPhotonSource/GSAS-II
briantoby Apr 25, 2025
a0a7ead
Address testDeriv issue
briantoby Apr 25, 2025
6c26ef3
fix G2scrpting shortcut
briantoby Apr 25, 2025
d00ea3b
new absorption correction plot in Absorbchange 2 entries in atmdata/O…
vondreele Apr 25, 2025
603fc3a
revise scripting docs
briantoby Apr 26, 2025
a10a249
fix replot on ref bug; better error msg for bad CIF import
briantoby Apr 28, 2025
7e69e6c
increment minor version
briantoby Apr 28, 2025
7b2dea9
increment mini version
briantoby Apr 28, 2025
2cdd1b0
combine the minor & mini increment routines
briantoby Apr 28, 2025
13fb867
cleanup
briantoby Apr 28, 2025
4fe4437
fix reference to numpy routine removed in 2.0
briantoby Apr 28, 2025
e2fc1d5
increment {mode} version
briantoby Apr 28, 2025
ddac99d
Update README.md
briantoby Apr 28, 2025
8598d46
Add replace phase functionality; comment out Index Cell import cell w…
briantoby Apr 28, 2025
849240f
fix TOF pattern simulation issues
briantoby Apr 29, 2025
ac8e805
return missing GSGrid line
briantoby Apr 29, 2025
d56f804
changes to Absorbcorrect matrix math for deformation
vondreele Apr 29, 2025
87a9dad
Add error for scriptable CIF import w/o PyCifRW, as per #165
briantoby Apr 29, 2025
f973d18
Merge remote-tracking branch 'refs/remotes/origin/main'
briantoby Apr 29, 2025
41b29e4
Address #171; remove space & resize window; either seems to work, but…
briantoby Apr 30, 2025
5ac36b3
fix import of non-Q .xye/.chi that has a wavelength in header
briantoby Apr 30, 2025
956a870
Fix LeBail error introduced in 8ec4d386; fix 0 cycle big; clean up so…
briantoby May 1, 2025
ae98449
Ask about LeBail reset only once
briantoby May 1, 2025
737a187
increment {mode} version
briantoby May 1, 2025
e11b4e3
turn off phase frac flag when hidden (#178)
briantoby May 1, 2025
79aa4a6
fixes to deformation stuff
vondreele May 2, 2025
cf19727
add images to scripting manual
briantoby May 3, 2025
75ce746
fixes to deformation stuff
vondreele May 4, 2025
a95be82
fix missed np.Inf (#180); expand import error in scripting (#165); mi…
briantoby May 5, 2025
02efab8
increment {mode} version
briantoby May 5, 2025
51942df
more improvements to scripting import error msg (#165)
briantoby May 5, 2025
4c15f5c
fix problems in image sum operation
vondreele May 5, 2025
a02a242
deal with phase import (CIF) problems: unparsable sym ops; better rep…
briantoby May 6, 2025
d2e0c57
fixes to multi gaim map - masks now work
vondreele May 6, 2025
bfa4403
fix problem with map contour and polymask use of newest matplotlib
vondreele May 7, 2025
dc74f43
simpler fix to matplotlib in Fourier contouring & polymask
vondreele May 7, 2025
c36f2a6
Merge remote-tracking branch 'remotes/origin/main'
vondreele May 7, 2025
120fb10
fix Leo's shelx export bug
briantoby May 9, 2025
74b41ce
add try for gluUnProject exception seen with 3.1.6 on MacOS (#182)
briantoby May 9, 2025
05ed8ba
Merge remote-tracking branch 'remotes/origin/main'
vondreele May 9, 2025
751ea71
replace some SetValue calls with ChangeValue for RB insertion
vondreele May 9, 2025
f92de8a
do spot/point masks via matplotlib Circle artist - much faster & simpler
vondreele May 10, 2025
46c21b0
minor cleanup
vondreele May 10, 2025
144bf1b
try to avoid "ImportError: attempted relative import..." in update; a…
briantoby May 12, 2025
7e139c4
increment {mode} version
briantoby May 12, 2025
1337d03
fix spinning RB derivatives for HKLF & PWDR
vondreele May 12, 2025
b705ad9
feeble attempt to address #183: suppress error & see if typehint will…
briantoby May 14, 2025
9da2cbd
fixes to spinning RBs
vondreele May 14, 2025
2849d09
fix to spin RB
vondreele May 14, 2025
a741546
fixes to spin RBs
vondreele May 14, 2025
9134b59
fix merge conflicts
Kvieta1990 May 16, 2025
4f9ca85
revise spinRB GUI to include options for shading shells in plot & plo…
vondreele May 18, 2025
adefe19
change spin RB plot resolution
vondreele May 19, 2025
4b9f952
fix bug in reflectometry data
vondreele May 20, 2025
e2830d6
Add option to fix HKLF when incorrectly import F^2 data as F. Convert…
vondreele May 22, 2025
455d4f5
include '%' (modulus) as allowed character in NumberValidator
vondreele May 22, 2025
eed9876
cosmetic changes for update msgs & spelling
briantoby May 22, 2025
616bbdb
fix OOB acos value that breaks refinement
briantoby May 22, 2025
9d7d89d
fix to CrsAng for min/max bug
vondreele May 22, 2025
7ddaa29
Merge branch 'main' into kvec_isodistort_zyp
Kvieta1990 May 23, 2025
aecfedb
first trial adding in the gsasii proj save for isodistort
Kvieta1990 May 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions .github/old-workflows/win-selfinstall-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: install self-installer on Windows

on:
workflow_dispatch: # Allows running this workflow manually
# Runs on pushes targeting the default branch
# push:
# branches-ignore:
# - master
# branches: ['main']
# pull_request:
# branches: ['main']


jobs:
test-GSAS-II:
#strategy:
# fail-fast: false
runs-on: 'windows-latest'
steps:
- uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9 # 1.6.0
id: downloadfile
name: Download the file
with:
url: "https://github.com/AdvancedPhotonSource/GSAS-II-buildtools/releases/download/v1.0.1/gsas2new-5804-Windows-x86_64.exe"
#target: download/
#- name: find it
# shell: bash
# run: |
# ls -R

- name: GSAS-II install
shell: pwsh
run: Start-Process -FilePath .\gsas2new-5804-Windows-x86_64.exe -ArgumentList "/S /AddToPath=1 " -NoNewWindow -Wait

#- name: find install
# if: always()
# shell: bash
# run: |
# ls -R

#- name: GSAS-II find GSAS-II
# if: always()
# shell: bash
# run: |
# cd c:/ProgramData/gsas2new/GSAS-II
# ls

- name: try all tests
if: always()
shell: cmd
run: |
call c:\ProgramData\gsas2new\Scripts\activate
python -VV
call conda install -y --quiet pytest
call cd c:\ProgramData\gsas2new\GSAS-II
dir
python -m pytest c:/ProgramData/gsas2new/GSAS-II

# #python -v -c "import sys; print(sys.path)"
# python -c "import pyspg"

# - name: try ldd
# if: always()
# shell: bash -el {0}
# run: |
# #conda create -n ntldd python=3.12 numpy=2.2 m2w64-ntldd-git
# conda create -n ntldd python=3.11 numpy=1.26 m2w64-ntldd-git
# conda activate ntldd
# cd GSAS-II/GSASII-bin/win_64_p3.11_n1.26
# #cd GSAS-II/GSASII-bin/win_64_p3.12_n2.2
# ls
# ntldd *.pyd
# python -c "import pyspg"
97 changes: 97 additions & 0 deletions .github/old-workflows/win_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: debug self-tests on Windows w/3.11

on:
workflow_dispatch: # Allows running this workflow manually
# Runs on pushes targeting the default branch
# push:
# branches-ignore:
# - master
# branches: ['main']
# pull_request:
# branches: ['main']


jobs:
test-GSAS-II:
strategy:
fail-fast: false
matrix:
# python-version: ["3.11", "3.12", "3.13"]
python-version: ["3.11"]
# python-version: ["3.12"]
runs-on: 'windows-latest'
steps:
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Conda install
shell: bash -el {0}
run: |
# tailor the numpy version to match the GSAS-II binaries
if [ "${{ matrix.python-version }}" == "3.13" ]; then
npver="2.2 python-gil"
elif [ "${{ matrix.python-version }}" == "3.12" ]; then
npver=2.2
elif [ "${{ matrix.python-version }}" == "3.11" ]; then
npver=1.26
fi
#conda list
#conda info
conda install python=${{ matrix.python-version }} numpy=${npver} scipy requests pytest git gitpython pycifrw -c conda-forge --override-channels --quiet
#conda install --quiet numpy=${npver} requests pytest briantoby::gsas2pkg -c conda-forge
conda info
conda list
- name: GSAS-II install
shell: bash -el {0}
run: |
#mkdir G2
#cd G2
curl -L -O https://github.com/AdvancedPhotonSource/GSAS-II-buildtools/raw/main/install/gitstrap.py
python gitstrap.py --nocheck --noshortcut --branch=main

- name: find files
shell: bash -el {0}
run: |
ls -l GSAS-II/GSASII-bin/win_64_p3.11_n1.26
#ls -l GSAS-II/GSASII-bin/win_64_p3.12_n2.2
ls -l GSAS-II/tests

- name: GSAS-II single test
if: always()
shell: bash -el {0}
run: |
cd GSAS-II
python tests/test_elm.py
python tests/test_spg.py

# - name: GSAS-II all tests
# if: always()
# shell: bash -el {0}
# run: |
# cd GSAS-II
# ls
# python -m pytest

- name: try pyspg
if: always()
shell: bash -el {0}
run: |
cd GSAS-II/GSASII-bin/win_64_p3.11_n1.26
#cd GSAS-II/GSASII-bin/win_64_p3.12_n2.2
python -VV
python -c "import sys; print(sys.path)"
python -c "import pyspg"

- name: try ldd
if: always()
shell: bash -el {0}
run: |
#conda create -n ntldd python=3.12 numpy=2.2 m2w64-ntldd-git
conda create -n ntldd python=3.11 numpy=1.26 m2w64-ntldd-git
conda activate ntldd
cd GSAS-II/GSASII-bin/win_64_p3.11_n1.26
#cd GSAS-II/GSASII-bin/win_64_p3.12_n2.2
ls
ntldd *.pyd
python -c "import sys; sys.path.insert(0,'.'); import pyspg"
26 changes: 18 additions & 8 deletions .github/workflows/TriggerRemote.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
# when run, this starts GitHub Actions workflow in another repo (GSAS-II-buildtools)

# 1) note that the GitHub Actions to be run must be on: repository_dispatch:
# 2) in the organizaion owning the remote repo, one must create a Personal Access Token
# (Org level) (Settings/Developer Settings/Personal Access Settings->Tokens
# got this to work w/classic having this access allowed:
# repo:status, repo_deployment, public_repo, repo:invite, security_events, manage_runners:org
# better w/new style token, I guess
# 3) save the created token in @ project-level: Settings/Secrets and vars/Actions: Repo secret
# 1) This will trigger all GitHub Actions in workflows that has
# on: repository_dispatch:
# 2) an authorized user (Brian, or perhaps organization) creates a
# personal access token.
# Do this by clicking on "picture (upper rt)
# then "Settings" in drop-down and
# then select "Developer settings" (at bottom).
# Finally select "Fine-grained tokens"
# Personal access token settings:
# select owner: APS;
# select APS/G2-bld;
# Repo permissions: contents r/w & metadata: r/o.
# 3) Save the created token in this (G2) project.
# Use repo-level settings on 2nd line from top (may be in ... menu).
# Select Actions in Secrets & variables and create a repository secret.
# Name assigned must match ${{ secrets.XXX }} in workflow's curl
# call ("Authorization:" setting)

name: Trigger on GSASII-buildtools
name: Test of triggering GSASII-buildtools actions

on: workflow_dispatch

Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/smoke_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: smoke test

on:
# Runs on pushes targeting the default branch
push:
branches-ignore:
- master
# branches: ['develop']
pull_request:
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:


# Default to bash
defaults:
run:
shell: bash


jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- name: 'ubuntu-22.04'
- name: 'macos-latest'
- name: 'windows-latest'
# cmd_extra: '-win'
env: ['py310', 'py311', 'py312', 'py313']
runs-on: ${{ matrix.os.name }}
steps:
# checkout repo
- uses: actions/checkout@v2

# set up pixi
- uses: prefix-dev/[email protected]
with:
environments: ${{ matrix.env }}
pixi-version: v0.39.5
manifest-path: pixi/pixi.toml

# run install to see if it works
- name: Build
# run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} install${{ matrix.os.cmd_extra }}
run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} install

- name: test
run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} test
52 changes: 52 additions & 0 deletions .github/workflows/win-gitstrap-selftest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: GSAS-II self-tests on Windows via gitstrap

on:
workflow_dispatch: # Allows running this workflow manually
# Runs on pushes targeting the default branch
# push:
# branches-ignore:
# - master
# branches: ['main']
# pull_request:
# branches: ['main']


jobs:
test-GSAS-II:
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
# python-version: ["3.11", "3.12", "3.13"]
# python-version: ["3.13"]
runs-on: 'windows-latest'
steps:
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Conda install
shell: bash -el {0}
run: |
# tailor the numpy version to match the GSAS-II binaries
if [ "${{ matrix.python-version }}" == "3.13" ]; then
npver="2.2 python-gil"
elif [ "${{ matrix.python-version }}" == "3.12" ]; then
npver=2.2
elif [ "${{ matrix.python-version }}" == "3.11" ]; then
npver=1.26
fi
conda install python=${{ matrix.python-version }} numpy=${npver} scipy requests pytest git gitpython pycifrw -c conda-forge --override-channels --quiet
#conda info
#conda list
- name: GSAS-II install
shell: bash -el {0}
run: |
curl -L -O https://github.com/AdvancedPhotonSource/GSAS-II-buildtools/raw/main/install/gitstrap.py
python gitstrap.py --nocheck --noshortcut --branch=main

- name: GSAS-II all tests
shell: bash -el {0}
run: |
cd GSAS-II
python -m pytest
19 changes: 17 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# GSAS-II settings, perhaps to be moved
# obsolete GSAS-II settings file
config.py

# local code for debugging
debug_setup.py.example
debug_setup.py

# created by install/saved-versions.py
GSASII/saved_version.py

# created on MacOS by makeMacApp.py
GSAS-II.app/
GSAS-II.py
Expand All @@ -25,8 +28,20 @@ __pycache__

# from Spyder
.spyproject

# GSAS binaries
GSASII/bindist
GSASII/bin

# Local dev env files
.vscode
.vscode


dist
build

#
*.gpx
*.lst

*~
Loading
Loading