simple-carla 2.5.0__tar.gz → 2.5.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simple_carla
3
- Version: 2.5.0
3
+ Version: 2.5.1
4
4
  Summary: An easy-to-use, object-oriented interface to the carla plugin host.
5
5
  Author-email: Leon Dionne <ldionne@dridesign.sh.cn>
6
6
  Description-Content-Type: text/markdown
@@ -19,7 +19,7 @@ sc-plugin-def = "simple_carla.scripts.sc_plugin_def:main"
19
19
  sc-plugin-info = "simple_carla.scripts.sc_plugin_info:main"
20
20
 
21
21
  [bumpver]
22
- current_version = "2.5.0"
22
+ current_version = "2.5.1"
23
23
  version_pattern = "MAJOR.MINOR.PATCH"
24
24
  commit_message = "Bump version {old_version} -> {new_version}"
25
25
  commit = true
@@ -240,7 +240,7 @@ from carla_backend import (
240
240
  )
241
241
 
242
242
 
243
- __version__ = "2.5.0"
243
+ __version__ = "2.5.1"
244
244
 
245
245
 
246
246
  # -------------------------------------------------------------------
@@ -71,30 +71,35 @@ Output Parameters: {plugin.output_parameter_count}
71
71
  Maker: {plugin.maker}
72
72
  Category: {plugin.category}
73
73
  Label: {plugin.label}
74
- Filename: {plugin.filename}""")
74
+ Filename: {plugin.filename}
75
+ """)
75
76
  for param in plugin.parameters.values():
76
- type_name = 'Boolean' if param.is_boolean \
77
+ param.type_name = 'Boolean' if param.is_boolean \
77
78
  else 'Integer' if param.is_integer \
78
79
  else 'Float'
79
-
80
- print(f"""
81
- Parameter: {param.name}
82
- Symbol: {param.symbol}
83
- Comment: {param.comment}
84
- Group Name: {param.groupName}
85
- Unit: {param.unit}
86
- Enabled: {param.is_enabled}
87
- Type: {type_name}
88
- Min: {param.min}
89
- Max: {param.max}
90
- Step: {param.step}
91
- Automatable: {param.is_automatable}
92
- Read only: {param.is_read_only}
93
- Uses samplerate: {param.uses_samplerate}
94
- Uses scalepoints: {param.uses_scalepoints}
95
- Scale point count: {param.scalePointCount}
96
- Uses custom text: {param.uses_custom_text}
97
- Can be CV controlled: {param.can_be_cv_controlled}""")
80
+ for label, att in [
81
+ ('Parameter: ', 'name'),
82
+ ('Symbol: ', 'symbol'),
83
+ ('Comment: ', 'comment'),
84
+ ('Group Name: ', 'groupName'),
85
+ ('Unit: ', 'unit'),
86
+ ('Enabled: ', 'is_enabled'),
87
+ ('Type: ', 'type_name'),
88
+ ('Min: ', 'min'),
89
+ ('Max: ', 'max'),
90
+ ('Step: ', 'step'),
91
+ ('Automatable: ', 'is_automatable'),
92
+ ('Read only: ', 'is_read_only'),
93
+ ('Uses samplerate: ', 'uses_samplerate'),
94
+ ('Uses scalepoints: ', 'uses_scalepoints'),
95
+ ('Scale point count: ', 'scalePointCount'),
96
+ ('Uses custom text: ', 'uses_custom_text'),
97
+ ('Can be CV controlled:', 'can_be_cv_controlled')
98
+ ]:
99
+ try:
100
+ print(label, getattr(param, att));
101
+ except AttributeError:
102
+ pass
98
103
  self.carla.delete()
99
104
  QApplication.instance().quit()
100
105
 
File without changes
File without changes
File without changes