Skip to content

Commit 6fa3c60

Browse files
fix: Fix new attribute name in PVCreateConstantAttributePerRegion plugin (#210)
1 parent 168105c commit 6fa3c60

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

geos-pv/src/geos/pv/plugins/generic_processing/PVCreateConstantAttributePerRegion.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,17 @@ def groupRegionAttributeSettingsWidgets( self: Self ) -> None:
155155
self.Modified()
156156

157157
# Settings of the new attribute:
158-
@smproperty.xml( """
159-
<StringVectorProperty
160-
name="AttributeName"
161-
label="The name of the new attribute:"
162-
default_values="newAttribute"
163-
number_of_elements="1"
164-
element_types="2">
165-
<Documentation>
166-
Name of the new attribute to create.
167-
</Documentation>
168-
</StringVectorProperty>
158+
@smproperty.stringvector(
159+
name="AttributeName",
160+
label="The name of the new attribute:",
161+
number_of_elements="1",
162+
default_values="newAttribute",
163+
panel_visibility="default",
164+
)
165+
@smdomain.xml( """
166+
<Documentation>
167+
Name of the new attribute to create.
168+
</Documentation>
169169
""" )
170170
def setAttributeName( self: Self, newAttributeName: str ) -> None:
171171
"""Set attribute name.

0 commit comments

Comments
 (0)