Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates #4

Merged
merged 1 commit into from
Mar 6, 2024
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
2 changes: 1 addition & 1 deletion .devcontainer/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
vscode:
# The 'vscode' service is built from the Dockerfile.
image: dmg00345/python_signal_edges:latest
container_name: python_signal_edges
container_name: python_signal_edges_container
build:
context: ..
# The path to the DockerFile, relative to the root folder of the workspace.
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/full-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# This workflow triggers whenever there is a push on the 'master' branch.
# The 'master' branch should be configured to restrict direct commits.
#
# - Deploy to PiPy: https://github.com/pypa/gh-action-pypi-publish
# The workflow to deploy to PyPI must not exist in a reusable workflow, refer to below for details:
# - Deploy to PyPI: https://github.com/pypa/gh-action-pypi-publish

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/full-staging.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Staging workflow
#
# This workflow triggers whenever a pull request is open, reopened or there are new commits on it
# This workflow triggers whenever a pull request is open, reopened or there are new commits on it.

on: pull_request

Expand Down
8 changes: 0 additions & 8 deletions manage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,6 @@ Set-Content -Path "~/.ssh/known_hosts" -Value "$(ssh-keyscan github.com)" -Force
# Clone repository in the workspace folder.
git clone --recurse-submodules --branch master "[email protected]:dmg0345/python-signal-edges.git" ".";
if ($LASTEXITCODE -ne 0) { throw "Failed to clone repository." }

# Enable desktop lite to be able to configure GUIs.
& "/usr/local/share/desktop-init.sh";
# Enable Dark mode in GUIs in Fluxbox by default.
dconf write "/org/gnome/desktop/interface/color-scheme" "'prefer-dark'";
if ($LASTEXITCODE -ne 0) { throw "Failed to set dark Mode in file manager." }
dconf write /com/gexperts/Tilix/theme-variant "'dark'";
if ($LASTEXITCODE -ne 0) { throw "Failed to set dark Mode in terminals." }
'@;

Start-DevContainer -DevcontainerFile "$DEVCONTAINER_FILE" -ProjectName "$DEVCONTAINER_PROJECT_NAME" `
Expand Down
373 changes: 187 additions & 186 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ keywords = [
packages = [{ include = "signal_edges", from = "src" }]

[tool.poetry.dependencies]
python = ">=3.10"
python = ">=3.10,<4.0"
numpy = ">=1.26.0"
scipy = ">=1.12.0"
matplotlib = ">=3.8.2"
Expand All @@ -55,7 +55,7 @@ sphinx-rtd-theme = "1.3.0"
esbonio = "0.16.1"
pygments = "2.16.1"
nodeenv = "1.8.0"
line_profiler = "4.1.2"
line-profiler = "4.1.2"

## Pylint ##############################################################################################################
# For details about 'tool.pylint' section, refer to:
Expand Down
5 changes: 3 additions & 2 deletions tests/benchmark/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@

.. code-block:: powershell

kernprof --line-by-line `--builtin --outfile './tests/benchmark/benchmark.lprof' './tests/benchmark/benchmark.py';
$output = python -m line_profiler -rmt "./tests/benchmark/benchmark.lprof"; $output = $output -join "`r`n";
kernprof --line-by-line --builtin --outfile './tests/benchmark/benchmark.lprof' './tests/benchmark/benchmark.py';
$output = python -m line_profiler -rmt "./tests/benchmark/benchmark.lprof";
$output = $output -join [System.Environment]::NewLine;
Set-Content -Path "./tests/benchmark/benchmark.txt" -Value "$output" -Force;

The following shows benchmarks for signals of different types using these scripts:
Expand Down
Loading