rccn-gen 1.3.1__py3-none-any.whl → 1.3.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
rccn_gen/systems.py
CHANGED
@@ -974,7 +974,7 @@ class RCCNCommand(Command):
|
|
974
974
|
- If no subtype is provided, a unique one will be assigned automatically
|
975
975
|
- The command's APID is automatically set to match the service's application APID
|
976
976
|
"""
|
977
|
-
if
|
977
|
+
if self.init_kwargs['base'] is None and not any(command.name == 'base' for command in service.commands):
|
978
978
|
print("RCCN-Information: Command \'"+self.init_kwargs['name']+"\' doesn\'t have a base argument and no base command was found in service \'"+service.name+"\'.\nStandard base command will be created with system = \'"+service.name+"\' and type = "+str(service.service_id)+".")
|
979
979
|
self.init_kwargs['base'] = Command(
|
980
980
|
system=service,
|
@@ -983,7 +983,7 @@ class RCCNCommand(Command):
|
|
983
983
|
base='/PUS/pus-tc',
|
984
984
|
assignments={'type': service.service_id}
|
985
985
|
)
|
986
|
-
elif
|
986
|
+
elif self.init_kwargs['base'] is None and any(command.name == 'base' for command in service.commands):
|
987
987
|
print("RCCN-Information: Command \'"+self.init_kwargs['name']+"\' doesn\'t have a \'base\' argument. Existing base command for service \'"+service.name+"\' will be used.")
|
988
988
|
self.init_kwargs['base'] = next(command for command in service.commands if command.name == 'base')
|
989
989
|
if 'system' in self.init_kwargs and isinstance(self.init_kwargs['system'], Service):
|
@@ -991,7 +991,7 @@ class RCCNCommand(Command):
|
|
991
991
|
else:
|
992
992
|
super().__init__(system=service, *self.init_args, **self.init_kwargs)
|
993
993
|
self.assignments['apid'] = self.system.system.apid
|
994
|
-
if not 'subtype' in self.assignments and self.name
|
994
|
+
if not 'subtype' in self.assignments and self.name != 'base':
|
995
995
|
used_subtypes = [command.assignments['subtype'] if 'subtype' in command.assignments else None for command in self.system.rccn_commands()]
|
996
996
|
new_subtype = 1
|
997
997
|
while new_subtype in used_subtypes:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: rccn_gen
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.2
|
4
4
|
Summary: A python based generator for RACCOON OS source files in Rust from yamcs-pymdb config files.
|
5
5
|
Project-URL: Homepage, https://gitlab.com/rccn/pymdb_code_generation
|
6
6
|
Project-URL: Issues, https://gitlab.com/rccn/pymdb_code_generation/issues
|
@@ -1,6 +1,6 @@
|
|
1
1
|
rccn_gen/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
2
2
|
rccn_gen/__init__.py,sha256=rBnqIw3uQk-uBbRh9VnungoTRSr2V0Bqos32xFZ44Eo,168
|
3
|
-
rccn_gen/systems.py,sha256=
|
3
|
+
rccn_gen/systems.py,sha256=vaagjFcQX3PmnylEdi0ThfS_JkBHlIuguUu6VLfn5DE,83907
|
4
4
|
rccn_gen/utils.py,sha256=q5YSmyc3qADNYcycxQJBvrG6Df8CJelL4lhXF-dN_Ms,17016
|
5
5
|
rccn_gen/text_modules/cargo_toml/cargo.txt,sha256=AYjSo3WJE7lhOcJaiNgXP9Y-DXHDIFIt6p42rDTVNVE,427
|
6
6
|
rccn_gen/text_modules/command/command.txt,sha256=8Y-uJilhFLoinftIbn7uKfia9LLMZno2LkoDJ-4Y-9M,345
|
@@ -14,6 +14,6 @@ rccn_gen/text_modules/mod/mod.txt,sha256=BF8LablBE4ddutdl5m0prvpvLdBRejueVOujkyr
|
|
14
14
|
rccn_gen/text_modules/service/command_module_match_cmd.txt,sha256=eVGo6ltuerG37rVxpXtL-JYuLyLW4c0i6NXb5g1_U-A,89
|
15
15
|
rccn_gen/text_modules/service/service.txt,sha256=qTxoOD5i7wH4yFiDn13rOJW9hIZyACA8W3m6UABe22U,695
|
16
16
|
rccn_gen/text_modules/telemetry/telemetry.txt,sha256=Re1d3BfpyXT_CEe7jJzLF3MARik0-J-K98K85iPOE40,193
|
17
|
-
rccn_gen-1.3.
|
18
|
-
rccn_gen-1.3.
|
19
|
-
rccn_gen-1.3.
|
17
|
+
rccn_gen-1.3.2.dist-info/METADATA,sha256=AZYmynW8QvCwT83y5LzL3d9ynFHX8LT9Dc9YVlN6Nns,9911
|
18
|
+
rccn_gen-1.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
19
|
+
rccn_gen-1.3.2.dist-info/RECORD,,
|
File without changes
|