Skip to content

Commit cfe1157

Browse files
Vecxt IO (#89)
* . * Simple IO. Tidy Mnist * Nearly have floaty mnist * mnist float * . * [autofix.ci] apply automated fixes * . * [autofix.ci] apply automated fixes * Fix double version * . * [autofix.ci] apply automated fixes * . --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent b6acb42 commit cfe1157

24 files changed

Lines changed: 2238 additions & 99 deletions

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If you are on windows, use `mill`, not `./mill`.
1616

1717
Each module contains it's own build definition in the package.mill file in it's module directory.
1818

19-
- BUILDS: Mill cold compilation takes 2 minutes or so. Stay patient!
19+
- BUILDS: Cold compilation may take 1 minute or so the _first_ time any compilation is run. Subsequent (incremental) compilations are fast.
2020
- Compile specific platforms (e.g. jvm) with `./mill vecxt.jvm.compile` or `./mill vecxt.js.compile` etc.
2121
- Run all tests by following with the same pattern `./mill vecxt.__.test`
2222
- Format code with `./mill mill.scalalib.scalafmt.ScalafmtModule/`. CI will enforce formatting, and will fail if code is not formatted.

build.mill

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ object V:
4848
val jsBSP = false
4949
val nativeBSP = false
5050
val jvmBSP = true
51+
val oslib = mvn"com.lihaoyi::os-lib::0.11.5"
5152
end V
5253

5354
trait VecxtPublishModule extends PublishModule, ScalaModule, ScalafixModule:

experiments/package.mill

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ object `package` extends ScalaModule:
1515
override def forkArgs = super.forkArgs() ++ build.vecIncubatorFlag
1616
// override def mainClass = Some("mnist")
1717

18-
override def moduleDeps = Seq(build.vecxt.jvm, build.vecxtensions.jvm, build.vecxt_re.jvm)
18+
override def moduleDeps = Seq(build.vecxt.jvm, build.vecxtensions.jvm, build.vecxt_re.jvm, build.vecxt_io.jvm)
1919
override def mvnDeps = super.mvnDeps() ++ Seq(
2020
mvn"com.lihaoyi::os-lib::0.10.4",
2121
mvn"io.github.quafadas::scautable::0.0.35",
22-
mvn"io.github.quafadas::dedav4s::0.10.4",
22+
mvn"io.github.quafadas::dedav4s::0.10.5",
2323
mvn"org.apache.logging.log4j:log4j-core:2.24.3" // Required by Apache POI for Excel
2424
)
2525
end `package`
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
{
22
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
3-
"description": "Plot a single pixel at (x, y) with opacity c (0=transparent, 255=opaque).",
3+
"description": "Plot a single pixel at (x, y) with opacity c (0=transparent, 1=opaque).",
44
"data": {
55
"values": [
6-
{"x": 50, "y": 30, "opacity": 255}
6+
{"x": 50, "y": 30, "opacity": 1}
77
]
88
},
99
"mark": {
1010
"type": "rect",
11-
"width": 1,
12-
"height": 1,
11+
"width": 10,
12+
"height": 10,
1313
"color": "black"
1414
},
1515
"encoding": {
16-
"x": {"field": "x", "type": "quantitative"},
17-
"y": {"field": "y", "type": "quantitative"},
16+
"x": {"field": "x", "type": "quantitative", "axis": {"ticks": false, "labels": false, "title": null}},
17+
"y": {"field": "y", "type": "quantitative", "axis": {"ticks": false, "labels": false, "title": null}},
1818
"opacity": {
1919
"field": "opacity",
2020
"type": "quantitative",
21-
"scale": {"domain": [0, 255], "range": [0, 1]}
21+
"scale": {"domain": [0, 1], "range": [0, 1]},
22+
"legend": null
2223
}
2324
},
2425
"width": 28,
25-
"height": 28
26+
"height": 28,
27+
"title": "A Random Pixel Plot"
2628
}

0 commit comments

Comments
 (0)