Skip to content
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

Updating branch with main #146

Merged
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
4b22761
Merge pull request #82 from usnistgov/summarize-run-performance
pbeaucage Apr 11, 2023
77cc0af
Updated radius to fix sqrt(2) offset
phonghnguyen Apr 17, 2023
b7b336d
Merge pull request #85 from phonghnguyen/fix_radius_WP
pbeaucage Apr 18, 2023
1a48f26
Add logo to readme
pbeaucage Apr 24, 2023
e50136b
create initial CMS files
andrewjlevin Jul 5, 2023
ab094c2
add CMSGIWAXSLoader to loader.py
andrewjlevin Jul 5, 2023
2260022
first attempt at loadSingleImage
andrewjlevin Jul 5, 2023
8d7847e
add loadMd method
andrewjlevin Jul 6, 2023
c3b78db
parameter fix
andrewjlevin Jul 6, 2023
d31f1af
wrote loadSeries method
andrewjlevin Jul 6, 2023
02cca42
syntax fix
andrewjlevin Jul 6, 2023
bb2c510
add coordinates & minor tweaks
andrewjlevin Jul 6, 2023
60874b9
syntax
andrewjlevin Jul 6, 2023
a4071cc
syntax
andrewjlevin Jul 6, 2023
9af942e
round exposure time to 1 decimal
andrewjlevin Jul 6, 2023
a2ca96d
change default naming scheme from None to []
andrewjlevin Jul 7, 2023
cf6c619
silence draw.load print statements
andrewjlevin Jul 7, 2023
7bbba85
remove np.flipud and create pg_convert function in GIWAXS.py
andrewjlevin Jul 8, 2023
c60d4d1
add GIWAXS.py to util.py
andrewjlevin Jul 8, 2023
6d944ef
time coordinate shows ending time, included in pg_convert output
andrewjlevin Jul 8, 2023
c968f11
syntax fix
andrewjlevin Jul 8, 2023
d1de032
array shaping fix
andrewjlevin Jul 8, 2023
db57990
array shaping fix
andrewjlevin Jul 8, 2023
84d19b8
added pg_convert_series fxn
andrewjlevin Jul 8, 2023
fd83f08
changed how time dim is handled & added coordinate units
andrewjlevin Jul 8, 2023
4dbd307
fix typo & sortby time
andrewjlevin Jul 8, 2023
2a74072
sortby series number too
andrewjlevin Jul 8, 2023
2e2c81b
syntax
andrewjlevin Jul 8, 2023
2059af8
series loader fix
andrewjlevin Jul 8, 2023
5ce76ed
add time units
andrewjlevin Jul 8, 2023
05951d0
undo time unit
andrewjlevin Jul 8, 2023
a38231e
updated util GIWAXS import sytnax
andrewjlevin Jul 13, 2023
54c4324
undoing previous commit
andrewjlevin Jul 13, 2023
1babde7
minor QoL drawmask tweaks
andrewjlevin Jul 13, 2023
8339e37
fixes on previous commit
andrewjlevin Jul 13, 2023
aba83f7
more adjustments to drawmask
andrewjlevin Jul 13, 2023
ba87343
more drawmask
andrewjlevin Jul 13, 2023
80617e6
fix ui to not swap axes, messes up mask arr
andrewjlevin Jul 13, 2023
52e20be
added option to load iterables into loadSeries
andrewjlevin Jul 14, 2023
62cbee0
syntax fix
andrewjlevin Jul 14, 2023
551d13c
another fix, make for iterables
andrewjlevin Jul 14, 2023
2dc065e
added tqdm progress bar
andrewjlevin Jul 14, 2023
4d90c6f
do not flip masks in pg_convert
andrewjlevin Jul 14, 2023
95e4454
make Transform class for pg functions
andrewjlevin Jul 15, 2023
867836f
add Transform to util
andrewjlevin Jul 15, 2023
de931e3
updated the Transform class method to accept both .edf and .json files
Jul 17, 2023
1de6171
cms-giwaxs-in_situ_processing notebooks
Jul 18, 2023
41b7631
cms-giwaxs-in_situ_processing notebooks take2
Jul 18, 2023
546ce65
adding comments, error handling and delim method variable to loadMd()
kewh5868 Jul 18, 2023
a8f71f8
refactored GIWAXS.py Transform class to include generalized load_mask…
kewh5868 Jul 18, 2023
f306a83
added createSampleDictionary() and selectSampleandSeries() methods to…
kewh5868 Jul 18, 2023
5329278
updating module imports in cmsgiwaxsloader() class to include correct…
kewh5868 Jul 18, 2023
5070201
adding save_as_zarr method to the Transform() object, and adding a Pr…
kewh5868 Jul 18, 2023
1cbff90
update the Process() class to ProcessData(), and removing inheritance…
kewh5868 Jul 18, 2023
41135a8
remove corrections module usage
kewh5868 Jul 18, 2023
de34434
adding error handling for selectsampleandseries and createSampleDicti…
kewh5868 Jul 18, 2023
4735e0f
moving return statement
kewh5868 Jul 18, 2023
629198a
updating selectSampleAndSeries(self) to include quit sequence. updati…
kewh5868 Jul 18, 2023
771a32d
removed "add_time_coord" method as it was broken. only the raw DA con…
andrewjlevin Jul 18, 2023
bf9af0a
Merge branch 'cms-giwaxs-support' of https://github.com/ToneyGroupCU/…
andrewjlevin Jul 18, 2023
a71baff
adding cell on multiple data set loading to the cms-giwaxs_process.ip…
kewh5868 Jul 18, 2023
a38ac73
added tqdm descriptions for loadSeries & pg_convert_series methods
andrewjlevin Jul 18, 2023
2a1a3f8
Add fix for empty monitors
pbeaucage Jul 20, 2023
7eec74e
Merge pull request #92 from usnistgov/91_sst1_data_without_monitors
pbeaucage Jul 20, 2023
b921a75
Add flexible logic for finding energy in multiindexes
pbeaucage Jul 20, 2023
324c5c3
added custom energy parameter to Transform
andrewjlevin Jul 20, 2023
e84fa2d
Add more robustness to energy finding algrithm so it passes tests
pbeaucage Jul 21, 2023
6018306
Merge pull request #93 from usnistgov/89_integrator_energy_wrong
pbeaucage Jul 22, 2023
13657de
remove FileLoader inheritance of CMSGIWAXSLoader
andrewjlevin Jul 22, 2023
7e3a14f
Merge branch 'usnistgov:main' into cms-giwaxs-support
andrewjlevin Jul 25, 2023
3424894
added new function "single_images_to_dataset" inside GIWAXS.py, added…
andrewjlevin Jul 26, 2023
96659e1
Merge branches 'cms-giwaxs-support' and 'cms-giwaxs-support' of https…
andrewjlevin Jul 26, 2023
d1d3942
add interpolation correction to aforementioned function
andrewjlevin Jul 26, 2023
b9331f4
fix save_zarrs option in aforementioned function
andrewjlevin Jul 26, 2023
66a55f1
minor tweak to single_images_to_dataset function zarr saving lines
andrewjlevin Jul 26, 2023
e401a38
typo fixes
andrewjlevin Jul 26, 2023
efb043c
refined example notebooks & added brief readme.txt to CMS tutorial fo…
Jul 26, 2023
bdd56ff
Whack-a-mole changes to fix auto dim hint #94
pbeaucage Aug 2, 2023
2bf1674
Tweaks to multi-polarization AR loading
pbeaucage Aug 2, 2023
a166137
Merge branch 'main' into 70-build-tests-for-sst1rsoxsdb-loader
pbeaucage Aug 2, 2023
ffb9a29
Merge branch 'main' into 71-sst1rsoxsdb-use_chunked_loading-and-catal…
pbeaucage Aug 2, 2023
9b0ddb3
Merge branch 'main' into 56-integratesingleimage-indexing-error
pbeaucage Aug 2, 2023
0a78267
Merge branch 'main' into 27-datetimes-not-supported-in-loaders-as-ind…
pbeaucage Aug 2, 2023
8e56991
Merge pull request #81 from usnistgov/70-build-tests-for-sst1rsoxsdb-…
BijalBPatel Aug 3, 2023
4b36feb
Merge pull request #79 from usnistgov/27-datetimes-not-supported-in-l…
BijalBPatel Aug 3, 2023
be5796a
Merge pull request #80 from usnistgov/71-sst1rsoxsdb-use_chunked_load…
BijalBPatel Aug 3, 2023
6e26f4c
Merge pull request #95 from usnistgov/94-bug-sst1rsoxsdb-stapling-too…
BijalBPatel Aug 3, 2023
913b1a4
Delete residual else block from earlier scan logic
pbeaucage Aug 3, 2023
7084b0f
Merge branch 'main' into 56-integratesingleimage-indexing-error
pbeaucage Aug 3, 2023
c7f60b6
Update src/PyHyperScattering/PFEnergySeriesIntegrator.py
pbeaucage Aug 3, 2023
e4f48f9
slight typo fix
andrewjlevin Aug 9, 2023
222b349
Merge branch 'usnistgov:main' into cms-giwaxs-support
andrewjlevin Aug 9, 2023
6b20b80
Create doc publish workflow
pbeaucage Aug 11, 2023
a1d7189
allow maskPath to be a literal numpy ndarray
andrewjlevin Aug 15, 2023
6553b20
transformer init fix
andrewjlevin Aug 15, 2023
f2fa985
Update SST1RSoXSLoader.py
J-avery32 Sep 4, 2023
2886a4b
Add pip requirements file link to NISTthedocs script
pbeaucage Sep 6, 2023
be4d2ad
syntax fix pip requirements
pbeaucage Sep 7, 2023
840acd0
Use newer version of NTD2D
pbeaucage Sep 7, 2023
533b5aa
Add sphinx rtd theme to dependencies
pbeaucage Sep 7, 2023
9d220f0
Try to fix RTD theme by commenting static dir
pbeaucage Sep 7, 2023
0d29f9a
try explicitly including rtd theme
pbeaucage Sep 7, 2023
f394b1f
Update conf.py
pbeaucage Sep 7, 2023
16f595c
Update conf.py
pbeaucage Sep 7, 2023
42e3a46
Update requirements.txt
pbeaucage Sep 7, 2023
0016231
switch to alabaster
pbeaucage Sep 8, 2023
f3d1316
in progress
Sep 8, 2023
2cf92a8
updated to loader to work for data pre and post cycle 2 2023
Sep 10, 2023
4f94b22
update comments
andrewjlevin Sep 10, 2023
886d4cd
Merge pull request #101 from ToneyGroupCU/main
pbeaucage Sep 11, 2023
ef97fb4
Merge branch 'main' into patch-1
pbeaucage Sep 11, 2023
594f810
Merge pull request #102 from J-avery32/patch-1
pbeaucage Sep 11, 2023
50903ca
Merge branch 'main' into update-readme
pbeaucage Sep 11, 2023
622425c
Add new docs link to readme and remove readthedocs.
pbeaucage Sep 11, 2023
2b27bd8
remove old theme from requirements
pbeaucage Sep 11, 2023
91b4f51
Merge pull request #87 from usnistgov/update-readme
BijalBPatel Sep 11, 2023
f8395f1
Attempt pydata theme
Sep 11, 2023
b56bce3
Attempt pydata theme add to requirements
Sep 11, 2023
fbc7ce0
Logo on landing page
Sep 11, 2023
a87d026
BaselineReorg
Sep 11, 2023
2b27ff8
reorg skeleton
Sep 11, 2023
b94fc52
Fin skeleton
Sep 11, 2023
225ee49
Contributing Above Skeleton
Sep 11, 2023
141321f
fix markdown errors 1
Sep 11, 2023
c53966a
fix sphinx errors 2
Sep 11, 2023
eeba6de
Test without autodoc
Sep 11, 2023
16cde74
restore autodoc
Sep 11, 2023
30e8c7e
Attempt SVG Workaround for pdf
Sep 11, 2023
501adae
Give up and use png
Sep 12, 2023
e261611
No image
Sep 12, 2023
7290277
added Binder link back
Sep 12, 2023
a479ace
SVG only for html
Sep 12, 2023
9b1c476
Added conf comment
Sep 12, 2023
806ad06
Renamed Func, add deprecated stub
Sep 12, 2023
cd1bc70
Troubleshoot summarize_run 1
Sep 12, 2023
a3ad8ac
Pin numexpr for CI test
Sep 12, 2023
3ceb6cb
add note to numexpr pin
pbeaucage Sep 12, 2023
5a3e8e7
Merge pull request #106 from usnistgov/103-rename-summarize_run-to-ma…
pbeaucage Sep 12, 2023
bf24a1c
Merge branch 'main' into 104-restructure-docs-along-diataxis-framework
BijalBPatel Sep 12, 2023
12c71b0
Merge pull request #105 from usnistgov/104-restructure-docs-along-dia…
BijalBPatel Sep 12, 2023
e7380e1
Re-add Peter suggestions I forgot to accept
Sep 12, 2023
5851f2b
Merge branch '104-restructure-docs-along-diataxis-framework' of https…
Sep 12, 2023
21b0b5d
Fixed Error Handling for integrateImage energy
Sep 14, 2023
f15b8df
Merge pull request #109 from usnistgov/integrateImageStack_energy
pbeaucage Oct 2, 2023
52aee5a
Merge pull request #107 from usnistgov/104-restructure-docs-along-dia…
pbeaucage Oct 2, 2023
d7eb2d1
Rename doc-building action
guyer Dec 5, 2023
bdb98a3
Merge pull request #111 from usnistgov/guyer-patch-1
pbeaucage Dec 5, 2023
0023c69
Implemented dask backing under use_chunked_loading flag
phonghnguyen Mar 6, 2024
805df35
Minor changes to img dimensions from dask_imread
phonghnguyen Mar 6, 2024
0bc289b
Trying alternative method to convert image to dask array because dask…
phonghnguyen Mar 7, 2024
399d07e
Finalizing changes to chunk loading for SST1RSoXSLoader after testing
phonghnguyen Mar 8, 2024
dba10cd
Apply suggestions from code review
pbeaucage Mar 17, 2024
3f22b88
Fix numpy/pillow size/shape convention
pbeaucage Mar 17, 2024
5e97d89
Flip qx/qy which are inverted in pillow/numpy transition
pbeaucage Mar 17, 2024
ee224b8
Merge pull request #113 from phonghnguyen/SST1RSoXSLoader_chunk_loading
pbeaucage Mar 17, 2024
f24b468
Update requirements-bluesky.txt
pbeaucage Mar 19, 2024
d3f6740
Merge branch 'main' into 56-integratesingleimage-indexing-error
pbeaucage Mar 19, 2024
b6659bf
Merge pull request #115 from usnistgov/pbeaucage-patch-1
pbeaucage Mar 20, 2024
9e74a54
Add automatic connection to BNL tiled and add Tiled testing using the…
pbeaucage Mar 27, 2024
15ab13e
Roll Python versions forward by 1 minor
pbeaucage Mar 27, 2024
2cd111d
Add tiled install for testing.
pbeaucage Mar 27, 2024
1685f78
fix import of module to be tested...
pbeaucage Mar 27, 2024
b6613f1
exclude tutorial, docs, and all ipynb files from linguist
pbeaucage Mar 27, 2024
31a7f45
Fix typo, was accessing wrong catalog
pbeaucage Mar 29, 2024
1997bd7
Update dataframe indexing syntax to avoid deprecated usage.
pbeaucage Mar 29, 2024
c74aaec
Temporarily disable SST1RSoXSDB tests while waiting for public data u…
pbeaucage Mar 29, 2024
15f8e7c
Fix bug in #121
pbeaucage Apr 2, 2024
9d6c633
Add explicit line to avoid new xarray warning
pbeaucage Apr 2, 2024
0e49a14
Merge pull request #118 from usnistgov/116-feat-natively-support-remo…
pdudenas Apr 2, 2024
07457b9
Merge pull request #119 from usnistgov/117-chore-stop-testing-against…
pdudenas Apr 2, 2024
8316b5d
Merge branch 'main' into 121-bug-sst1rsoxsdb-scan-hinting-breaks-if-a…
pbeaucage Apr 2, 2024
0b15e80
Merge branch 'main' into 120-chore-modify-gitattributes-to-exclude-do…
pbeaucage Apr 2, 2024
350d8d6
Fix #125
pbeaucage Apr 3, 2024
af3b57f
Few style and warning fixes
pbeaucage Apr 3, 2024
0657dca
Fix import so CI tests work?
pbeaucage Apr 3, 2024
5e21d14
Try to fix import again
pbeaucage Apr 4, 2024
7bb781d
More robust, duck-friendly type check
pbeaucage Apr 4, 2024
46e55a2
Merge branch 'main' into 56-integratesingleimage-indexing-error
pbeaucage Apr 4, 2024
037ea2f
More robust check
pbeaucage Apr 4, 2024
137aad3
Merge pull request #123 from usnistgov/120-chore-modify-gitattributes…
BijalBPatel Apr 4, 2024
20fed83
Merge pull request #126 from usnistgov/125-bug-pfgeneralintegrator-do…
BijalBPatel Apr 4, 2024
aea410f
Merge branch 'main' into 56-integratesingleimage-indexing-error
pbeaucage Apr 4, 2024
620a062
Merge branch 'main' into 121-bug-sst1rsoxsdb-scan-hinting-breaks-if-a…
pbeaucage Apr 4, 2024
6496465
autoformatter
BijalBPatel Apr 4, 2024
018f399
Fix to pass in maskpath
BijalBPatel Apr 4, 2024
f11bcf5
Merge pull request #127 from usnistgov/110-bug-in-loading-image-masks2
BijalBPatel Apr 4, 2024
3a79052
Merge branch 'main' into 56-integratesingleimage-indexing-error
pdudenas Apr 4, 2024
f3dd100
Merge branch 'main' into 121-bug-sst1rsoxsdb-scan-hinting-breaks-if-a…
pdudenas Apr 4, 2024
1b43ab4
Merge pull request #78 from usnistgov/56-integratesingleimage-indexin…
pdudenas Apr 4, 2024
dfa928f
Merge branch 'main' into 121-bug-sst1rsoxsdb-scan-hinting-breaks-if-a…
pdudenas Apr 4, 2024
6603dd4
Merge pull request #122 from usnistgov/121-bug-sst1rsoxsdb-scan-hinti…
pdudenas Apr 4, 2024
de572d2
Tidy up code in PFGeneralIntegrator
pbeaucage Apr 15, 2024
73b6ef0
Add zarr saving to fileio
pbeaucage Apr 15, 2024
465f1b9
Change sigma output to unified code that copies dims/coords
pbeaucage Apr 15, 2024
4b165b4
Add ponifile loading to PFGE
pbeaucage Apr 15, 2024
3acbe51
Add edf mask loading to PFGE
pbeaucage Apr 15, 2024
9ae38e6
Add missed import
pbeaucage Apr 15, 2024
4d947c2
Rewrite Transform to use PFGeneralIntegrator machinery
pbeaucage Apr 15, 2024
312d7d3
Rename GIWAXS to PGGeneralIntegrator
pbeaucage Apr 15, 2024
cef3f21
loader: raise error if 'files' is not pathlib.Path or iterable
andrewjlevin Apr 15, 2024
d2bfb2a
loader: commit 9 suggestions from code review
andrewjlevin Apr 15, 2024
782b139
Merge pull request #2 from pbeaucage/pr/100
andrewjlevin Apr 15, 2024
95b6c90
pin holoviews version
pdudenas Apr 18, 2024
dd9b59f
Update env.yml
pdudenas Apr 18, 2024
4daa92c
Merge pull request #136 from usnistgov/135-pin-holoviews-version-to-1…
pbeaucage Apr 18, 2024
d9c22d6
fix indentation error
andrewjlevin Apr 23, 2024
3790a8b
remove Union syntax in saveZarr function (avoid NameError)
andrewjlevin Apr 23, 2024
79c758b
remove legacy giwaxs import in util.py
andrewjlevin Apr 23, 2024
f2ff5cd
small naming/syntax fixes caught in linting/github test runs
andrewjlevin Apr 23, 2024
4cb0aa3
add PGGeneralIntegrator to integrate.py
andrewjlevin Apr 23, 2024
250f77e
fix naming error for loading pyhyper mask
andrewjlevin Apr 23, 2024
b86f46a
remove maskpath argument, so that it only exists in kwargs
andrewjlevin Apr 23, 2024
007566b
pyfai needs ponifile path input to be a string
andrewjlevin Apr 23, 2024
28c1a07
update if statement in ponifile loader
andrewjlevin Apr 23, 2024
d9a7685
add template_xr to ponifile loader for empty masks
andrewjlevin Apr 23, 2024
6bd207c
add filename as attribute if no md scheme is provided. add unused arg…
andrewjlevin Apr 24, 2024
f1341a9
change value comparison to check if img is None in loadFileSeries
andrewjlevin Apr 24, 2024
929b242
add pygix to requirements
andrewjlevin Apr 24, 2024
d681a5b
add file_filter pathlib glob filtering
andrewjlevin Apr 24, 2024
a4c763f
file needs to be a string?
andrewjlevin Apr 24, 2024
fe9d936
updating, file should be a str of just the filename
andrewjlevin Apr 24, 2024
d8257a0
update to how the existing stacking dimension is preserved in integra…
andrewjlevin Apr 24, 2024
7c5f1c0
more syntax rearranging to preserve stacking dimension
andrewjlevin Apr 24, 2024
f07661a
consistenty fix, should let loadFileSeries work without needing a fil…
andrewjlevin Apr 24, 2024
e13219b
update single_images_to_dataset function
andrewjlevin Apr 24, 2024
379ce48
update single_image_to_ds function to update incident angle for each …
andrewjlevin Apr 24, 2024
eb93a0b
Merge remote-tracking branch 'nist/main' into cms-giwaxs-support
andrewjlevin Apr 24, 2024
8f9356a
updated time series processing notebook for new branch update
Apr 25, 2024
05ef956
Update main.yml
andrewjlevin Apr 25, 2024
0384c34
Update main.yml
andrewjlevin Apr 25, 2024
e87aea4
remove filetoload argument from a couple mask loaders, already using …
andrewjlevin Apr 25, 2024
958fe5a
Update requirements.txt; specify version of silx for pygix to work
andrewjlevin Apr 25, 2024
00731f5
update nika mask test
andrewjlevin Apr 25, 2024
b67461a
Merge branch 'cms-giwaxs-support' of https://github.com/ToneyGroupCU/…
andrewjlevin Apr 25, 2024
f714632
logic fix; add single_imgs_to_ds function to a new CMSGIWAXS class in…
andrewjlevin Apr 25, 2024
fc299f3
fix missing tqdm import
andrewjlevin Apr 25, 2024
5bc3e52
rearrange order of functions / methods. add more documentation across…
andrewjlevin Apr 26, 2024
fe57679
updated cms giwaxs tutorials to reflected updated cms-giwaxs-support
Apr 26, 2024
ae3f057
Update requirements.txt: add comment for silx specification
andrewjlevin Apr 26, 2024
66a17d5
add main.yml wgets & test_CMSLoader.py; also CMS Loader init docstr…
andrewjlevin Apr 28, 2024
d6d80ec
cmsgiwaxsloader: tidy imports & switch from PIL to fabio for image lo…
andrewjlevin Apr 30, 2024
05c9650
uncomment cmsloader test lines
andrewjlevin May 1, 2024
c34babc
fix: add naming scheme to test loader and correct attribute dim from…
andrewjlevin May 1, 2024
8b7e6eb
cmsloader: use PIL for tiffs (avoid fabio warning), fabio for anythin…
andrewjlevin May 1, 2024
7907e5f
add optional filename md scheme check before making cmsgiwaxsloaders
May 1, 2024
21c691f
move empty template_xr mask creation to __init__, minor dosctring cha…
andrewjlevin May 2, 2024
740b2cb
remote init empty mask creation, it's already in pygix integrateSingl…
andrewjlevin May 2, 2024
b6818be
fix: add empty mask back to calibrationFromTemplateXRParams
andrewjlevin May 2, 2024
d70681d
update tutorial processing notebooks to not used template_xr for inte…
May 2, 2024
08c3943
Merge pull request #100 from ToneyGroupCU/cms-giwaxs-support
pbeaucage May 6, 2024
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
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
tutorial/* linguist-vendored
tutorial/* linguist-documentation=true
*.ipynb linguist-documentation=true
docs/* linguist-documentation=true
src/PyHyperScattering/_version.py export-subst
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -54,7 +54,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -68,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
25 changes: 21 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: PyHyperScattering
name: PyHyperScattering CI Testing

on: [push]
on:
push:
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]

jobs:
build:

runs-on: ${{ matrix.os}}
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10']
python-version: ['3.10','3.11']
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
Expand All @@ -33,6 +37,7 @@ jobs:
pip install flake8 pytest coverage
pip install pybind11 wheel
pip install -r requirements.txt
pip install -r requirements-bluesky.txt
pip install dask
- name: Lint with flake8
run: |
Expand All @@ -49,6 +54,12 @@ jobs:
unzip cyrsoxs-example.zip
wget https://github.com/usnistgov/PyHyperScattering/releases/download/0.0.0-example-data/mask-test-pack.zip
unzip mask-test-pack.zip
wget https://github.com/usnistgov/PyHyperScattering/releases/download/0.0.0-example-data/PSS300nm_C_ccd100.zip
unzip PSS300nm_C_ccd100.zip
wget https://github.com/usnistgov/PyHyperScattering/releases/download/0.0.0-example-data/smi_example.zip
unzip smi_example.zip
wget https://github.com/usnistgov/PyHyperScattering/releases/download/0.0.0-example-data/CMS_giwaxs_series.zip
unzip CMS_giwaxs_series.zip
- name: Fetch and unzip example data (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
Expand All @@ -58,6 +69,12 @@ jobs:
unzip cyrsoxs-example.zip
C:\msys64\usr\bin\wget.exe https://github.com/usnistgov/PyHyperScattering/releases/download/0.0.0-example-data/mask-test-pack.zip
unzip mask-test-pack.zip
C:\msys64\usr\bin\wget.exe https://github.com/usnistgov/PyHyperScattering/releases/download/0.0.0-example-data/PSS300nm_C_ccd100.zip
unzip PSS300nm_C_ccd100.zip
C:\msys64\usr\bin\wget.exe https://github.com/usnistgov/PyHyperScattering/releases/download/0.0.0-example-data/smi_example.zip
unzip smi_example.zip
C:\msys64\usr\bin\wget.exe https://github.com/usnistgov/PyHyperScattering/releases/download/0.0.0-example-data/CMS_giwaxs_series.zip
unzip CMS_giwaxs_series.zip
- name: Test with pytest
run: |
#pytest -v
Expand All @@ -70,7 +87,7 @@ jobs:
- name: Upload coverage report
uses: actions/upload-artifact@v2
with:
name: coverage-${{ matrix.python-version }}
name: coverage-${{ matrix.os}}-${{ matrix.python-version }}.html
path: htmlcov/index.html
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
15 changes: 15 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Publish Documentation to NIST Pages"

on: [push, pull_request, delete]

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: usnistgov/Docs4NIST@0.5
with:
docs-folder: docs/
formats: |-
epub
pdf
pip-requirements: 'requirements.txt'
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ venv/*
OrientationRunDec2019/**
**/*.p
**/.*
**/*.ipynb
*.png
*.h5
*.nxs
.ipynb_checkpoints
Example/**
example-data/**
src/__pycache__
*.egg-info
src/PyHyperScattering/__pycache__
src/PyHyperScattering/.ipynb_checkpoints/*
dist
docs/_build/*
dcs/_build/*
docs/_build/html/*
*.pyc
example_data/11012/Dark_56367-AI.txt
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# PyHyperScattering
![# PyHyperScattering](https://user-images.githubusercontent.com/875623/234083915-e62ee2d4-ad7f-4d91-a847-18fa54652ffc.png)

Python utilities for loading, reducing, slicing, and plotting hyperspectral scattering datasets.

This is a package approaching scope-completeness, but still under extremely active development and notably without any guarantee of API stability (we do try to not change things without reason, though). An increasing number of parts of it are unit-tested for functionality, stability, and/or scientific correctness, but large swaths are not. Its documentation is certainly lacking and we are actively seeking help in generating good documentation (see the Issues page on github for areas). Use at your own risk. If you're interested in contributing, please contact Peter Beaucage (peter.beaucage@nist.gov).

The (quite incomplete) documentation is located at https://pages.nist.gov/PyHyperScattering, and the tutorials in the repository are occasionally helpful. Several core developers are active on the NIST RSoXS slack, Nikea, and NSLS2 slacks and welcome DMs with questions, or email Peter Beaucage.

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/usnistgov/PyHyperScattering/HEAD)
[![Documentation Status](https://readthedocs.org/projects/pyhyperscattering/badge/?version=latest)](https://pyhyperscattering.readthedocs.io/en/latest/?badge=latest)
![Unit Tests](https://github.com/usnistgov/PyHyperScattering/actions/workflows/main.yml/badge.svg)
![CodeQL](https://github.com/usnistgov/PyHyperScattering/actions/workflows/codeql-analysis.yml/badge.svg)

Expand Down
51 changes: 39 additions & 12 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,21 @@
#
import os
import sys
sys.path.insert(0, os.path.abspath('../src/'))

sys.path.insert(0, os.path.abspath("../src/"))


# -- Project information -----------------------------------------------------

project = 'PyHyperScattering'
copyright = ': Official Contribution of the US Government. Not subject to copyright in the United States.'
author = 'Peter Beaucage'
project = "PyHyperScattering"
copyright = (
": Official Contribution of the US Government. Not subject to copyright in the United States."
)
author = "Peter Beaucage"

# The full version, including alpha/beta/rc tags
from PyHyperScattering import __version__

release = __version__


Expand All @@ -32,31 +36,54 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.coverage',
'sphinx.ext.napoleon'
"sphinx.ext.autodoc",
"sphinx.ext.coverage",
"sphinx.ext.napoleon", # numpydoc and google docstrings
]

# Ignore annoying type exception warnings which often come from newlines
nitpick_ignore = [("py:class", "type")]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
# html_theme = 'alabaster'

html_theme = "pydata_sphinx_theme"
html_logo = "source/_static/Logo_PyHyperO9_Light.svg"
html_theme_options = {
"logo": {
"image_light": "source/_images/Logo_PyHyperO9_Light.svg",
"image_dark": "source/_images/Logo_PyHyperO10_Dark.svg",
},
"github_url": "https://github.com/usnistgov/PyHyperScattering",
"collapse_navigation": True,
# "external_links": [
# {"name": "Learn", "url": "https://numpy.org/numpy-tutorials/"},
# {"name": "NEPs", "url": "https://numpy.org/neps"}
# ],
"header_links_before_dropdown": 6,
# Add light/dark mode and documentation version switcher:
"navbar_end": ["theme-switcher", "navbar-icon-links"],

}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ["source/_static"]

import sys
sys.path.append('../src/')

sys.path.append("../src/")
71 changes: 50 additions & 21 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,60 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

Welcome to PyHyperScattering's documentation!
=============================================

To play with PyHyperScattering's tutorial notebooks interactively, use Binder:
.. image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/usnistgov/PyHyperScattering/HEAD
.. only:: html

At this stage, the tutorials may be a better overview than this (incomplete, but growing) documentation.


.. toctree::
:maxdepth: 4
:caption: Contents:

source/intro
source/loading
source/integration
source/learning-to-fly
source/utilities
source/modules
.. image:: /source/_static/Logo_PyHyperO10_Dark.svg
:class: only-dark
:alt: PyHyperScattering Logo
:width: 800

.. image:: /source/_static/Logo_PyHyperO9_Light.svg
:class: only-light
:alt: PyHyperScattering Logo
:width: 800


Indices and tables
==================
.. toctree::
:maxdepth: 1
:hidden:

Getting Started <source/getting_started/idx_getting_started>
User Guide <source/user_guide/idx_user_guide>
API Reference <source/reference_API/idx_reference_API>
Development <source/development/idx_development>
Release notes <source/release_notes/idx_release_notes>

About
-----
PyHyperScattering aims to make working with hyperspectral x-ray and neutron scattering data easy"
to make programs that work with such data a combination of simple, logical commands with minimal
‘cruft’. In the era of modern computing, there is no reason you should have to think about for loops
and how you’re storing different intermediate data products - you should be able to go immediately
from raw data to an analysis with clear commands, punch down to the data you need for your science
quickly. The goal is for these tools to make the mechanics of hyperspectral scattering easier and
in so doing, more reproducible, explainable, and robust.

PyHyperScattering is an open-source collaboration maintained by the `National Institute of
Standards and Technology (NIST) <https://www.nist.gov/>`_. This package is under active
development, and the team welcome DMs with questions on the NIST RSoXS slack, Nikea, and NSLS2 slack
channels, or by email to `Dr. Peter Beaucage <mailto:peter.beaucage@nist.gov>`_.
For more information about contributing, development philosophy, and licensing,
see :ref:`the Development page <Development>`.

Documentation
-------------
.. list-table::
:widths: 30 30
:header-rows: 0

* - :ref:`Getting Started <Getting_Started>` Tutorials to help you get your analysis up and running. Beginners should start here.
- :ref:`User Guide <User_Guide>` A collection of How-To guides (recipes) for specific data reduction, analysis, and visualization tasks.
* - :ref:`API Reference <Reference_API>` Detailed technical reference; presents documentation at the function, class, and module level.
- :ref:`Development <Development>` Information and resources regarding the scope and development philosophy of this project, along with information on contributing and licensing.


Sitemap
--------

* :ref:`genindex`
* :ref:`modindex`
Expand Down
Loading
Loading