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

[WIP] Abstract XRF spectrum #772

Closed
wants to merge 365 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
365 commits
Select commit Hold shift + click to select a range
186aa95
Added ISPyB implementation for P11
Aug 29, 2023
a8f01a6
Added modifications to the EDNACharacterisation related to P11 with GB.
Aug 29, 2023
f6064a6
Reformatting
Aug 29, 2023
8b25a30
Merge remote-tracking branch 'origin/p11_update_2' into p11_update_2
Aug 29, 2023
929fd82
Corrected incorrect import
marcus-oscarsson Aug 30, 2023
e8671e8
Merge pull request #783 from mxcube/mo-develop
marcus-oscarsson Aug 30, 2023
f65c0a7
[skip ci] Bumped minor version
marcus-oscarsson Aug 30, 2023
b33adc6
Restructured added changes to the get_value (review)
Aug 30, 2023
2fb4d01
Update of the comparison part to make sure any() works properly (review)
Aug 30, 2023
09ed5b8
Commented for now. Needs additional beamline testing
Aug 30, 2023
c9572e9
Added proper comparison with None (review)
Aug 30, 2023
6966a96
Thorough checks on the numpy arrays. Removing redundant self.value = …
Aug 30, 2023
08c9f9a
Adapted get_display_name() condition for handling None values (review…
Aug 30, 2023
96b184e
Updated ShutterMockup to handle timeout values; timeout=None will wa…
Aug 30, 2023
6604184
Added is_connected() and self.login_ok to the ISPyB mock-ups (PR782)
Aug 30, 2023
79c256e
Modified P11 specific characterisation settings to the subclass of ED…
Aug 30, 2023
fb4ef52
Removed redundant if, added as a part of the previous one
Aug 30, 2023
4c82c51
Fixing the read/load info in case of commisionning
Aug 30, 2023
2f63f35
Combined read/load JSON beamtime info into one function (review, PR782)
Aug 30, 2023
0b8750b
Fixed wrong indent (review)
Aug 30, 2023
03dbfe7
Typo
Aug 30, 2023
c4928e2
Updated AbstractShutter and ShutterMockup from dev branch explicitly …
Aug 31, 2023
f1815a5
drop travis CI config file
elmjag Sep 5, 2023
ed69413
Merge pull request #785 from elmjag/drop_travis
marcus-oscarsson Sep 6, 2023
c1e5fdc
[skip ci] Bumped minor version
marcus-oscarsson Sep 6, 2023
a7b43d4
Merge pull request #782 from agruzinov/p11_update_2
marcus-oscarsson Sep 6, 2023
d252b1e
[skip ci] Bumped minor version
marcus-oscarsson Sep 6, 2023
f03e905
Update CONTRIBUTING.md
marcus-oscarsson Sep 6, 2023
712922c
Fixed typo
marcus-oscarsson Sep 7, 2023
59b30f1
Merge pull request #786 from mxcube/marcus-oscarsson-patch-1
marcus-oscarsson Sep 7, 2023
1998bd4
[skip ci] Bumped minor version
marcus-oscarsson Sep 7, 2023
e7c4b8f
Default editor configurations and environment for development
marcus-oscarsson Sep 7, 2023
cfb4fe3
Forgot pytest mock
marcus-oscarsson Sep 7, 2023
c9cccfc
Removed file commited by mistake
marcus-oscarsson Sep 7, 2023
5a25dda
Added missing pytest-mock
marcus-oscarsson Sep 7, 2023
1b21a2f
Trim white spaces
marcus-oscarsson Sep 7, 2023
e138511
Updated git ignore
marcus-oscarsson Sep 7, 2023
83ef13a
Merge pull request #787 from mxcube/mo-dev-env
marcus-oscarsson Sep 7, 2023
50c96c9
[skip ci] Bumped minor version
marcus-oscarsson Sep 7, 2023
b0f9d90
Added missing .pre-commit-config.yaml
marcus-oscarsson Sep 7, 2023
01f9e84
Merge pull request #788 from mxcube/mo-pre-commit
marcus-oscarsson Sep 12, 2023
355d5be
[skip ci] Bumped minor version
marcus-oscarsson Sep 12, 2023
014a500
Minot changes (UI improvement and duplicate orientations)
rhfogh Aug 25, 2023
689abff
Bug fixes (GPhL UI)
rhfogh Sep 10, 2023
5751d1b
Remoced obsolete comments
rhfogh Sep 13, 2023
87c081c
Merge pull request #789 from rhfogh/rhfogh_develop
marcus-oscarsson Sep 14, 2023
802ab2f
[skip ci] Bumped minor version
marcus-oscarsson Sep 14, 2023
5e02c1a
Added handling of beamtime info in case no beamtime ID is open
Sep 14, 2023
4371bf8
Added fast shutter object
Sep 14, 2023
7fb66cf
Added missing HO from Bixente after update
Sep 14, 2023
e10e1e3
Updated to camel_case
Sep 14, 2023
f658a09
Updated after upgrade and change to camel_case
Sep 14, 2023
2a3ea08
Updated to snake_case
Sep 14, 2023
d414aad
Updated after upgrade and change to camel_case
Sep 14, 2023
b1e57bb
Update after upgrade and change to snake_case
Sep 14, 2023
80f1642
Merge remote-tracking branch 'origin/p11_develop' into p11_develop
Sep 14, 2023
fa67663
Update of P11Nanodiff after upgrade
Sep 14, 2023
d683147
Add missing P11Pinhole HO from Bixente
Sep 14, 2023
5e073e3
Adding missing P11Backlight HO from Bixente
Sep 14, 2023
62fb322
Update after upgrade P11Zoom
Sep 14, 2023
d6733fc
Update after upgrade and adding AbstractVideoDevice, Device as a work…
Sep 14, 2023
3d8873c
Code styling
Sep 14, 2023
d8bf74f
Removed first version of Nanodiff HO
Sep 15, 2023
0e19ae0
Add missing is_open is_closed that were previously in AbstractShutter
Sep 15, 2023
a6977d0
Added explicitly BaseValueEnum class inside P11DetectorCover with add…
Sep 15, 2023
cb1a5c0
Added timeout=0 explicitly to the detector cover open and close, othe…
Sep 15, 2023
5914e61
Added MOVING state after upgrade to the P11Shutter
Sep 15, 2023
99fd019
Merge pull request #790 from agruzinov/p11_develop
rhfogh Sep 17, 2023
0b317cf
[skip ci] Bumped minor version
marcus-oscarsson Sep 17, 2023
785ad14
tango: fix issue with numpy array attributes
elmjag Sep 18, 2023
d0120c4
channels: fix method signature
elmjag Sep 19, 2023
2b05565
tango: small clean-up
elmjag Sep 19, 2023
42493e3
Merge pull request #792 from elmjag/tango_numpy
marcus-oscarsson Sep 19, 2023
3e1e582
[skip ci] Bumped minor version
marcus-oscarsson Sep 19, 2023
8cc6fd6
Fix login issues in ISPyB clients (and mockups)
fabcor-maxiv Sep 21, 2023
76bd687
Merge pull request #793 from fabcor-maxiv/fix-ispyb-login-issues
marcus-oscarsson Sep 21, 2023
15f45b5
[skip ci] Bumped minor version
marcus-oscarsson Sep 21, 2023
cec2fd2
Fix to UI symmetry handling
rhfogh Sep 15, 2023
b65f0fe
Bug fixes to UI symmetry handling
rhfogh Sep 17, 2023
6075e28
Bug fixes
rhfogh Sep 19, 2023
e53d35d
Added to parameter summary
rhfogh Sep 24, 2023
95f9cdb
Removed commented-out code
rhfogh Sep 24, 2023
d0826dc
Merge pull request #791 from rhfogh/rhfogh_develop
marcus-oscarsson Sep 25, 2023
69a728c
[skip ci] Bumped minor version
marcus-oscarsson Sep 25, 2023
bf4fcee
Bug fix and GPhL release version update
rhfogh Sep 25, 2023
0f6d95d
Fixed handling of symmetry input for automation
rhfogh Sep 27, 2023
492d034
Removed extra hash
rhfogh Sep 28, 2023
9ee6044
Merge pull request #794 from rhfogh/rhfogh_develop
marcus-oscarsson Sep 28, 2023
1effd65
[skip ci] Bumped minor version
marcus-oscarsson Sep 28, 2023
d421aa7
remove commited files that match .gitignore
elmjag Sep 27, 2023
44867cf
pre-commit: adds autoflake exclude file list
elmjag Sep 26, 2023
b0d492a
pre-commit: adds black exclude file list
elmjag Sep 26, 2023
877c85e
pre-commit: adds trailing-whitespace exclude file list
elmjag Sep 27, 2023
13a9116
pre-commit: adds end-of-file-fixer exclude file list
elmjag Sep 27, 2023
6f63edb
add endline to some files
elmjag Sep 27, 2023
5652c66
enable pre-commit checks in CI
elmjag Sep 27, 2023
34a4a9a
Updated documentation examples for json_params_gui UI system
rhfogh Sep 28, 2023
7b64cd8
Merge pull request #795 from elmjag/ci-pre-commit
marcus-oscarsson Sep 28, 2023
c15f2d4
Merge pull request #796 from rhfogh/rhfogh_develop
marcus-oscarsson Sep 28, 2023
b83d39d
[skip ci] Bumped minor version
marcus-oscarsson Sep 28, 2023
30c2a5d
Create .readthedocs.yaml
marcus-oscarsson Oct 2, 2023
ce719ad
[skip ci] Bumped minor version
marcus-oscarsson Oct 2, 2023
dba1f1e
Add Sphinx-based documentation
fabcor-maxiv Sep 28, 2023
59a7108
Merge pull request #799 from fabcor-maxiv/add-sphinx-docs
marcus-oscarsson Oct 6, 2023
4d4442b
[skip ci] Bumped minor version
marcus-oscarsson Oct 6, 2023
b8cd9ef
pre-commit: fix black formatting
elmjag Oct 9, 2023
9fb98f6
pre-commit: add missing new lines
elmjag Oct 9, 2023
a26b6fe
Merge pull request #802 from elmjag/fix-pre-commit
marcus-oscarsson Oct 9, 2023
519fb89
[skip ci] Bumped minor version
marcus-oscarsson Oct 9, 2023
b23f551
Fixed two typos
mattclarke Oct 10, 2023
ee03146
Fix bad link in `CONTRIBUTING.md`
fabcor-maxiv Oct 13, 2023
84843f5
Merge pull request #805 from fabcor-maxiv/fix-link-contributing-md
marcus-oscarsson Oct 13, 2023
bee4273
[skip ci] Bumped minor version
marcus-oscarsson Oct 13, 2023
b9dc2df
fix sardana attribute limits
meguiraun Oct 16, 2023
7457f2c
blacking
meguiraun Oct 17, 2023
fbfa674
Merge pull request #803 from mattclarke/mattclarke-typo-fix
rhfogh Oct 17, 2023
e832964
[skip ci] Bumped minor version
marcus-oscarsson Oct 17, 2023
14e761d
Moved logic from mxcube-web to mxcubcore
marcus-oscarsson Oct 17, 2023
f899473
Merge pull request #807 from mxcube/sardana_limits
marcus-oscarsson Oct 17, 2023
5c01eee
[skip ci] Bumped minor version
marcus-oscarsson Oct 17, 2023
d23315c
Add doc generated from code and docstrings
fabcor-maxiv Oct 13, 2023
8261d86
Merge pull request #806 from fabcor-maxiv/add-doc-code-docstrings
marcus-oscarsson Oct 17, 2023
b570a9f
[skip ci] Bumped minor version
marcus-oscarsson Oct 17, 2023
dc25a7a
Merge pull request #808 from mxcube/mo-bl-actions
marcus-oscarsson Oct 17, 2023
397df83
[skip ci] Bumped minor version
marcus-oscarsson Oct 17, 2023
0af1803
Set *Sphinx* doc theme to *furo*
fabcor-maxiv Oct 18, 2023
24aba83
Merge pull request #810 from fabcor-maxiv/set-sphinx-doc-theme-furo
marcus-oscarsson Oct 19, 2023
e36206b
[skip ci] Bumped minor version
marcus-oscarsson Oct 19, 2023
3570ac4
Added optoin to avoid characterisation sweeps during mock tests
rhfogh Oct 6, 2023
7aa8d44
Refactored transmission calculation, fixing MASSIF1 bug
rhfogh Oct 19, 2023
d1f7b01
Minor cleanup and debugs; GPhL version update
rhfogh Oct 20, 2023
ad98d43
Minor fixes
rhfogh Oct 23, 2023
f57fcea
Minor fixes
rhfogh Oct 23, 2023
fe9949a
Bug fix in transmission handling
rhfogh Oct 24, 2023
b30db50
Merge pull request #811 from rhfogh/rhfogh_develop
marcus-oscarsson Oct 26, 2023
7f6145f
[skip ci] Bumped minor version
marcus-oscarsson Oct 26, 2023
a1aa5af
add documentation URL to pyproject specifications
elmjag Nov 1, 2023
d5f1571
Merge pull request #814 from elmjag/add-docs-url
marcus-oscarsson Nov 2, 2023
e26413e
[skip ci] Bumped minor version
marcus-oscarsson Nov 2, 2023
c037aaa
Updated and cleaned install machinery and removed docker references
rhfogh Oct 27, 2023
96bb9f8
Added GPhL UI test mode bypassing need for simulated images
rhfogh Oct 30, 2023
316376a
Minor fix and cleaned up config files
rhfogh Oct 31, 2023
3f47b93
Added test-from-input-file and skip_collection for testing
rhfogh Nov 5, 2023
80ae4c5
Merge pull request #813 from rhfogh/rhfogh_develop
rhfogh Nov 7, 2023
7be9f05
[skip ci] Bumped minor version
marcus-oscarsson Nov 7, 2023
d21c66c
Schema definition should not well defined
Nov 7, 2023
565c9b8
Add Field properties type and enum
Nov 7, 2023
da13861
Add hidden filed to identify workflow
Nov 13, 2023
39da3bf
ISARA maint hardware object
elmjag Aug 24, 2023
3431c33
install pytango when running tests
elmjag Nov 13, 2023
be49e6d
CI: drop lint step from tests action
elmjag Nov 14, 2023
a02d12a
Merge pull request #817 from elmjag/no-lint-in-tests
marcus-oscarsson Nov 14, 2023
6a49e37
[skip ci] Bumped minor version
marcus-oscarsson Nov 14, 2023
8b92720
Cleanup and documentation.
Nov 15, 2023
d90e21a
Fix typo.
Nov 15, 2023
220b202
Merge pull request #815 from mxcube/jb-rasmus-gphl
marcus-oscarsson Nov 16, 2023
c767d1b
[skip ci] Bumped minor version
marcus-oscarsson Nov 16, 2023
02173c6
Merge pull request #818 from mxcube/mach_info
marcus-oscarsson Nov 16, 2023
119e1da
[skip ci] Bumped minor version
marcus-oscarsson Nov 16, 2023
a9a58ae
Merge pull request #816 from elmjag/isara-maint
marcus-oscarsson Nov 17, 2023
ad09e3b
[skip ci] Bumped minor version
marcus-oscarsson Nov 17, 2023
f21a397
Remove `cancel-in-progress` in `pages` workflow
fabcor-maxiv Nov 21, 2023
c3434d3
Merge pull request #820 from fabcor-maxiv/remove-pages-workflow-concu…
marcus-oscarsson Nov 21, 2023
f6b95b2
[skip ci] Bumped minor version
marcus-oscarsson Nov 21, 2023
595156d
Added configuration values used by MXCuBE-WEB previously stored in a …
marcus-oscarsson Nov 22, 2023
b3338fa
Merge pull request #821 from mxcube/mo-config-values
marcus-oscarsson Nov 23, 2023
3e2c9dd
[skip ci] Bumped minor version
marcus-oscarsson Nov 23, 2023
41eeca6
sardana motors: handle limit 0.0 correctly
elmjag Dec 4, 2023
0878ed9
Merge pull request #825 from elmjag/sardana_limit_0
marcus-oscarsson Dec 4, 2023
3a21201
[skip ci] Bumped minor version
marcus-oscarsson Dec 4, 2023
804a172
README: link to developer docs
elmjag Dec 4, 2023
840b293
Merge pull request #827 from elmjag/readme
fabcor-maxiv Dec 11, 2023
14d2004
[skip ci] Bumped minor version
marcus-oscarsson Dec 11, 2023
6c2f9b2
Created AbstractAuthenticator and made necessary updates for the Ldap…
marcus-oscarsson Nov 30, 2023
1ba8baa
Added missing files
marcus-oscarsson Dec 12, 2023
fa5dfe4
Fixed typos
marcus-oscarsson Dec 12, 2023
9be5ce9
[skip ci] Bumped minor version
marcus-oscarsson Dec 12, 2023
bb8330e
Revert "Fixed typos"
marcus-oscarsson Dec 12, 2023
5ae09b8
Revert "Added missing files"
marcus-oscarsson Dec 12, 2023
a6809a4
Revert "Created AbstractAuthenticator and made necessary updates for …
marcus-oscarsson Dec 12, 2023
23dbee5
[skip ci] Bumped minor version
marcus-oscarsson Dec 12, 2023
d728520
Syntax and typo fix
marcus-oscarsson Dec 12, 2023
a0e1e17
Using authenticate and not login
marcus-oscarsson Dec 12, 2023
0a146ad
[skip ci] Bumped minor version
marcus-oscarsson Dec 12, 2023
cc17421
Minor fixes
rhfogh Nov 10, 2023
9abf5ae
Undo incorrect fix
rhfogh Nov 10, 2023
45205c2
Ported dose calc, recentring from P14, fixed interleave/wedge_width
rhfogh Nov 16, 2023
444e27f
Fixed diffractcal strategy selection
rhfogh Nov 17, 2023
d6a7d7e
Fixed transcal strategy selection and recen.nml file handling
rhfogh Nov 17, 2023
69111cd
Adapted to latest mxcubecore develop changes from Jean-Baptiste
rhfogh Nov 18, 2023
7d115d1
Adapted to latest mxcubecore develop, and changed GUI signal to funct…
rhfogh Nov 20, 2023
38d246e
Removed wf_type field as no longer needed in mxcubeweb
rhfogh Nov 23, 2023
63c887b
Rejigged transcal OK/Cancel signal
rhfogh Dec 8, 2023
9712988
Merge pull request #819 from rhfogh/rhfogh_develop
rhfogh Dec 13, 2023
cec92c8
[skip ci] Bumped minor version
marcus-oscarsson Dec 13, 2023
4d877c0
Created AbstractAuthenticator and made necessary updates for the Ldap…
marcus-oscarsson Nov 30, 2023
3166409
Fixed typos
marcus-oscarsson Dec 12, 2023
8fb5ce6
[skip ci] Bumped minor version
marcus-oscarsson Dec 15, 2023
98bacad
Update documentation pages
fabcor-maxiv Jan 10, 2024
ef1004c
[skip ci] Bumped minor version
marcus-oscarsson Jan 15, 2024
f62ee8a
Fix `.readthedocs.yaml`
fabcor-maxiv Jan 17, 2024
63610f0
Merge pull request #840 from fabcor-maxiv/fix-readthedocs
fabcor-maxiv Jan 17, 2024
ee3cd98
[skip ci] Bumped minor version
marcus-oscarsson Jan 17, 2024
f9f20fb
remove ispyb-client package from dependencies
elmjag Jan 17, 2024
f34b63f
[skip ci] Bumped minor version
marcus-oscarsson Jan 18, 2024
60a6eca
Simplify dependencies
fabcor-maxiv Jan 19, 2024
2f5873e
[skip ci] Bumped minor version
marcus-oscarsson Jan 22, 2024
84cabac
Added test runner script
rhfogh Dec 13, 2023
355b99d
Changed space gorup names from R3, R32 etc. to H3, H32 etc.
rhfogh Dec 15, 2023
1323118
Bug fixes after running the PK test script
rhfogh Jan 11, 2024
e787c97
Updated to newest GPhL workflow and fixed some bugs
rhfogh Jan 18, 2024
01122b0
Updaetd al config files to match new workflow invocation
rhfogh Jan 19, 2024
36cee57
[skip ci] Bumped minor version
marcus-oscarsson Jan 22, 2024
249b26e
Update of the TangoShutter class
Jan 10, 2024
730d2d4
Refactoring of the TangoShutter class
Jan 11, 2024
5805d52
minor change to the class instantiation
Jan 11, 2024
0287645
Update mxcubecore/HardwareObjects/TangoShutter.py
HilbertCorsair Jan 11, 2024
47d8ee9
minor change : super().init() instead of AbstractShutter.init(self)
Jan 12, 2024
5764a69
code formatting with black
Jan 12, 2024
7955931
no change in code: pre-commit hooks test
Jan 15, 2024
0197b58
Revert "no change in code: pre-commit hooks test"
Jan 16, 2024
21416d6
cosmetic changes after pylint analysis: rm traing spaces, rm unused i…
Jan 16, 2024
aba6fa8
formating line endings to LF to address mixed line endings issue
Jan 16, 2024
c9cf5a1
new linting
Jan 22, 2024
dcb38fd
[skip ci] Bumped minor version
marcus-oscarsson Jan 22, 2024
c8dc8ac
Use default Python version in pre-commit hooks
fabcor-maxiv Jan 29, 2024
5668661
[skip ci] Bumped minor version
marcus-oscarsson Jan 29, 2024
0b7e602
Fix ReadTheDocs configuration
fabcor-maxiv Feb 5, 2024
b3a3cf4
[skip ci] Bumped minor version
marcus-oscarsson Feb 5, 2024
95ff1fe
remove unused MAXIV hardware objects
elmjag Feb 7, 2024
7cce01f
Clean `conda-environment-dev.yml`
fabcor-maxiv Feb 6, 2024
06842b7
[skip ci] Bumped minor version
marcus-oscarsson Feb 8, 2024
229b4c8
Refactored setting of defaults, partcularly exposure_time and image_w…
rhfogh Feb 6, 2024
71f7af9
Updated configs to match new workflow code
Feb 6, 2024
e05da3f
Updated SPOT.XDS, detector conf and id30b conf to match Eiger9M
rhfogh Feb 9, 2024
d03aca8
Updated JsonParamsGui example files
rhfogh Feb 12, 2024
795ad62
Updated JsonParamsGui updating mechanism, and added schema update fun…
rhfogh Feb 13, 2024
95f3477
Bug fixes
rhfogh Feb 14, 2024
fd8990e
Fixed bug with not calculating 'new_dose' in automation
rhfogh Feb 16, 2024
837e515
Fixed bug in temporary code
rhfogh Feb 16, 2024
3995e66
Changed inconsistent parameter name 'exposure' to 'exposure_time'
rhfogh Feb 16, 2024
4de9892
[skip ci] Bumped minor version
marcus-oscarsson Feb 20, 2024
5e69ba4
Fix end of lines in `doc/json_schema_gui/*.json`
fabcor-maxiv Feb 26, 2024
ebbb954
[skip ci] Bumped minor version
marcus-oscarsson Feb 26, 2024
42833b7
Updated versions of DESY P11 HO (PR 800, 854) (#856)
agruzinov Feb 27, 2024
afa5b9e
[skip ci] Bumped minor version
marcus-oscarsson Feb 27, 2024
8aee1a9
Replaced xrfSpectrum* signals by stateChanged and standard STATES.
Feb 28, 2024
1162592
Add test and configure xrf and beamline configuration.
Feb 28, 2024
90724e1
ESRF specific implementation of the XRF spectum.
Feb 28, 2024
35943cb
Merge branch 'XRF' of https://github.com/mxcube/mxcubecore into XRF
Feb 28, 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: 2 additions & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ tag = True
tag_name = {new_version}
current_version = 0.0.0
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
serialize =
serialize =
{major}.{minor}.{patch}.{release}{dev}
{major}.{minor}.{patch}

[bumpversion:part:release]
optional_value = gamma
values =
values =
dev
rc
gamma
Expand Down
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
2 changes: 1 addition & 1 deletion .github/workflows/coverage_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
sudo apt-get update && sudo apt-get install -y libsasl2-dev libldap2-dev libssl-dev
python -m pip install --upgrade pip
python -m pip install poetry --user
python -m poetry install
python -m poetry install --extras=tango

- name: Run and write pytest
run: |
Expand Down
79 changes: 79 additions & 0 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---


name: "Pages"

concurrency:
group: "pages"

on:
push:
pull_request:

jobs:

"pages-build":

runs-on: "ubuntu-22.04"

steps:

- name: "Checkout"
uses: "actions/checkout@v4" # tested with v4.1.0

- name: "Set up Python 3.8"
uses: "actions/setup-python@v4" # tested with v4.7.0
with:
python-version: "3.8"

- name: "Install OpenLDAP's dev package with apt"
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends --yes libldap2-dev libsasl2-dev

- name: "Install dependencies with Poetry"
run: |
python -m pip install --upgrade pip
python -m pip install poetry --user
python -m poetry install --only=docs,main

- name: "Build documentation with Sphinx"
run: |
poetry run make --directory=./docs/ html

- name: "Upload artifact for GitHub Pages"
# This could potentially be run only when we intend to deploy...
# ...but it can be useful to have the artifact for debugging
# if: "github.ref_name == github.event.repository.default_branch"
uses: "actions/upload-pages-artifact@v2" # tested with v2.0.0
with:
path: "docs/build/html"

"pages-deploy":

if: "github.ref_name == github.event.repository.default_branch"

environment:
name: "github-pages"
url: "${{ steps.deployment.outputs.page_url }}"

needs:
- "pages-build"

permissions:
pages: "write"
id-token: "write"

runs-on: "ubuntu-22.04"

steps:

- name: "Setup GitHub Pages"
uses: "actions/configure-pages@v3" # tested with v3.0.6

- name: "Deploy to GitHub Pages"
id: "deployment"
uses: "actions/deploy-pages@v2" # tested with 2.0.4


... # EOF
7 changes: 3 additions & 4 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.7
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.8"

- name: Install openldap
run: |
Expand All @@ -26,5 +26,4 @@ jobs:

- name: Run Pre-Commit
run: |
# Disable linting for now
# poetry run pre-commit run --all-files
poetry run pre-commit run --all-files
7 changes: 1 addition & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install poetry --user
python -m poetry install

- name: Linting and code quality checks
run: |
# Disabled for now
# python -m poetry run pre-commit run --all-files
python -m poetry install --extras=tango

- name: Test with pytest
run: |
Expand Down
31 changes: 30 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,36 @@
*~
*swp
*swo
.venv/
__pycache__/
*.py[cod]
.Python
env/
build/
develop-eggs/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
dist/
var/
*.egg-info/
.installed.cfg
*.egg

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
*.log

.venv/
.DS_Store
.vscode/
45 changes: 35 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
default_language_version:
python: python3.7
python: python3.8
repos:
- repo: https://github.com/python-poetry/poetry
rev: 1.5.0
hooks:
- id: poetry-check
language_version: python3.7
- id: poetry-lock
language_version: python3.7
# - id: poetry-lock
- repo: https://github.com/myint/autoflake
rev: v1.6.0
hooks:
- id: autoflake
name: Autoflake
exclude: (utils/pyispyb_client/|deprecated/|mxcubecore/HardwareObjects/(ALBA|ASLS|DESY|EMBL|ESRF|LNLS|MAXIV|SOLEIL|ANSTO|Gphl|Arinax))
args:
- --expand-star-imports
- --ignore-init-module-imports
Expand All @@ -25,14 +22,42 @@ repos:
hooks:
- id: black
name: Black
language_version: python3.7
exclude: (utils/pyispyb_client/|deprecated/|mxcubecore/HardwareObjects/(ALBA|ASLS|DESY|EMBL|ESRF|LNLS|MAXIV|SOLEIL|ANSTO|Gphl|Arinax))
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
# - id: trailing-whitespace
# - id: end-of-file-fixer
# exclude: (deprecated/|mxcubecore/HardwareObjects/(ALBA|ASLS|DESY|EMBL|ESRF|LNLS|MAXIV|SOLEIL|ANSTO|Gphl|Arinax))
- id: trailing-whitespace
#
# Exclude files below from trailing-whitespace checks until we get around fixing them.
# This way we can check that all other files are trailing-whitespace clean in CI.
#
exclude: |
(?x)^(
mxcubecore/configuration/.*|
mxcubecore/HardwareObjects/(MotorsNPosition|PlateManipulator|TangoMotor)\.py|
mxcubecore/HardwareObjects/(PlateManipulatorMaintenance|TangoLimaMpegVideo)\.py|
mxcubecore/HardwareObjects/DESY/P11(EDNACharacterisation|BackLight|Shutter|Collect|DetectorCover)\.py|
mxcubecore/HardwareObjects/LNLS/LNLS(PilatusDet|Energy|Diffractometer)\.py|
mxcubecore/HardwareObjects/LNLS/EPICS(Actuator|Motor|NState)\.py|
mxcubecore/HardwareObjects/LNLS/set_transmission_mnc.py|
mxcubecore/HardwareObjects/EMBL/EMBL(Energy|DoorInterlock|OnlineProcessing)\.py|
mxcubecore/HardwareObjects/mockup/(ISPyBClient|Motor|PlateManipulator)Mockup\.py|
mxcubecore/HardwareObjects/abstract/(AbstractXRFSpectrum|sample_changer/Crims)\.py|
mxcubecore/HardwareObjects/Gphl/Transcal2MiniKappa\.py|
mxcubecore/HardwareObjects/SOLEIL/PX2/PX2Resolution\.py|
mxcubecore/HardwareObjects/ESRF/ID29XRFSpectrum\.py
)$
- id: end-of-file-fixer
#
# Exclude files below from end-of-file-fixer checks until we get around fixing them.
# This way we can check that all other files are end-of-file-fixer clean in CI.
#
exclude: |
(?x)^(
mxcubecore/configuration/.*|
mxcubecore/HardwareObjects/mockup/(Shutter|Motor)Mockup\.py|
mxcubecore/HardwareObjects/LNLS/EPICS(NState|Motor)\.py|
mxcubecore/HardwareObjects/EMBL/EMBLOnlineProcessing\.py
)$
- id: check-case-conflict
- id: check-merge-conflict
# exclude files where underlines are not distinguishable from merge conflicts
Expand Down
28 changes: 28 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---


# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details


# This uses custom commands, because we need to install dependencies
# from both Conda and Poetry.


version: 2

build:

os: "ubuntu-22.04"

tools:
python: "mambaforge-22.9"

commands:
- "mamba env create --file conda-environment-dev.yml --force"
- "mamba run --name mxcubecore poetry install --only=docs,main"
- "mamba run --name mxcubecore sphinx-build -T -E -b html -c ./docs/ ./docs/source/ ${READTHEDOCS_OUTPUT}/html/"


... # EOF
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

Loading
Loading