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

Remove jax enums #50

Closed
wants to merge 3 commits into from
Closed
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 navix/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
# under the License.


__version__ = "0.3.12"
__version__ = "0.3.13"
__version_info__ = tuple(int(i) for i in __version__.split(".") if i.isdigit())
3 changes: 1 addition & 2 deletions navix/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@
from .entities import Entities, State
from .components import DISCARD_PILE_COORDS
from .grid import translate, rotate, positions_equal
from jax_enums import Enumerable as Enum


class Directions(Enum):
class Directions:
EAST = 0
SOUTH = 1
WEST = 2
Expand Down
3 changes: 1 addition & 2 deletions navix/entities.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from __future__ import annotations
import dataclasses
from typing import Dict, Tuple, Type, TypeVar
from typing import Dict, Tuple, TypeVar

import jax
from jax import Array
import jax.numpy as jnp
from flax import struct
from jax.random import KeyArray
from jax_enums import Enumerable

from .components import (
Positionable,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ requires = ["setuptools >= 50", "setuptools-scm[toml]>=6.2", "wheel"]
name = "Navix"
dynamic = ["version", "dependencies"]
description = "Accelerated gridworld navigation with JAX for deep reinforcement learning"
requires-python = ">=3.10"
requires-python = ">=3.8"
readme = "README.md"
license = {file = "LICENSE", name = "Apache-2.0"}
authors = [
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ jax
chex
flax
etils
jax_enums