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

Draft: Description of XPS peak fitting #169

Closed
wants to merge 825 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
825 commits
Select commit Hold shift + click to select a range
cee5940
Use mapping in NXcalibration
lukaspie Oct 5, 2023
fdfcc54
Update ISO links in docs
lukaspie Oct 5, 2023
56dabc3
Update doc in type attribute of NXdata
lukaspie Oct 5, 2023
b2dbb48
Fixes makefile pickung up nxdl rules for `make nyaml` (#73)
domna Oct 5, 2023
1a69480
CI/CD for yaml/nxdl consistency (#70)
domna Oct 5, 2023
269a846
Sets preparation, temperature+gas_pressure in NXmpes/NXsample to reco…
domna Sep 11, 2023
38f33d3
Sets fields to optional
domna Sep 11, 2023
a3cba75
Incorporates comments from proposal page
domna Sep 11, 2023
57171a1
Incorporates changes from may workshop (#32)
domna Sep 13, 2023
52e2bdd
Adds a reference to PaNET ontology
domna Sep 13, 2023
be014ac
Use NXmpes.yaml generated with correct nyaml2nxdl
domna Sep 21, 2023
2175e35
Addresses some of the comments
domna Sep 26, 2023
8274c7d
Cleaner docs for NXmpes
domna Sep 27, 2023
ad12285
Adds proper NXresolution
domna Sep 27, 2023
e40559f
Add NXfabrication to any device in NXmpes
lukaspie Sep 27, 2023
66009b9
NXresolution: Change `dimension` to `physical_quantity`
domna Sep 27, 2023
034135d
Add NXfabrication to all MPES instrument-related base classes
lukaspie Sep 27, 2023
5169ca5
Adds response_function to NXresolution
domna Sep 28, 2023
0f013af
Updates distance field according to @Tommaso-Pincelli s comments
domna Oct 2, 2023
c16d6a2
Add base class for electronic core levels
lukaspie Oct 5, 2023
19bcd9d
Add single strings for 'No' option in enum
lukaspie Oct 5, 2023
39e57bd
Sync yaml files to nxdl
domna Oct 5, 2023
c8b341f
Resolve merged conflicts in yaml files
lukaspie Oct 6, 2023
d8d4c7e
Fix merge conflicts in NXdetector, remove NXdetector.yaml from contri…
lukaspie Oct 6, 2023
65c6b9a
typo fix in NXdetector
lukaspie Oct 6, 2023
e400ca8
more merge conflict fixes
lukaspie Oct 6, 2023
821d9e5
Remake nxdl files
lukaspie Oct 6, 2023
9649ea5
Ensure yaml-nxdl consistency
lukaspie Oct 6, 2023
18afeaa
Readd lost NXdetector fields
lukaspie Oct 6, 2023
e594281
Merge pull request #72 from FAIRmat-NFDI/mpes-changes-from-xps-subdef
lukaspie Oct 6, 2023
23efc86
Remove duplicated beam_TYPE
lukaspie Oct 6, 2023
4f4fabc
Sets user affilliation and name to required and remove any other fiel…
domna Oct 10, 2023
bd6b13a
Adds photon to NXsource and make probe in NXsource optional
domna Oct 18, 2023
cc3b9a6
Adds partial to NXroot
domna Oct 18, 2023
b874c61
Create nxdls
domna Oct 18, 2023
cd74ec8
Use all capital MAPPING in NXcalibration for now
lukaspie Oct 24, 2023
06ed85d
Add to NXmpes_instrument (issue #85)
lukaspie Oct 25, 2023
2900715
Modify NXsource base class docstring
lukaspie Oct 25, 2023
58affe3
Make NXDLs
lukaspie Oct 25, 2023
710c320
make nyamls
lukaspie Oct 25, 2023
f41d0c3
Add list of physical quantities as axis names
lukaspie Oct 26, 2023
b0a216c
use @target in NXresolution
lukaspie Oct 26, 2023
981de1b
Remove NXlink base class
lukaspie Oct 30, 2023
8444370
Adds multiple input axis and doi reference (#98)
domna Nov 2, 2023
763a967
Merge branch 'fairmat' into mpes-refactor
domna Nov 2, 2023
3bd3791
Updates calibration nxdl file
domna Nov 2, 2023
f0d7e06
Add nyaml2nxdl updates from NIAC PR1303 (#102)
domna Nov 3, 2023
08020ac
Rename raw axis name in NXdetector/NXdata, split polarization
lukaspie Nov 3, 2023
a293f87
Fix rebase conflict.
RubelMozumder Nov 6, 2023
4d38026
Fix rebase conflict.
RubelMozumder Nov 6, 2023
eee8493
Fix rebase conflict.
RubelMozumder Nov 6, 2023
6970c31
Fix rebase conflict.
RubelMozumder Nov 6, 2023
fc0b2fb
Fix rebase conflict.
RubelMozumder Nov 6, 2023
76adff0
Build nxdl names from existing variables
domna Oct 25, 2023
0babd53
Updates NXroot with partial and NeXus_repository (#101)
domna Nov 7, 2023
d5bf3c5
Fix NXroot nxdl (#112)
domna Nov 8, 2023
7aeffc3
Fix rebase conflict and PR change request.
RubelMozumder Nov 6, 2023
f33b868
PR comment resolve.
RubelMozumder Nov 9, 2023
1016aa0
Merge pull request #93 from FAIRmat-NFDI/nyaml2nxdl-migration_add_xref
RubelMozumder Nov 9, 2023
0402962
Merge branch 'fairmat' into mpes-refactor
lukaspie Nov 10, 2023
101d1df
update mpes-structure.rst
lukaspie Nov 10, 2023
4f88fa9
Add depends on in NXenergydispersion
lukaspie Nov 10, 2023
191749c
Update manual/source/mpes-structure.rst
lukaspie Nov 10, 2023
15624c0
Resolving xref issue 115-nyaml2nxdl-xref-edge-cases (#116)
RubelMozumder Nov 10, 2023
7414010
Merge branch 'fairmat' into mpes-refactor
lukaspie Nov 13, 2023
80e695e
Use xref in NXmpes and related base classes
lukaspie Nov 13, 2023
d5f6b0f
Make NXDLs with xrefs
lukaspie Nov 13, 2023
2ee5d51
Use xref in NXelectronanalyser
lukaspie Nov 15, 2023
7f8ac5d
Allow xref in root-level docstring
lukaspie Nov 15, 2023
7e7fb57
Black codestyle
lukaspie Nov 15, 2023
faed546
Merge pull request #120 from FAIRmat-NFDI/119-nyaml2nxdl-xref-in-app-…
lukaspie Nov 17, 2023
57c2635
remove NXsource nyaml from contributed definitions
lukaspie Nov 27, 2023
12dbd85
initial fix in nyaml files
lukaspie Nov 27, 2023
f9f0450
Merge branch '123-use-nxresolution-properly-across-nxmpes' of github.…
lukaspie Nov 27, 2023
21bd518
Merge branch 'fairmat' into mpes-refactor
lukaspie Nov 27, 2023
a74768b
named resolution in instrument and analyser base class
lukaspie Nov 27, 2023
3a7ecc8
Rename torrodial to Torrodial to align with other options.
lukaspie Nov 28, 2023
d709e2a
initial detailed description of energy scan modes
lukaspie Nov 28, 2023
a15798b
Readd collapsible feature and super-concept links for documentation +…
domna Nov 29, 2023
829d882
pytest and related test file added for checking nxdl_utils functional…
sanbrock Nov 29, 2023
ddd8cec
Update dev_tools files (#129)
domna Nov 30, 2023
1d0d045
Base class templates (#51)
mkuehbach Nov 30, 2023
eba0b23
start discussing XRD.yaml
May 6, 2022
2346a9d
converting into yaml file.
RubelMozumder Sep 6, 2023
3d9baa4
base structure
sanbrock Sep 6, 2023
f3348dc
yaml is compatible with nyaml2nxdl
RubelMozumder Sep 6, 2023
e73d810
Including nxdl
RubelMozumder Sep 6, 2023
72b0c1d
fixing xrd definitions
sanbrock Sep 7, 2023
633a196
further cleaning of definitions
sanbrock Sep 7, 2023
5b51cc7
further cleaning of rw data and polar_angle vs. twotheta definitions
sanbrock Sep 7, 2023
8d54fcc
fixing typos
sanbrock Sep 8, 2023
d12c4de
Updating xrd_pan
RubelMozumder Sep 11, 2023
5df5c5a
modify nxdl.
RubelMozumder Nov 30, 2023
d8340a1
update
RubelMozumder Dec 1, 2023
84d0d8f
mv NXxrd into application.
RubelMozumder Dec 1, 2023
85d2750
mv NXxrd into application.
RubelMozumder Dec 1, 2023
4e0593e
mv NXxrd into application.
RubelMozumder Dec 1, 2023
30ee95f
Merge pull request #64 from FAIRmat-NFDI/XRD_app_def
RubelMozumder Dec 1, 2023
370f66c
minor error.
RubelMozumder Dec 1, 2023
9998376
Merge pull request #133 from FAIRmat-NFDI/XRD_modify
RubelMozumder Dec 1, 2023
615ff37
Fixes typo in NXcalibration (#134)
domna Dec 4, 2023
73b77d3
Merge branch 'mpes-refactor' into 78-extend-nxdata-with-axis-namesphy…
lukaspie Dec 19, 2023
0c574e4
Merge branch 'mpes-refactor' into mpes-refactor-sample
lukaspie Dec 19, 2023
55dfc7e
Merge commit 'a15798bab795d92b587527f2cff0819e26f550ee' into mpes-ref…
lukaspie Dec 19, 2023
f7ed4b0
readd lost fields in NXmpes/NXsample
lukaspie Dec 19, 2023
32b515c
make No field in NXelectron_level a string
lukaspie Dec 19, 2023
f27191f
Change value log in actuators in NXmanipulator
lukaspie Dec 19, 2023
d5587be
Merge branch 'fairmat' into mpes-refactor
domna Jan 3, 2024
3109645
Multiline docstrings for enumerations are now supported
domna Jan 3, 2024
d740302
Make nxdl
domna Jan 3, 2024
4031ab2
Whitespace above and below copyright removed (new nyaml version)
domna Jan 3, 2024
a7206a9
Black reformatted
domna Jan 3, 2024
d5b5d00
fix beam_TYPE and distance
lukaspie Jan 4, 2024
e8754f6
remove additional whitespace in NXmpes yaml
lukaspie Jan 4, 2024
c5f3dc4
remove applied fields from calibrations
lukaspie Jan 4, 2024
d89d031
set situation and gas pressure to recommended in NXsample
lukaspie Jan 4, 2024
f7fc4d8
remove unneeded docstring from NXcollectioncolumn/mode
lukaspie Jan 4, 2024
3ad7396
remove NXinstrument yaml from contributed
lukaspie Jan 4, 2024
7dbbb7f
remove explicit resolution names from NXinstrument
lukaspie Jan 4, 2024
4f5c0d9
Merge branch 'mpes-refactor' into 123-use-nxresolution-properly-acros…
lukaspie Jan 4, 2024
30bf75a
Merge branch 'mpes-refactor' into 126-extend-energy-scan_mode-in-nxen…
lukaspie Jan 4, 2024
04b69ac
Copyright updated to 2024 (#137)
domna Jan 4, 2024
6160104
Merge branch 'fairmat' into mpes-refactor
domna Jan 4, 2024
b7e97e8
Merge branch 'mpes-refactor' into mpes-refactor-sample
lukaspie Jan 4, 2024
a47437a
remake NXmpes.nxdl.xml
lukaspie Jan 4, 2024
f53a639
Merge branch 'mpes-refactor' into 78-extend-nxdata-with-axis-namesphy…
lukaspie Jan 4, 2024
a8d78f7
Merge branch 'mpes-refactor' into 123-use-nxresolution-properly-acros…
lukaspie Jan 4, 2024
a31ba79
Merge branch 'mpes-refactor' into 126-extend-energy-scan_mode-in-nxen…
lukaspie Jan 4, 2024
dff02b6
Merge branch 'mpes-refactor' into 78-extend-nxdata-with-axis-namesphy…
lukaspie Jan 4, 2024
664c636
Merge branch 'mpes-refactor' into mpes-refactor-sample
lukaspie Jan 4, 2024
c6b5882
fix xref in NXenergydispersion
lukaspie Jan 4, 2024
e0214d7
Merge branch 'mpes-refactor' into 123-use-nxresolution-properly-acros…
lukaspie Jan 5, 2024
4ec983c
Use NX_FLOAT in NXresolution/resolution, introduce resolution_error
lukaspie Jan 5, 2024
88b3df6
Merge branch 'mpes-refactor' into mpes-refactor-sample
lukaspie Jan 5, 2024
6ceb1ba
move sensor and actuator descriptions to NXmanipulator
lukaspie Jan 5, 2024
0517b25
make NXenvironment.nxdl.xml
lukaspie Jan 5, 2024
8455aee
make nxdls
lukaspie Jan 5, 2024
1b06f56
change starting data in NXenvironment
lukaspie Jan 5, 2024
96ea278
shorten sample history docstring
lukaspie Jan 5, 2024
2ed482d
update NXsource in NXmpes
lukaspie Jan 5, 2024
142df50
removed unneeded fields in NXactuator
lukaspie Jan 5, 2024
77eb4c9
fix typos, copy-paste errors and accidental deletions
lukaspie Jan 5, 2024
55a8d3e
address review comments
lukaspie Jan 5, 2024
89bfec1
add vacuum level to energy referencing
lukaspie Jan 5, 2024
e9d512c
add description of dither mode, remove transmission mode
lukaspie Jan 5, 2024
0b3e18e
Merge pull request #124 from FAIRmat-NFDI/123-use-nxresolution-proper…
lukaspie Jan 5, 2024
d514e94
Merge branch 'mpes-refactor' into 126-extend-energy-scan_mode-in-nxen…
lukaspie Jan 5, 2024
5e35159
Merge branch 'mpes-refactor' into 78-extend-nxdata-with-axis-namesphy…
lukaspie Jan 5, 2024
03c8ca6
add AXISNAME_depends to NXdata
lukaspie Jan 5, 2024
c234f17
remove name quantities from NXmpes for now
lukaspie Jan 5, 2024
f1e439c
add a NXdata_mpes class as glossary
lukaspie Jan 5, 2024
22ba173
Merge branch 'mpes-refactor' into mpes-refactor-sample
lukaspie Jan 5, 2024
8fd635b
NXdetector/data field names moved to separate file
domna Jan 8, 2024
db7ec3d
Docstring for detector/data added
domna Jan 8, 2024
dbfb264
change docstring in AXISNAME_depends
lukaspie Jan 8, 2024
0386fef
Merge branch '78-extend-nxdata-with-axis-namesphysical-quantities-glo…
lukaspie Jan 8, 2024
5960792
update axis docstring with unit categories
lukaspie Jan 8, 2024
4806e3f
Rename detector/data to detector/raw_data
domna Jan 8, 2024
8f682e8
rename actuation to physical_quantity
lukaspie Jan 8, 2024
fa17d60
add angular and spatial axis names
lukaspie Jan 8, 2024
e276632
removed unneeded axes in NXdetector
lukaspie Jan 8, 2024
46abd51
Merge pull request #127 from FAIRmat-NFDI/126-extend-energy-scan_mode…
lukaspie Jan 8, 2024
c0071e1
use new output and setpoints structure in NXactuator
lukaspie Jan 8, 2024
8516668
Refine makefiles (#131)
domna Jan 8, 2024
6c0434c
change suggested axis names in NXdetector/data
lukaspie Jan 8, 2024
991ca9d
move chemical_formula to NXsubstance
lukaspie Jan 8, 2024
6d928b3
Change latex to xelatex
domna Jan 8, 2024
2fbbc1b
Merge branch 'mpes-refactor' into mpes-refactor-sample
lukaspie Jan 8, 2024
40d079b
use NXsubstance correctly again
lukaspie Jan 8, 2024
5e3b935
add usage description of source_TYPE
lukaspie Jan 8, 2024
a75f314
limit allow collecton column schemes
lukaspie Jan 8, 2024
4653115
Merge branch 'fairmat' into mpes-refactor
domna Jan 8, 2024
b0678c0
nxdl regenerated with new nyaml2nxdl
domna Jan 8, 2024
75482c4
add angular and spatial acceptance to NXcollectioncolumn
lukaspie Jan 8, 2024
f8b4de8
Merge branch 'mpes-refactor' of github.com:FAIRmat-NFDI/nexus_definit…
lukaspie Jan 8, 2024
b77f13d
remove NXsensor from contributed
lukaspie Jan 8, 2024
3d5f54b
Adds proper inputenc
domna Jan 8, 2024
9858384
Merge branch 'mpes-refactor' into mpes-refactor-sample
lukaspie Jan 8, 2024
5ac19aa
Fixes config.py bugs
domna Jan 8, 2024
50b4295
Use xelatex for unicode support again
domna Jan 8, 2024
1531187
Add fonts to conf.py
domna Jan 8, 2024
bf13922
Declare delta as additional unicode character
domna Jan 8, 2024
128b36e
Also declare bold delta
domna Jan 8, 2024
b23a10c
xetex removed from ci install
domna Jan 8, 2024
84d3b94
update MPES-related inherited NXdata classes
lukaspie Jan 9, 2024
7b81547
Merge pull request #92 from FAIRmat-NFDI/78-extend-nxdata-with-axis-n…
lukaspie Jan 9, 2024
f791555
NXdata fixed
domna Jan 9, 2024
e16bd68
add energy indices and depends
lukaspie Jan 9, 2024
0d040f4
move NXaperture to end of NXenergydispersion
lukaspie Jan 9, 2024
64ddaf6
Updates NXtransformations docs (#114)
domna Jan 9, 2024
d46c080
Merge branch 'fairmat' into mpes-refactor
lukaspie Jan 9, 2024
2479ca1
Fix tabs/spaces in NXdata+NXmpes docstrings
domna Jan 10, 2024
df82fbe
Explicitly name NXdata and extend docstring for generic NXdata group
domna Jan 10, 2024
8f01ddc
Merge branch 'mpes-refactor' into mpes-refactor-sample
lukaspie Jan 10, 2024
750db36
make nxdls
lukaspie Jan 10, 2024
d1c16ff
make nyamls
lukaspie Jan 10, 2024
e9c8ec4
Merge pull request #68 from FAIRmat-NFDI/mpes-refactor-sample
lukaspie Jan 10, 2024
aa5c09e
Regenerate nxdls
domna Jan 10, 2024
b982d52
Revert changes to impatient/conf.py
domna Jan 11, 2024
8613602
mpes-structure.rst cleaned
domna Jan 11, 2024
7e7ccf5
Add an introductory sentence of appdef list
domna Jan 11, 2024
4bd7792
Updates docs from Lukas comments
domna Jan 11, 2024
8617cf2
remove exists keyword from NXdata_mpes base classes
lukaspie Jan 11, 2024
8d4c1e2
typo and docstring fixes in base classes
lukaspie Jan 11, 2024
1da950f
typo fixes in NXelectronanalyser
lukaspie Jan 11, 2024
a4b4cfc
consistenly use :math environment
lukaspie Jan 11, 2024
4534b0c
specify ISO8601 time format in NXmpes
lukaspie Jan 11, 2024
442aacc
Merge branch 'mpes-refactor' of github.com:FAIRmat-NFDI/nexus_definit…
lukaspie Jan 11, 2024
8a59a7c
make nyaml
lukaspie Jan 11, 2024
7a8bee3
use NX_WAVENUMBER in k-space in NXmpes
lukaspie Jan 12, 2024
2e89d13
mpes overview text refined from review comment
domna Jan 12, 2024
5e27937
review MPES-related docstrings
lukaspie Jan 12, 2024
cd30bc3
Merge branch 'mpes-refactor' of github.com:FAIRmat-NFDI/nexus_definit…
lukaspie Jan 12, 2024
859a8e9
make nxdl and nyaml again
lukaspie Jan 12, 2024
0adeaa0
make NXelectronanalyser/work_function recommended
lukaspie Jan 12, 2024
fdb36ff
set unicode character for \sim
lukaspie Jan 12, 2024
f986784
Use \sim instead of ~ in yaml file
domna Jan 12, 2024
b401db4
typo fix in NXenergydispersion
lukaspie Jan 12, 2024
e487f87
make nxmpes nyaml
lukaspie Jan 12, 2024
3bc8002
change MPES base classes after Laurenz' review
lukaspie Jan 13, 2024
e8d1890
address review comments on NXmpes appdef
lukaspie Jan 13, 2024
9c874ad
change mapping in NXcalibration
lukaspie Jan 13, 2024
602c3ff
add description of E-EF in MPES
lukaspie Jan 15, 2024
e73f603
remake nxdls and nyamls
lukaspie Jan 15, 2024
03d8477
change docstring of spatial acceptance in NXcollectioncolumn
lukaspie Jan 15, 2024
46ef7d4
make drain current optional in NXmpes
lukaspie Jan 15, 2024
060902e
add NXdata to NXcalibration
lukaspie Jan 15, 2024
5aa9fc6
add MPES-specialized NXprocess base class
lukaspie Jan 15, 2024
629d530
add generic NXactuator to NXenvironment
lukaspie Jan 15, 2024
556e912
update potentiostat of NXmpes/sample/bias
lukaspie Jan 15, 2024
208ceb5
add name to mpes cryostat
lukaspie Jan 15, 2024
5ea63b4
change to resolution_errors in NXresolution
lukaspie Jan 15, 2024
7977c7e
Merge pull request #52 from FAIRmat-NFDI/mpes-refactor
lukaspie Jan 15, 2024
667e607
clarify definition of MPES workfunction
lukaspie Jan 17, 2024
f2bbde3
refine work function docstring
lukaspie Jan 17, 2024
6fb39a7
explicit name for sample history in MPES
lukaspie Jan 17, 2024
19443e1
`energy_scan_mode` set to recommended
domna Jan 17, 2024
a200fca
fix NXenergydispersion work function doc
lukaspie Jan 17, 2024
5753d04
sample bias potentiostate field made optional
domna Jan 17, 2024
ff3c331
Add missing bracket
domna Jan 17, 2024
9e5722e
Renamings from pynxtools reader update
domna Jan 19, 2024
dcf6a97
add voltage_scan_range to NXenergydispersion
lukaspie Jan 22, 2024
d2fdad4
Merge pull request #146 from FAIRmat-NFDI/mpes-fixes
lukaspie Jan 22, 2024
87c74e2
move voltage scan range to NXelectronanalyser
lukaspie Jan 22, 2024
0a5a742
remove optional voltage range from NXmpes
lukaspie Jan 22, 2024
0f31944
Merge pull request #150 from FAIRmat-NFDI/voltage_scan_range
lukaspie Jan 23, 2024
60500dd
Fix URLs and formats with black>24 (#152)
domna Jan 30, 2024
c867566
rename lens_mode according to base class
lukaspie Feb 9, 2024
64ba784
Merge pull request #156 from FAIRmat-NFDI/mpes_lens_mode
lukaspie Feb 9, 2024
364a77d
Makes sensor scan an appdef again (#168)
domna Feb 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
94 changes: 0 additions & 94 deletions .github/nexus-fairmat-gen-docs.yml

This file was deleted.

52 changes: 35 additions & 17 deletions .github/workflows/ci.yaml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,24 @@ name: CI
on:
push:
branches:
- main # push commit to the main branch
- main
- fairmat # push commit to the fairmat branch
pull_request:
branches:
- main # pull request to the main branch
- main
- fairmat # pull request to the fairmat branch
workflow_dispatch: # allow manual triggering
inputs:
deploy:
description: 'Deploy documentation'
type: boolean
required: true
default: false
upload:
description: 'Upload documentation (pdfs in _static/)'
type: boolean
required: true
default: false

defaults:
run:
Expand All @@ -25,19 +32,25 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11']
max-parallel: 5
env:
python_version: ${{ matrix.python-version }}
python_deploy_version: '3.8' # version to use for deployment

steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Deploy Information
if: ${{ github.event.inputs.deploy && env.python_version == '3.7' }}
if: ${{ github.event.inputs.deploy && env.python_version == env.python_deploy_version }}
run: |
echo "The HTML NeXus User Manual will be pushed to"
echo " https://github.com/nexusformat/definitions/tree/gh-pages"
Expand Down Expand Up @@ -66,34 +79,39 @@ jobs:
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended
tex --version

- name: Generate build files
env:
GH_TOKEN: ${{ (env.python_version == env.python_deploy_version && (github.event.inputs.deploy || github.event.inputs.upload)) && secrets.GITHUB_TOKEN || 'NONE' }}
run: |
make prepare

- name: Build Impatient Guid
- name: Build Impatient Guide
run: |
make impatient-guide
ls -lAFgh build/impatient-guide/build/html/index.html
ls -lAFgh build/impatient-guide/build/latex/NXImpatient.pdf
mkdir -p build/html
mv build/impatient-guide/build/html build/html/impatient

- name: Build User Manual
run: |
make pdf
make html
ls -lAFgh build/manual/build/html/index.html
ls -lAFgh build/manual/build/latex/nexus.pdf
mkdir -p build/html
mv build/manual/build/html/* build/html

- name: Build and Commit the User Manual
if: ${{ github.event.inputs.deploy && env.python_version == '3.7' }}
uses: sphinx-notes/pages@master
- name: Deploy both the User Manual and the Impatient Guide
if: ${{ github.event.inputs.deploy && env.python_version == env.python_deploy_version }}
uses: JamesIves/github-pages-deploy-action@v4
with:
# path to the conf.py directory
documentation_path: build/manual/source
token: ${{ secrets.GITHUB_TOKEN }}
folder: build/html

- name: Deploy the User Manual
if: ${{ github.event.inputs.deploy && env.python_version == '3.7' }}
uses: ad-m/github-push-action@master
- name: Upload the User Manual and the Impatient Guide
if: ${{ github.event.inputs.upload && env.python_version == env.python_deploy_version }}
uses: actions/upload-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
name: nexus-definitions-docs
path: build/html
49 changes: 49 additions & 0 deletions .github/workflows/fairmat-build-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: GH pages fairmat proposal

on:
push:
branches: [fairmat]
pull_request:
branches: [fairmat]

jobs:
pages:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: install dependencies
run: pip install -r requirements.txt
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
- name: test
run: make test
- name: prepare
run: make prepare
- name: html
run: make html
- name: Deploy
if: steps.branch-name.outputs.is_default == 'true'
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
folder: build/manual/build/html
branch: fairmat-docs
target-folder: docs
clean: false
- name: Deploy PR
if: steps.branch-name.outputs.is_default == 'false'
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
folder: build/manual/build/html
branch: fairmat-docs
target-folder: docs/${{ steps.branch-name.outputs.current_branch }}
clean: false
27 changes: 27 additions & 0 deletions .github/workflows/fairmat-clean-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: GH pages cleanup

on:
delete:

jobs:
cleanup:
if: github.event.ref_type == 'branch'
runs-on: ubuntu-latest
steps:
- name: Checkout pages
uses: actions/checkout@v2
with:
ref: fairmat-docs
persist-credentials: false
fetch-depth: 0
- name: Remove branch directory
run: rm -rf docs/${{ github.event.ref }}
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: fairmat-docs
message: Fairmat docs cleanup ${{ steps.date.outputs.date }}
29 changes: 29 additions & 0 deletions .github/workflows/fairmat-nxdl-yaml-consistency.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check nxdl/yaml consistency

on:
push:
branches: [fairmat]
pull_request:
branches: [fairmat]

jobs:
check_nxdl:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install dependencies
run: pip install -r requirements.txt
- name: make nxdls
run: make nxdl
- uses: CatChen/check-git-status-action@v1
with:
fail-if-not-clean: true
request-changes-if-not-clean: false
push-if-not-clean: false
25 changes: 22 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Hidden files
.*
!.github

# Python byte / compiled / optimized
*.py[cod]
Expand All @@ -9,6 +10,24 @@ __pycache__/
build/
makelog.txt

# Unknown
/python/
__github_creds__.txt
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

*_parsed.yaml
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
recursive-include applications/ *.nxdl.xml
recursive-include contributed_definitions/ *.nxdl.xml
recursive-include base_classes/ *.nxdl.xml
include ./ *.xsd
Loading
Loading