Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
f49fc27
Initial pass - spacing and line endings
martinjohndyer Jan 13, 2026
7299a30
Default ruff format
martinjohndyer Jan 13, 2026
ab5c8b9
Default ruff check
martinjohndyer Jan 13, 2026
e13233f
Add blame ignores for linting commits
martinjohndyer Jan 13, 2026
72dc96d
Move source code to src dir
martinjohndyer Jan 14, 2026
e81d2c9
Move from setup.py to pyproject.toml
martinjohndyer Jan 14, 2026
49e939a
Consolidate module functions
martinjohndyer Jan 14, 2026
87113e9
Fix test outputs
martinjohndyer Jan 14, 2026
cd7c210
Merge add_casks with add_spec
martinjohndyer Jan 14, 2026
89aa7e8
Upgrade spec functions
martinjohndyer Jan 14, 2026
249e4fe
Move to data package structure
martinjohndyer Jan 15, 2026
4fe3588
Fix cropping data, redo tests
martinjohndyer Jan 15, 2026
f7eddbe
Simplify loading function
martinjohndyer Jan 15, 2026
a6a7c2e
Move isotope data to CSV
martinjohndyer Jan 16, 2026
6f3b775
Move to using dictionaries for data
martinjohndyer Jan 16, 2026
53123e5
Remove hardcoded max energy
martinjohndyer Jan 20, 2026
d44a07c
Be clear about masses
martinjohndyer Jan 20, 2026
d079221
Tidy spec code
martinjohndyer Jan 20, 2026
233b619
Define reactor proportions once.
martinjohndyer Jan 20, 2026
15b03da
Be consistent with reactor names
martinjohndyer Jan 20, 2026
e86d1fb
Fix output CSVs
martinjohndyer Jan 26, 2026
662b4ce
Move reactor data to CSV
martinjohndyer Jan 26, 2026
498000d
Redo flux functions
martinjohndyer Jan 26, 2026
ed89036
Move functions around
martinjohndyer Jan 26, 2026
42db872
Rename and move modules
martinjohndyer Jan 26, 2026
8a4616e
Remove unused code
martinjohndyer Feb 2, 2026
ad2b6a5
Tidy sample function
martinjohndyer Feb 2, 2026
7d4ce40
Start tidying command_line script
martinjohndyer Feb 2, 2026
359cbc4
Tidy script and make into entrypoint
martinjohndyer Feb 2, 2026
6f79c46
Add command line args
martinjohndyer Feb 3, 2026
93966dd
Update commandline tests, remove plotting
martinjohndyer Feb 3, 2026
2e2ee75
Add more tests
martinjohndyer Feb 3, 2026
d7898c7
Move activity function to physics module
martinjohndyer Feb 3, 2026
1891300
Increase test coverage
martinjohndyer Feb 3, 2026
c79b10a
Review docstrings
martinjohndyer Feb 3, 2026
87b7b04
Add type annotations
martinjohndyer Feb 3, 2026
d0e0848
More misc tidying
martinjohndyer Feb 9, 2026
188f23b
Update metadata
martinjohndyer Feb 9, 2026
567395a
Add ruff workflow
martinjohndyer Feb 9, 2026
1c3fac7
Move sample to spec.py
martinjohndyer Feb 9, 2026
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 .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# major linting
e92002c91dde35bc0ee6abfc16062fc545f31aaf
a846ea7361c3e3c86b609d0657e16b8d9fd9b1a4
8 changes: 8 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Ruff
on: [ push, pull_request ]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: astral-sh/ruff-action@v3
File renamed without changes.
87 changes: 87 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "snf_simulations"
version = "0.1.0"
description = "Simulate antineutrino spectra for different compositions of spent nuclear fuel."
authors = [
{name = "Zuzanna Leliwa", email = "zleliwa1@sheffield.ac.uk"},
{name = "Abigail Power", email = "apower3@sheffield.ac.uk"},
{name = "Liz Kneale", email = "e.kneale@sheffield.ac.uk"},
{name = "Martin Dyer", email = "martin.dyer@sheffield.ac.uk"},
]
maintainers = [
{name = "Liz Kneale", email = "e.kneale@sheffield.ac.uk"},
]
keywords = [
"nuclear",
"antineutrino",
"spectrum",
]
classifiers = [
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Physics",
]
readme = "README.md"
license = "BSD-3-Clause"
license-files = [
'LICENSE.txt'
]
requires-python = ">=3.10"
dependencies = [
"numpy",
# "ROOT" not on PyPI, so not listed here, but is required
]

[project.scripts]
snf-sim = "snf_simulations.scripts.command_line:run"

[project.urls]
homepage = "https://github.com/ekneale/SNF-simulations"
documentation = "https://github.com/ekneale/SNF-simulations" # TODO
repository = "https://github.com/ekneale/SNF-simulations"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
namespaces = true
where = ["src"]

[tool.setuptools.package-data]
"snf_simulations.data.spec_data" = ["*.txt"]

[tool.ruff]
line-length = 88

[tool.ruff.lint]
select = [
"E", # pycodestyle (errors)
"F", # Pyflakes
"PL", # pylint
"UP", # pyupgrade
"B", # flake8-bugbear
"S", # flake8-bandit
"SIM", # flake8-simplify
"I", # isort
"ANN", # Type annotation rules
"D", # pydocstyle
]
ignore = [
"D203", # Ignored for Google style docstrings
"D213", # Ignored for Google style docstrings
]

# [tool.ty.rules]
# Too many errors from ROOT, I think https://github.com/astral-sh/ruff/pull/23122
# should fix it once it's released.
# See also https://github.com/astral-sh/ty/issues/487.
12 changes: 0 additions & 12 deletions setup.py

This file was deleted.

12 changes: 0 additions & 12 deletions snf_simulations/add_casks.py

This file was deleted.

23 changes: 0 additions & 23 deletions snf_simulations/add_spec.py

This file was deleted.

38 changes: 0 additions & 38 deletions snf_simulations/command_line.py

This file was deleted.

97 changes: 0 additions & 97 deletions snf_simulations/define_proportions.py

This file was deleted.

106 changes: 0 additions & 106 deletions snf_simulations/flux.py

This file was deleted.

Loading