Skip to content

Commit 546892f

Browse files
Remove built-in model files from extension files.
These are still avaialble when building this repository as a MakeCode project.
1 parent 17e92c5 commit 546892f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ the default behaviour of the extension code.
8989

9090
### Built-in ML model
9191

92+
> [!NOTE]
93+
> This flag is only applicable when building this repository as a MakeCode
94+
> project. When used as a MakeCode extension, the files with the built-in
95+
> model will not be included and the build will fail.
96+
9297
The `MLRUNNER_USE_EXAMPLE_MODEL` flag can be used to add into a project an
9398
example model included in this extension.
9499

@@ -98,7 +103,7 @@ example model included in this extension.
98103
shake, circle and still.
99104
- 2: This will include the Keras ADL model converted with ML4F.
100105
This model is too large and might not fit in normal builds without excluding
101-
the BLE SoftDevice, so it's usage is discouraged.
106+
the BLE SoftDevice, so its usage is discouraged.
102107
Classes: Jumping, Running, Standing, Walking
103108

104109
```json

pxt.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
"mlrunner/mlrunner.c",
1616
"mlrunner/mldataprocessor.h",
1717
"mlrunner/mldataprocessor.c",
18-
"mlrunner/filterdataprocessor.c",
19-
"mlrunner/example_model1.h",
20-
"mlrunner/example_dataprocessor.c"
18+
"mlrunner/filterdataprocessor.c"
2119
],
2220
"testFiles": [
2321
"main.ts",
2422
"main.blocks",
2523
"autogenerated.ts",
2624
"testextension.ts",
2725
"testextension.cpp",
26+
"mlrunner/example_model1.h",
27+
"mlrunner/example_dataprocessor.c",
2828
"modeltest/modeltest.h",
2929
"modeltest/modeltest.cpp",
3030
"modeltest/testdata.h"

0 commit comments

Comments
 (0)