From 01585b6ec53666ccd71fc9881bcbc76650c44b4d Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Mon, 1 May 2023 08:40:48 -0700 Subject: [PATCH] docs: fixed example emane model code to properly load platform config --- docs/emane.md | 1 + package/examples/myemane/examplemodel.py | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/emane.md b/docs/emane.md index 33b6419a..a034c63b 100644 --- a/docs/emane.md +++ b/docs/emane.md @@ -184,6 +184,7 @@ class ExampleModel(emanemodel.EmaneModel): :param emane_prefix: configured emane prefix path :return: nothing """ + cls._load_platform_config(emane_prefix) manifest_path = "share/emane/manifest" # load mac configuration mac_xml_path = emane_prefix / manifest_path / cls.mac_xml diff --git a/package/examples/myemane/examplemodel.py b/package/examples/myemane/examplemodel.py index c33ac166..bd5102e4 100644 --- a/package/examples/myemane/examplemodel.py +++ b/package/examples/myemane/examplemodel.py @@ -64,6 +64,7 @@ class ExampleModel(emanemodel.EmaneModel): :param emane_prefix: configured emane prefix path :return: nothing """ + cls._load_platform_config(emane_prefix) manifest_path = "share/emane/manifest" # load mac configuration mac_xml_path = emane_prefix / manifest_path / cls.mac_xml