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 353 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
353 commits
Select commit Hold shift + click to select a range
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
def95b7
fix the background output format issue
Kvieta1990 May 23, 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
99b7e82
add trap for transform tool if rigid bodies are present.
vondreele May 23, 2025
4d1b628
replace SetValue with ChangeValue in several places in RB edit stuff.
vondreele May 24, 2025
aa18a04
address #187 -- export CIF
briantoby May 26, 2025
c37c8ba
export CIF: fix access to template files
briantoby May 26, 2025
153249b
increment {mode} version
briantoby May 26, 2025
f0afffd
Merge pull request #185 from AdvancedPhotonSource/fix_bkg_save
briantoby May 30, 2025
7291f2e
Allow H/D selection for atom site fraction apportioning
vondreele May 30, 2025
1dc5fe1
fix error in handling Dij for R-rhombahedral lattices
vondreele May 31, 2025
6e1346a
Stop auto plot update after atom parameter change; add message to sta…
vondreele May 31, 2025
108208b
Add docs for "BOH" texture coeff table
vondreele Jun 1, 2025
3e14782
change Void space plotting from spheres to dots - much faster!
vondreele Jun 2, 2025
20b342d
change in commentary only
vondreele Jun 4, 2025
a55bd54
fix bug in PlotXYZvect; bad matplotlib bug for display of color bar
vondreele Jun 5, 2025
3697bcd
Merge branch 'main' into kvec_isodistort_zyp
Kvieta1990 Jun 6, 2025
c1ced7b
uncomment call to getHStrainShift in G2strMath. It should be availabl…
vondreele Jun 6, 2025
b2035ab
remove comment about its use as well!
vondreele Jun 6, 2025
f76a882
still working on the proj gen.
Kvieta1990 Jun 6, 2025
f7b8c0e
making progress in saving the project with the correct phase
Kvieta1990 Jun 6, 2025
4725770
remove MPL code causing problems on Debian; update license removing r…
briantoby Jun 6, 2025
e71dc2d
Update profile_functions_class.py
RJCD-Diamond Jun 12, 2025
9e27d78
Merge pull request #189 from RJCD-Diamond/patch-1
briantoby Jun 15, 2025
bac5b7a
fix frame/polygon problem - didn't work before
vondreele Jun 16, 2025
7bec472
get phase tree item so that phase gets renamed ; misc cleanup
briantoby Jun 17, 2025
70b05ac
bring kvec branch up to date
briantoby Jun 17, 2025
8160fea
fixes to JANA2K m40, m50 & m90 importers for JANA2000 files
vondreele Jun 17, 2025
54aa3ae
modify parallax correction in image integrate & gain map calcs
vondreele Jun 18, 2025
f2563aa
change how CIF exporter is loaded for Seq_export. Addresses #191
briantoby Jun 18, 2025
04750e5
fix Omega as str from Bruker Raw as per #190
briantoby Jun 19, 2025
b8a0849
finalize the project save for k vec with isodistort
Kvieta1990 Jun 19, 2025
0607952
Adjust image self-test after correction in 54aa3ae
briantoby Jun 19, 2025
4d22ade
add nonstd space group 'C c c m' to list, fix testMagSym & testSSSymb…
vondreele Jun 19, 2025
e967a6e
Address #192 where plot values are np.array not MaskedArray, but don'…
briantoby Jun 19, 2025
b465078
Put changes in 0607952 back
briantoby Jun 19, 2025
7321616
fix conflict in G2plot
vondreele Jun 19, 2025
70ce148
Merge remote-tracking branch 'remotes/origin/main'
vondreele Jun 19, 2025
72ff528
adapt CIF Origin1->2 for scripting; cleanup unused vars
briantoby Jun 20, 2025
35b6a4c
add save of bond & angle histograms to csv file, also clear B&A histo…
vondreele Jun 20, 2025
6894293
merged changes
vondreele Jun 20, 2025
7e672d2
Merge remote-tracking branch 'remotes/origin/main'
vondreele Jun 20, 2025
6729ed7
trivial changes to force update
vondreele Jun 20, 2025
17c29ab
address zero weights for MIDAS data
briantoby Jun 22, 2025
8236576
increment {mode} version
briantoby Jun 22, 2025
d996e4b
rework version tracking file (git_verinfo.py) and scripts that write …
briantoby Jun 23, 2025
b0f8703
Merge remote-tracking branch 'origin/main' into kvec_isodistort_zyp
briantoby Jun 23, 2025
ada3a98
working on crystal systems
Kvieta1990 Jul 11, 2025
279ed46
still a lot to work on
Kvieta1990 Jul 11, 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/setup-pixi@v0.8.1
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