Skip to content

Commit 68b3631

Browse files
authored
Version boosted to 0.0.14 (#27)
* Version boosted to 0.0.14 * removd benchmark and tests from package * Cleanup * updated benchmark
1 parent e6be409 commit 68b3631

File tree

6 files changed

+18
-51
lines changed

6 files changed

+18
-51
lines changed

.github/workflows/upload_to_pypi.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ jobs:
2222
TWINE_USERNAME: __token__
2323
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
2424
run: |
25+
rm -rf tests benchmark
2526
python -m build
2627
twine upload dist/*

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ repos:
5353
# hooks:
5454
# - id: markdownlint
5555
- repo: https://github.com/tox-dev/pyproject-fmt
56-
rev: "2.2.0"
56+
rev: "2.2.1"
5757
hooks:
5858
- id: pyproject-fmt
5959
additional_dependencies: ["tomli"]
6060
- repo: https://github.com/astral-sh/ruff-pre-commit
6161
# Ruff version.
62-
rev: v0.5.5
62+
rev: v0.6.2
6363
hooks:
6464
# Run the linter.
6565
- id: ruff
@@ -68,7 +68,7 @@ repos:
6868
# Run the formatter.
6969
- id: ruff-format
7070
- repo: https://github.com/pre-commit/mirrors-mypy
71-
rev: v1.11.0
71+
rev: v1.11.2
7272
hooks:
7373
- id: mypy
7474
files: ^albucore/

Benchmark.md

-43
This file was deleted.

albucore/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = "0.0.13"
1+
__version__ = "0.0.14"
22

33
from .functions import *

benchmark.sh

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/bash
22

3+
# Check if the data directory is provided as an argument
4+
if [ $# -eq 0 ]; then
5+
echo "Usage: $0 <data_directory>"
6+
exit 1
7+
fi
8+
9+
# Store the data directory path from the command-line argument
10+
data_dir="$1"
11+
312
# Define the array of channel values
413
channels=(1 3 5)
514

@@ -10,7 +19,7 @@ types=("uint8" "float32")
1019
for ch in "${channels[@]}"; do
1120
# Nested loop over each image type
1221
for type in "${types[@]}"; do
13-
# Command to run your program, e.g., a Python script
14-
python -m benchmark.benchmark --num_channels $ch --img_type $type --markdown -n 2000 --show-std -r 5 -d /home/vladimir/workspace/evo970/data/Imagenet1k/ILSVRC2015/Data/CLS-LOC/val
22+
# Command to run your program, using the provided data directory
23+
python -m benchmark.benchmark --num_channels $ch --img_type $type --markdown -n 2000 --show-std -r 5 -d "$data_dir"
1524
done
1625
done

requirements-dev.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
mypy>=1.11.0
1+
mypy>=1.11.2
22
pre_commit>=3.5.0
33
pytest>=8.2.0
44
pytest_cov>=4.1.0
55
pytest_mock>=3.14.0
6-
ruff>=0.5.5
6+
ruff>=0.6.2
77
types-setuptools

0 commit comments

Comments
 (0)