Skip to content
Open
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
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

# Normalize line endings to LF for all text files, overriding core.autocrlf
* text=auto eol=lf

Expand Down
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

version: 2
updates:
- package-ecosystem: "pip"
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

name: pedpy-ci

on:
Expand Down Expand Up @@ -56,6 +60,15 @@ jobs:
run: |
${{github.workspace}}/scripts/ci.sh

spdx-check:
runs-on: ubuntu-24.04
steps:
- name: Check out repository code
uses: actions/checkout@v7

- name: Check SPDX / REUSE compliance
uses: fsfe/reuse-action@v6


build:
needs: pre-build-checks
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/weekly-dispatch-latest-release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

on:
schedule:
- cron: '0 3 * * 0' # weekly Sunday 03:00 UTC — adjust as needed
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

# Created by https://www.toptal.com/developers/gitignore/api/python,visualstudiocode,pycharm,jupyternotebooks
# Edit at https://www.toptal.com/developers/gitignore?templates=python,visualstudiocode,pycharm,jupyternotebooks

Expand Down
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.17.3
Expand Down Expand Up @@ -60,3 +64,10 @@ repos:
- id: destroyed-symlinks
- id: mixed-line-ending
args: ['--fix=lf']

- repo: https://github.com/fsfe/reuse-tool
rev: v6.2.0
hooks:
- id: reuse
name: Check SPDX headers (reuse)
additional_dependencies: ["charset-normalizer"]
4 changes: 4 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
Expand Down
4 changes: 4 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

cff-version: 1.2.0
message: "If you use PedPy in your work, please cite it as below."

Expand Down
22 changes: 22 additions & 0 deletions LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2022-2025 Forschungszentrum Jülich GmbH, IAS-7
Copyright (c) 2024-2025 Tobias Schrödter

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
22 changes: 22 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

version = 1

[[annotations]]
path = [
"LICENSE",
"*.md",
".github/**",
"docs/**",
"figs/**",
"notebooks/**",
"tests/**",
]
precedence = "closest"
SPDX-FileCopyrightText = [
"2022-2026 Forschungszentrum Jülich GmbH, IAS-7",
"2024-2026 Tobias Schrödter",
]
SPDX-License-Identifier = "MIT"
4 changes: 4 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

coverage:
ignore:
- "pedpy/plotting/*" # Exclude plotting for coverage, as we will not test it
Expand Down
4 changes: 4 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

sphinx~=9.0.4
sphinx-copybutton==0.5.2
sphinx_design==0.7.0
Expand Down
6 changes: 6 additions & 0 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
* SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
* SPDX-License-Identifier: MIT
*/

/* Provided by Sphinx's 'basic' theme, and included in the final set of assets */
@import "../basic.css";

Expand Down
4 changes: 4 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
Expand Down
3 changes: 3 additions & 0 deletions helper/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions helper/create_trajectories.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

import argparse
import pathlib
Expand Down
4 changes: 4 additions & 0 deletions pedpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Top level imports, for easier usage."""

try:
Expand Down
4 changes: 4 additions & 0 deletions pedpy/column_identifier.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Description of the used columns names in PedPy."""

from typing import Final
Expand Down
4 changes: 4 additions & 0 deletions pedpy/data/geometry.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Module handling the geometrical environment of the analysis."""

from dataclasses import dataclass
Expand Down
4 changes: 4 additions & 0 deletions pedpy/data/trajectory_data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Module handling the trajectory data of the analysis."""

from __future__ import annotations
Expand Down
4 changes: 4 additions & 0 deletions pedpy/errors.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Custom exception classes for PedPy.

This module defines a hierarchy of exceptions for clear and specific
Expand Down
4 changes: 4 additions & 0 deletions pedpy/internal/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Module containing internal utilities."""

import functools
Expand Down
4 changes: 4 additions & 0 deletions pedpy/io/crowdit_loader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Load crowd:it trajectories to the internal trajectory data format."""

import pathlib
Expand Down
4 changes: 4 additions & 0 deletions pedpy/io/helper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Helper functions for data loading methods."""

import math
Expand Down
4 changes: 4 additions & 0 deletions pedpy/io/jupedsim_loader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Load JuPedSim trajectories to the internal trajectory data format."""

import pathlib
Expand Down
4 changes: 4 additions & 0 deletions pedpy/io/pathfinder_loader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Load Pathfinder trajectories to the internal trajectory data format."""

import json
Expand Down
4 changes: 4 additions & 0 deletions pedpy/io/ped_data_archive_loader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Load trajectories from the Pedestrian Dynamics Data Archive to the internal trajectory data format."""

import pathlib
Expand Down
4 changes: 4 additions & 0 deletions pedpy/io/trajectory_loader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Load trajectories to the internal trajectory data format."""

import pathlib
Expand Down
4 changes: 4 additions & 0 deletions pedpy/io/vadere_loader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Load Vadere trajectories to the internal trajectory data format."""

import json
Expand Down
4 changes: 4 additions & 0 deletions pedpy/io/viswalk_loader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Load Viswalk trajectories to the internal trajectory data format."""

import pathlib
Expand Down
4 changes: 4 additions & 0 deletions pedpy/methods/acceleration_calculator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Module containing functions to compute accelerations."""

from typing import Optional
Expand Down
4 changes: 4 additions & 0 deletions pedpy/methods/density_calculator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Module containing functions to compute densities."""

from typing import Tuple
Expand Down
4 changes: 4 additions & 0 deletions pedpy/methods/flow_calculator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Module containing functions to compute flows."""

from typing import Tuple
Expand Down
4 changes: 4 additions & 0 deletions pedpy/methods/method_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Helper functions for the analysis methods."""

# pylint: disable=C0302
Expand Down
4 changes: 4 additions & 0 deletions pedpy/methods/profile_calculator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Module containing functions to compute profiles.

For the computation of the profiles the given :class:`~geometry.WalkableArea`
Expand Down
4 changes: 4 additions & 0 deletions pedpy/methods/spatial_analysis.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Module containing functions to compute spatial analysis methods.

For example: the pair distribution function.
Expand Down
4 changes: 4 additions & 0 deletions pedpy/methods/speed_calculator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Module containing functions to compute velocities."""

from typing import Optional
Expand Down
4 changes: 4 additions & 0 deletions pedpy/plotting/plotting.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Module containing plotting functionalities."""

# pylint: disable=C0302
Expand Down
4 changes: 4 additions & 0 deletions pedpy/preprocessing/trajectory_outlier_detection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Provides functions for detecting and correcting anomalies."""

import copy
Expand Down
4 changes: 4 additions & 0 deletions pedpy/preprocessing/trajectory_projector.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

"""Provides functions for projecting trajectories."""

import copy
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

[project]
name = "PedPy"
dynamic = ['version']
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

numpy>=2.1,<3.0
pandas>=3.0,<4.0
Shapely>=2.1,<3.0
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2022-2026 Forschungszentrum Jülich GmbH, IAS-7
# SPDX-FileCopyrightText: 2024-2026 Tobias Schrödter
# SPDX-License-Identifier: MIT

check_for_failure() {
"$@" || failure=1
Expand Down
Loading