Skip to content

Commit

Permalink
remove numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
diceroll123 committed Sep 29, 2024
1 parent c98af34 commit 087c160
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 55 deletions.
9 changes: 5 additions & 4 deletions examples/max_ter_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from neofoodclub import NeoFoodClub
from neofoodclub import Modifier, NeoFoodClub

if __name__ == "__main__":
# if you happen to have a valid "loaded" NeoFoodClub URL handy,
Expand All @@ -13,11 +13,12 @@
# generate max TER bets tailored to your bet amount
max_ter_bets = nfc.make_max_ter_bets()

print(nfc.make_url(max_ter_bets))
print(nfc.make_url(bets=max_ter_bets))

# let's say Charity Corner (https://www.jellyneo.net/?go=charity_corner) is back up and you've got the FC perk!
# we can generate 15 bets if you just tell the modifier to do so!
nfc.modifier.cc_perk = True
# nfc.modifier.cc_perk = True
nfc.with_modifier(Modifier(Modifier.CHARITY_CORNER))
max_ter_bets = nfc.make_max_ter_bets()

print(nfc.make_url(max_ter_bets))
print(nfc.make_url(bets=max_ter_bets))
2 changes: 0 additions & 2 deletions neofoodclub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from .neofoodclub import * # noqa
from .probability_model import * # noqa
from .utils import * # noqa

__all__ = ( # noqa
"Math",
Expand All @@ -20,5 +19,4 @@
"Pirate",
"PartialPirate",
"ProbabilityModel",
"utils",
)
28 changes: 0 additions & 28 deletions neofoodclub/utils.py

This file was deleted.

1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
numpy<2.0.0
orjson
python-dateutil
setuptools-rust
Expand Down
1 change: 0 additions & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
coverage
numpy<2.0.0
orjson
pytest
python-dateutil
Expand Down
19 changes: 0 additions & 19 deletions tests/test_neofoodclub.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import pytest

from neofoodclub import Modifier, NeoFoodClub
from neofoodclub.utils import make_max_ter_bets_numpy


def test_nfc_reset(nfc: NeoFoodClub) -> None:
Expand Down Expand Up @@ -289,21 +288,3 @@ def test_error_cases_in_from_url(url: str) -> None:
def test_make_url_kwargs(nfc: NeoFoodClub) -> None:
assert nfc.make_url(include_domain=False) == f"/#round={nfc.round}"
assert nfc.make_url() == f"https://neofood.club/#round={nfc.round}"


def test_make_bets_with_numpy(test_round_data_round_7315: str) -> None:
nfc = NeoFoodClub.from_json(test_round_data_round_7315, bet_amount=8000)
bets = make_max_ter_bets_numpy(nfc)

assert bets.bets_hash == "cauueepukadauujbauuacpauy"


def test_make_bets_with_numpy_reverse(test_round_data_round_7315: str) -> None:
nfc = NeoFoodClub.from_json(
test_round_data_round_7315,
bet_amount=8000,
modifier=Modifier(Modifier.REVERSE),
)
bets = make_max_ter_bets_numpy(nfc)

assert bets.bets_hash == "kwrekuwnemuwieluwsenuwdek"

0 comments on commit 087c160

Please sign in to comment.