-
Notifications
You must be signed in to change notification settings - Fork 1
feat: implement basic Alchemist incarnation for scafi3 #145
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #145 +/- ##
==========================================
- Coverage 69.40% 68.14% -1.26%
==========================================
Files 40 40
Lines 487 496 +9
Branches 40 46 +6
==========================================
Hits 338 338
- Misses 149 158 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Hi @nicolasfara! 👋 |
e8d74d3
to
6e82400
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful job! 💯
Just some minors.
alchemist-incarnation-scafi3/src/main/scala/it/unibo/alchemist/Scafi3Incarnation.scala
Outdated
Show resolved
Hide resolved
alchemist-incarnation-scafi3/src/main/scala/it/unibo/alchemist/actions/RunScafi3Program.scala
Outdated
Show resolved
Hide resolved
...3/src/main/scala/it/unibo/scafi/alchemist/device/sensors/AlchemistEnvironmentVariables.scala
Outdated
Show resolved
Hide resolved
def gradient(using Lang): Double = | ||
share(Double.MaxValue): prevValues => | ||
val distances = senseDistance[Double] | ||
val minDistance = prevValues.alignedMap(distances)(_ + _).withoutSelf.min |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we implement some basic operators? Like +, -, etc via type classes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean basic operators over ShareData[T]
(aka Field
)?
aa77201
to
821b061
Compare
821b061
to
aca74dd
Compare
This PR introduces a basic Alchemist incarnation supporting scafi3