Skip to content

Commit 3fb31fd

Browse files
authored
docs move API changes to changelog (#34)
Co-authored-by: Geevarghese George <4496097+thatgeeman@users.noreply.github.com>
1 parent a68ce1a commit 3fb31fd

6 files changed

Lines changed: 45 additions & 50 deletions

File tree

README.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,6 @@
33

44
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
55

6-
### Version 0.5 API changes
7-
8-
Python 3.8 remains the supported development and CI runtime. Bounding
9-
box parsing now accepts a single dictionary, a list of dictionaries, a
10-
JSON string, Python numeric coordinates, and NumPy numeric coordinates.
11-
A dictionary without a label receives the label `"unknown"`:
12-
13-
``` python
14-
from pybx.basics import get_bx
15-
16-
box = get_bx({"x_min": 130, "y_min": 63, "x_max": 225, "y_max": 180})
17-
box.label
18-
```
19-
20-
Inputs are validated as Pascal VOC boxes: exactly four coordinates and
21-
an optional string or integer label, non-negative coordinates, and
22-
maxima greater than minima. For explicit construction, use
23-
[`bbx`](https://thatgeeman.github.io/pybx/basics.html#bbx) for
24-
coordinate lists,
25-
[`dbx`](https://thatgeeman.github.io/pybx/basics.html#dbx) for
26-
dictionaries, and
27-
[`jbx`](https://thatgeeman.github.io/pybx/basics.html#jbx) for JSON
28-
strings or dictionaries. The former `lbx` alias has been removed; use
29-
[`bbx`](https://thatgeeman.github.io/pybx/basics.html#bbx) instead.
30-
31-
`Bx.xywh()` and `Bx.yolo()` now include the label as the fifth value in
32-
their returned box. IoU values retain full floating-point precision.
33-
346
[![PyPI
357
version](https://badge.fury.io/py/pybx.svg)](https://badge.fury.io/py/pybx)
368
[![Open In

nbs/01_basics.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Basic objects\n",
88
"\n",
9-
"> Basic object types and methods utilized in `pybx`"
9+
"> Basic object types and methods used in PyBx"
1010
]
1111
},
1212
{

nbs/02_utils.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Utilities\n",
88
"\n",
9-
"> Utility functions used in `pybx` to calculate anchor boxes, among others."
9+
"> Utility functions used in PyBx to calculate anchor boxes, among others."
1010
]
1111
},
1212
{

nbs/07_changelog.ipynb

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Changelog\n"
8+
]
9+
},
10+
{
11+
"cell_type": "markdown",
12+
"metadata": {},
13+
"source": [
14+
"## 0.5.0\n",
15+
"\n",
16+
"### API changes\n",
17+
"\n",
18+
"Python 3.8 remains the supported development and CI runtime. Bounding box parsing now accepts a single dictionary, a list of dictionaries, a JSON string, Python numeric coordinates, and NumPy numeric coordinates. A dictionary without a label receives the label `\"unknown\"`:\n",
19+
"\n",
20+
"```python\n",
21+
"from pybx.basics import get_bx\n",
22+
"\n",
23+
"box = get_bx({\"x_min\": 130, \"y_min\": 63, \"x_max\": 225, \"y_max\": 180})\n",
24+
"box.label\n",
25+
"```\n",
26+
"\n",
27+
"Inputs are validated as Pascal VOC boxes: exactly four coordinates and an optional string or integer label, non-negative coordinates, and maxima greater than minima. For explicit construction, use `bbx` for coordinate lists, `dbx` for dictionaries, and `jbx` for JSON strings or dictionaries. The former `lbx` alias has been removed; use `bbx` instead.\n",
28+
"\n",
29+
"`Bx.xywh()` and `Bx.yolo()` now include the label as the fifth value in their returned box. IoU values retain full floating-point precision.\n"
30+
]
31+
}
32+
],
33+
"metadata": {
34+
"kernelspec": {
35+
"display_name": "pybx-kernel",
36+
"language": "python",
37+
"name": "pybx-kernel"
38+
}
39+
},
40+
"nbformat": 4,
41+
"nbformat_minor": 2
42+
}

nbs/index.ipynb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,6 @@
77
"# PyBx\n"
88
]
99
},
10-
{
11-
"cell_type": "markdown",
12-
"metadata": {},
13-
"source": [
14-
"### Version 0.5 API changes\n",
15-
"\n",
16-
"Python 3.8 remains the supported development and CI runtime. Bounding box parsing now accepts a single dictionary, a list of dictionaries, a JSON string, Python numeric coordinates, and NumPy numeric coordinates. A dictionary without a label receives the label `\"unknown\"`:\n",
17-
"\n",
18-
"```python\n",
19-
"from pybx.basics import get_bx\n",
20-
"\n",
21-
"box = get_bx({\"x_min\": 130, \"y_min\": 63, \"x_max\": 225, \"y_max\": 180})\n",
22-
"box.label\n",
23-
"```\n",
24-
"\n",
25-
"Inputs are validated as Pascal VOC boxes: exactly four coordinates and an optional string or integer label, non-negative coordinates, and maxima greater than minima. For explicit construction, use `bbx` for coordinate lists, `dbx` for dictionaries, and `jbx` for JSON strings or dictionaries. The former `lbx` alias has been removed; use `bbx` instead.\n",
26-
"\n",
27-
"`Bx.xywh()` and `Bx.yolo()` now include the label as the fifth value in their returned box. IoU values retain full floating-point precision.\n"
28-
]
29-
},
3010
{
3111
"cell_type": "markdown",
3212
"metadata": {},

nbs/sidebar.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ website:
99
- 04_sample.ipynb
1010
- 05_vis.ipynb
1111
- 06_excepts.ipynb
12+
- 07_changelog.ipynb

0 commit comments

Comments
 (0)