Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3fb7009
Edit to appease linter
jrsmith3 Apr 13, 2025
1fd1547
Ruff automated formatting
jrsmith3 Apr 13, 2025
d349988
Fix linter errors
jrsmith3 Apr 13, 2025
3fd39f7
Ignore PLC0414 for __init__.py
jrsmith3 Apr 13, 2025
da7a219
Ignore some linter rules for sphinx config
jrsmith3 Apr 13, 2025
36b1a43
Fix linter error
jrsmith3 Apr 13, 2025
6cd269f
Suppress unhelpful linter messages
jrsmith3 Apr 13, 2025
a8a8c2e
Suppress linter message
jrsmith3 Apr 13, 2025
12f73fc
Suppress linter message
jrsmith3 Apr 13, 2025
fb39a68
Remove trailing whitespace
jrsmith3 Apr 13, 2025
0dd2bee
Fix linter error
jrsmith3 Apr 13, 2025
e1e2684
Suppress linter message
jrsmith3 Apr 13, 2025
f8304fc
Fix linter error
jrsmith3 Apr 13, 2025
916115b
Fix linter error F841
jrsmith3 Apr 13, 2025
27bc9a8
Fix linter error PT006
jrsmith3 Apr 13, 2025
55b8314
Suppress linter message
jrsmith3 Apr 13, 2025
8f637ec
Ignore S101 for tests
jrsmith3 Apr 13, 2025
b7dfcef
Fix linter error
jrsmith3 Apr 13, 2025
819f272
Fix linter error
jrsmith3 Apr 13, 2025
86c50a5
Fix linter error RET504
jrsmith3 Apr 13, 2025
a3bd981
Suppress linter error
jrsmith3 Apr 13, 2025
69aaaeb
Add fixes suggested by ruff
jrsmith3 Apr 13, 2025
5ad3174
Add ruff check step
jrsmith3 Apr 13, 2025
1c64c76
Suppress INP001 for files in test directory
jrsmith3 Apr 13, 2025
1f09b09
Fix PT011 linter errors
jrsmith3 Apr 15, 2025
26252b4
Exclude version file from formatting
jrsmith3 Apr 15, 2025
696394d
Skip formatting
jrsmith3 Apr 15, 2025
d912422
Fix exclude section
jrsmith3 Apr 15, 2025
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: 3 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- name: Test package
run: hatch test

- name: Lint package
run: hatch fmt --check

- name: Build package
run: hatch build

Expand Down
23 changes: 8 additions & 15 deletions doc/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# coding=utf-8
import ibei


# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
Expand All @@ -21,9 +19,9 @@

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

project = 'ibei'
copyright = '2022, Joshua Ryan Smith'
author = 'Joshua Ryan Smith'
project = "ibei"
copyright = "2022, Joshua Ryan Smith"
author = "Joshua Ryan Smith"
version = ibei.__version__


Expand All @@ -32,22 +30,17 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.mathjax',
'sphinx.ext.napoleon',
'sphinxcontrib.bibtex'
]
extensions = ["sphinx.ext.autodoc", "sphinx.ext.mathjax", "sphinx.ext.napoleon", "sphinxcontrib.bibtex"]

# Configuration for `autodoc`.
autodoc_member_order = "bysource"


# Configuration for `sphinxcontrib-bibtex`.
bibtex_bibfiles = ['bib.bib']
bibtex_bibfiles = ["bib.bib"]

# 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.
Expand All @@ -60,10 +53,10 @@
# 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 = "sphinx_rtd_theme"


# 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 = ["_static"]
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,11 @@ source = "vcs"

[tool.hatch.version.raw-options]
local_scheme = "no-local-version"

[tool.ruff]
exclude = ["src/ibei/_version.py"]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["PLC0414"]
"doc/conf.py" = ["INP001", "A001"]
"test/test*" = ["S101", "INP001"]
15 changes: 8 additions & 7 deletions src/ibei/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# coding=utf-8
"""
r"""
Base Library (:mod:`ibei`)
==========================

Expand Down Expand Up @@ -27,7 +26,7 @@
and given by

.. math::
G_{m}(T, \mu) = \\frac{2 \pi}{h^{3} c^{2}} \int_{0}^{\infty} E^{m} \\frac{1}{\exp(\\frac{E-\mu}{kT}) - 1} dE
G_{m}(T, \mu) = \frac{2 \pi}{h^{3} c^{2}} \int_{0}^{\infty} E^{m} \frac{1}{\exp(\frac{E-\mu}{kT}) - 1} dE

(a glossary of symbols is given at the end of the docstring). The full
Bose-Einstein integral can be expressed as a sum of an
Expand All @@ -40,12 +39,12 @@
where

.. math::
G_{m} (E_{g}, T, \mu) = \\frac{2 \pi}{h^{3} c^{2}} \int_{E_{g}}^{\infty} E^{m} \\frac{1}{\exp(\\frac{E-\mu}{kT}) - 1} dE
G_{m} (E_{g}, T, \mu) = \frac{2 \pi}{h^{3} c^{2}} \int_{E_{g}}^{\infty} E^{m} \frac{1}{\exp(\frac{E-\mu}{kT}) - 1} dE

and

.. math::
g_{m} (E_{g}, T, \mu) = \\frac{2 \pi}{h^{3} c^{2}} \int_{0}^{E_{g}} E^{m} \\frac{1}{\exp(\\frac{E-\mu}{kT}) - 1} dE
g_{m} (E_{g}, T, \mu) = \frac{2 \pi}{h^{3} c^{2}} \int_{0}^{E_{g}} E^{m} \frac{1}{\exp(\frac{E-\mu}{kT}) - 1} dE

This module provides functionality to compute each integral given
above via the :class:`BEI` class.
Expand All @@ -62,9 +61,11 @@
:math:`k`: Boltzmann's constant
"""

from .models import BEI, SQSolarcell, DeVosSolarcell
from ibei.models import BEI as BEI
from ibei.models import DeVosSolarcell as DeVosSolarcell
from ibei.models import SQSolarcell as SQSolarcell

try:
from ._version import __version__
from ibei._version import __version__
except ModuleNotFoundError:
__version__ = ""
Loading
Loading