Skip to content

Commit

Permalink
Add Target, Pass, and Round to top level namespace. (#55)
Browse files Browse the repository at this point in the history
* Add Target, Pass, and Round to top level namespace.

* Update top level namespace to remove redundant target and round modules.
  • Loading branch information
jatkinson1000 authored Jan 28, 2024
1 parent 8271915 commit 116992b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
9 changes: 6 additions & 3 deletions archeryutils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
"""Package providing code for various archery utilities."""

from archeryutils import load_rounds, rounds, targets
from archeryutils.targets import Target
from archeryutils.rounds import Pass, Round
from archeryutils.handicaps import handicap_equations, handicap_functions
from archeryutils import classifications


__all__ = [
"rounds",
"targets",
"Target",
"Pass",
"Round",
"handicap_equations",
"handicap_functions",
"classifications",
Expand Down
14 changes: 7 additions & 7 deletions examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"metadata": {},
"source": [
"## 1. Basic Building Blocks\n",
"The basic building blocks of the archeryutils package are the `targets.Target` and the `rounds.Round` class.\n",
"The basic building blocks of the archeryutils package are the `Target` and the `Round` classes.\n",
"\n",
"### Target\n",
"\n",
Expand Down Expand Up @@ -69,7 +69,7 @@
"metadata": {},
"outputs": [],
"source": [
"my720target = au.targets.Target(\"10_zone\", 122, 70.0)"
"my720target = au.Target(\"10_zone\", 122, 70.0)"
]
},
{
Expand All @@ -87,7 +87,7 @@
"metadata": {},
"outputs": [],
"source": [
"mycompound720target = au.targets.Target(\"10_zone_6_ring\", 80, 50.0)"
"mycompound720target = au.Target(\"10_zone_6_ring\", 80, 50.0)"
]
},
{
Expand All @@ -111,7 +111,7 @@
"metadata": {},
"outputs": [],
"source": [
"myWorcesterTarget = au.targets.Target(\n",
"myWorcesterTarget = au.Target(\n",
" \"Worcester\", diameter=(16, \"inches\"), distance=(20.0, \"yards\"), indoor=True\n",
")"
]
Expand All @@ -131,7 +131,7 @@
"metadata": {},
"outputs": [],
"source": [
"myIFAATarget = au.targets.Target(\"IFAA_field\", diameter=80, distance=(80.0, \"yards\"))"
"myIFAATarget = au.Target(\"IFAA_field\", diameter=80, distance=(80.0, \"yards\"))"
]
},
{
Expand Down Expand Up @@ -174,7 +174,7 @@
"metadata": {},
"outputs": [],
"source": [
"my70mPass = au.rounds.Pass(36, \"10_zone\", 122, 70.0)"
"my70mPass = au.Pass(36, \"10_zone\", 122, 70.0)"
]
},
{
Expand Down Expand Up @@ -222,7 +222,7 @@
"metadata": {},
"outputs": [],
"source": [
"my720Round = au.rounds.Round(\n",
"my720Round = au.Round(\n",
" \"WA 720 (70m)\",\n",
" [my70mPass, my70mPass],\n",
" location=\"Outdoor Target\",\n",
Expand Down

0 comments on commit 116992b

Please sign in to comment.