Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v1_feature_branch' into refactor…
Browse files Browse the repository at this point in the history
…-flashloader
  • Loading branch information
rettigl committed Jun 26, 2024
2 parents f2a26b9 + 06a2715 commit ebd2b32
Show file tree
Hide file tree
Showing 48 changed files with 247 additions and 237 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
python-version: 3.9
poetry-version: 1.8.3

- name: Install project dependencies
run: poetry install

# Run benchmakrs
- name: Run benchmarks on python 3.8
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/testing_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
python-version: 3.9
poetry-version: 1.8.3

- name: Install project dependencies
run: poetry install

# Run pytest with coverage report, saving to xml
- name: Run tests on python 3.9
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/testing_multiversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
python-version: ${{matrix.python-version}}
poetry-version: 1.8.3

- name: Install project dependencies
run: poetry install

# Use cached python and dependencies, install poetry
- name: Run tests on python ${{matrix.python-version}}
run: |
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022-2023 OpenCOMPES
Copyright (c) 2022-2024 OpenCOMPES

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _get_project_meta():

pkg_meta = _get_project_meta()
project = str(pkg_meta["name"])
copyright = "2022, OpenCOMPES team"
copyright = "2024, OpenCOMPES team"
author = "OpenCOMPES team"

# The short X.Y version
Expand Down
2 changes: 1 addition & 1 deletion docs/misc/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Development Workflow
3. **Write Tests:** If your contribution introduces new features or fixes a bug, add tests to cover your changes.

4. **Run Tests:** To ensure no funtionality is broken, run the tests:
4. **Run Tests:** To ensure no functionality is broken, run the tests:

.. code-block:: bash
Expand Down
2 changes: 1 addition & 1 deletion docs/misc/maintain.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ To create a release, follow these steps:
c. **If you don't see update on PyPI:**

- Visit the GitHub Actions page and monitor the Release workflow (https://github.com/OpenCOMPES/sed/actions/workflows/release.yml).
- Check if errors occured.
- Check if errors occurred.


**Understanding the Release Workflow**
Expand Down
8 changes: 4 additions & 4 deletions docs/sed/config.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
Config
===================================================
The config module contains a mechanis to collect configuration parameters from various sources and configuration files, and to combine them in a hierachical manner into a single, consistent configuration dictionary.
The config module contains a mechanics to collect configuration parameters from various sources and configuration files, and to combine them in a hierarchical manner into a single, consistent configuration dictionary.
It will load an (optional) provided config file, or alternatively use a passed python dictionary as initial config dictionary, and subsequently look for the following additional config files to load:

* ``folder_config``: A config file of name :file:`sed_config.yaml` in the current working directory. This is mostly intended to pass calibration parameters of the workflow between different notebook instances.
* ``user_config``: A config file provided by the user, stored as :file:`.sed/config.yaml` in the current user's home directly. This is intended to give a user the option for individual configuration modifications of system settings.
* ``system_config``: A config file provided by the system administrator, stored as :file:`/etc/sed/config.yaml` on Linux-based systems, and :file:`%ALLUSERPROFILE%/sed/config.yaml` on Windows. This should provide all necessary default parameters for using the sed processor with a given setup. For an example for an mpes setup, see :ref:`example_config`
* ``user_config``: A config file provided by the user, stored as :file:`.config/sed/config.yaml` in the current user's home directly. This is intended to give a user the option for individual configuration modifications of system settings.
* ``system_config``: A config file provided by the system administrator, stored as :file:`/etc/sed/config.yaml` on Linux-based systems, and :file:`%ALLUSERSPROFILE%/sed/config.yaml` on Windows. This should provide all necessary default parameters for using the sed processor with a given setup. For an example for an mpes setup, see :ref:`example_config`
* ``default_config``: The default configuration shipped with the package. Typically, all parameters here should be overwritten by any of the other configuration files.

The config mechanism returns the combined dictionary, and reports the loaded configuration files. In order to disable or overwrite any of the configuration files, they can be also given as optional parameters (path to a file, or python dictionary).


API
***************************************************
.. automodule:: sed.core.config
.. automobile:: sed.core.config
:members:
:undoc-members:

Expand Down
2 changes: 1 addition & 1 deletion docs/sed/dataset.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Setting the “use_existing” keyword to False allows to download the data in a
Interrupting extraction has similar behavior to download and just continues from where it stopped.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Or if user deletes the extracted documents, it reextracts from zip file
Or if user deletes the extracted documents, it re-extracts from zip file
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

.. code:: python
Expand Down
81 changes: 41 additions & 40 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "sed-processor"
packages = [
{include = "sed"}
]
version = "0.1.10a4"
version = "0.1.10a5"
description = "Single Event Data Frame Processor: Backend to handle photoelectron resolved datastreams"
authors = ["OpenCOMPES team <sed-processor@mpes.science>"]
readme = "README.md"
Expand All @@ -24,7 +24,7 @@ lmfit = ">=1.0.3"
matplotlib = ">=3.5.1"
natsort = ">=8.1.0"
numba = ">=0.55.1"
numpy = ">=1.18"
numpy = ">=1.18, <2.0"
pandas = ">=1.4.1"
psutil = ">=5.9.0"
pynxtools-mpes = ">=0.0.3"
Expand Down
5 changes: 3 additions & 2 deletions sed/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""sed module easy access APIs
"""sed module easy access APIs."""
import importlib.metadata

"""
from .core.processor import SedProcessor

__version__ = importlib.metadata.version("sed-processor")
__all__ = ["SedProcessor"]
Loading

0 comments on commit ebd2b32

Please sign in to comment.