Skip to content

Commit

Permalink
Thinking on python implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
FadiShawki committed Feb 18, 2024
1 parent ac9f452 commit 393d012
Show file tree
Hide file tree
Showing 6 changed files with 282 additions and 157 deletions.
7 changes: 0 additions & 7 deletions environments/python/examples/example.py
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
from orbitmines import Ray

Ray.none()

initial = Ray.boolean().orbit().size(2)
terminal = Ray.boolean().orbit().size(2)

10 changes: 10 additions & 0 deletions environments/python/orbitmines/example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from ray import Ray

# with python:
a = Ray.boolean
b = Ray.boolean

a, b = Ray.boolean * 2

# TODO: This is only if Ray.boolean is .orbit, otherwise reverse would be different.
b, a = -(Ray.boolean * 2)
Loading

0 comments on commit 393d012

Please sign in to comment.