Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 0 additions & 3 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@ coverage:
precision: 2
round: up
range: "90...100"

ignore:
- "spectrafit/plugins/rixs_visualizer.py"
2 changes: 1 addition & 1 deletion .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Install library
run: poetry install --no-interaction --with dev --all-extras
- name: Test SpectraFit
run: poetry run pytest --diff-symbols --cov=./spectrafit -vv --cov-report=xml --plots
run: poetry run pytest
- name: Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ repos:
- id: mypy
additional_dependencies:
[
types-toml==0.10.8,
types-PyYAML==6.0.11,
types-tabulate==0.8.11,
types-mock==4.0.15,
types-toml==0.10.8.1,
types-PyYAML==6.0.12.3,
types-tabulate==0.9.0.0,
types-mock==5.0.0.2,
numpy==1.23.4,
pydantic==1.10.1,
pytest==6.2.5,
pytest==7.1.3,
]
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0
Expand Down
3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ignore=CVS
# Add files or directories matching the regex patterns to the ignore-list. The
# regex matches against paths and can be in Posix or Windows format.
ignore-paths=^spectrafit/test/.*?,
^spectrafit/api/test/.*?,
^spectrafit/plugins/test/.*?,
^spectrafit/utilities/test/.*?,
^tools/.*?,
Expand Down Expand Up @@ -41,7 +42,7 @@ load-plugins=

# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use.
jobs=1
jobs=0

# When enabled, pylint would attempt to guess common misconfiguration and emit
# user-friendly hints instead of false-positive error messages.
Expand Down
10 changes: 10 additions & 0 deletions docs/api/converter_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@

::: spectrafit.plugins.pkl_visualizer

### RIXS Converter for RIXS data

::: spectrafit.plugins.rixs_converter

On top of the `RIXSConverter` class, the `RIXSVisualizer` class is
available to visualize the RIXS data and provide a method to take
RIXS cuts.

::: spectrafit.plugins.rixs_visualizer

[1]: https://docs.python.org/3/tutorial/datastructures.html#dictionaries
[2]: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html
[3]: https://docs.python.org/3/library/abc.html#abc.ABC
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/example9_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30564,7 +30564,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.10.8 ('.venv': poetry)",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand All @@ -30578,12 +30578,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.8"
"version": "3.10.9 (main, Dec 21 2022, 15:55:14) [Clang 14.0.0 (clang-1400.0.29.202)]"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "49fa1ed9ffd610ea36efaf8272ecb29f95c7b551cdf207b5ecb886cc2cf87275"
"hash": "b199af289ce012bb6a24205fcd5edae736294423f0e29474acbaa2e2fdaf4f82"
}
}
},
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/example9_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.9.14 ('.venv': poetry)",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand All @@ -184,12 +184,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.14"
"version": "3.10.9 (main, Dec 21 2022, 15:55:14) [Clang 14.0.0 (clang-1400.0.29.202)]"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "9b683c2dd857ecbf7076b18804342210473ae98d60576d11d9e2c1f885eb6512"
"hash": "b199af289ce012bb6a24205fcd5edae736294423f0e29474acbaa2e2fdaf4f82"
}
}
},
Expand Down
46 changes: 12 additions & 34 deletions docs/examples/example9_4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -36,7 +36,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -54,7 +54,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -71,44 +71,22 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
" <iframe\n",
" width=\"100%\"\n",
" height=\"650\"\n",
" src=\"http://127.0.0.1:8050/\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" \n",
" ></iframe>\n",
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x28cbf3ca0>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"_app.app_run()"
"# Has to be called before the app is run\n",
"# but is not started in example mode, because it will run forever\n",
"\n",
"# _app.app_run()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
"source": [
"![_](https://github.com/Anselmoo/spectrafit/raw/main/docs/examples/images/Figure_9_4.png)"
]
}
],
"metadata": {
Expand Down
6 changes: 3 additions & 3 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ plugins:
- autorefs
- section-index
- mkdocs-jupyter:
ignore_h1_titles: True
include_source: True
ignore_h1_titles: true
include_source: true
execute: true
- literate-nav:
nav_file: SUMMARY.md
Expand Down Expand Up @@ -173,7 +173,7 @@ nav:
- Reporting: api/reporting_api.md
- Tools: api/tools_api.md
- Data Model: api/data_model_api.md
- Converters: api/converter_api.md
- Converters and Visualizer: api/converter_api.md
- Support:
- Contact: contact.md
- License: license.md
Expand Down
Loading