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

33 cleanup after building errors #50

Merged
merged 18 commits into from
Jul 23, 2024
Merged
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 .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ root = true
[*]
indent_style = space
indent_size = 4
end_of_line = crlf
#end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ For advanced usage options, e.g. editing the generated FMU source code, or using

4. In the mlfmu root folder:

Create a Python virtual environment:
Create a Python virtual environment, e.g. (you can also make a conda environment):

```sh
python -m venv .venv
Expand All @@ -163,7 +163,7 @@ For advanced usage options, e.g. editing the generated FMU source code, or using
source .venv/bin/activate
```

Update pip and setuptools:
Install/update pip and setuptools:

```sh
(.venv) $ python -m pip install --upgrade pip setuptools
Expand Down Expand Up @@ -212,6 +212,14 @@ For advanced usage options, e.g. editing the generated FMU source code, or using
(.venv) $ mlfmu build
```

As an alternative, you can run from the main directory:

```sh
mlfmu build --interface-file .\examples\wind_generator\config\interface.json --model-file .\examples\wind_generator\config\example.onnx
```

Note; wherever you run the build command from, is where the FMU file will be created, unless you specify otherwise with `--fmu-path`.

## Meta

All code in mlfmu is DNV intellectual property and for DNV internal use only.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies = [
"dictIO>=0.3.3",
"pydantic>=2.6",
"json-schema-for-humans>=0.4.7",
"onnxruntime>=1.17.0",
"onnxruntime==1.18.1",
"conan>=2.1",
]

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dictIO>=0.3.3
pydantic>=2.6
json-schema-for-humans>=0.4.7
onnxruntime>=1.17.0
onnxruntime==1.18.1
conan>=2.1

# some_package_on_pypi>=0.1.0
Expand Down
Loading
Loading