[nodes] S-T: Harmonize and improve labels and descriptions

Use CamelCase for all labels, always end descriptions with periods, and
replace the mixed use of single and double quotes with double quotes
only.
This commit is contained in:
Candice Bentéjac 2023-06-16 10:32:01 +02:00
parent 41280dc22a
commit c498f48e1e
12 changed files with 798 additions and 777 deletions

View file

@ -13,23 +13,23 @@ Spheres can be automatically detected or manually defined in the interface.
inputs = [
desc.File(
name='input',
name="input",
label="SfMData",
description='Input SfMData file.',
value='',
description="Input SfMData file.",
value="",
uid=[0]
),
desc.File(
name='modelPath',
label='Detection Network',
description='Deep learning network for automatic calibration sphere detection.',
value='${ALICEVISION_SPHERE_DETECTION_MODEL}',
name="modelPath",
label="Detection Network",
description="Deep learning network for automatic calibration sphere detection.",
value="${ALICEVISION_SPHERE_DETECTION_MODEL}",
uid=[0]
),
desc.BoolParam(
name='autoDetect',
label='Automatic Sphere Detection',
description='Automatic detection of calibration spheres',
name="autoDetect",
label="Automatic Sphere Detection",
description="Automatic detection of calibration spheres.",
value=False,
uid=[0]
),
@ -48,12 +48,12 @@ Spheres can be automatically detected or manually defined in the interface.
description="Center of the circle (XY offset to the center of the image in pixels).",
groupDesc=[
desc.FloatParam(
name="x", label="x", description="X Offset in pixels",
name="x", label="x", description="X offset in pixels.",
value=0.0,
uid=[0],
range=(-1000.0, 10000.0, 1.0)),
desc.FloatParam(
name="y", label="y", description="Y Offset in pixels",
name="y", label="y", description="Y offset in pixels.",
value=0.0,
uid=[0],
range=(-1000.0, 10000.0, 1.0)),
@ -62,30 +62,30 @@ Spheres can be automatically detected or manually defined in the interface.
group=None # skip group from command line
),
desc.FloatParam(
name='sphereRadius',
label='Radius',
description='Sphere radius in pixels.',
name="sphereRadius",
label="Radius",
description="Sphere radius in pixels.",
value=500.0,
range=(0.0, 1000.0, 0.1),
enabled=lambda node: not node.autoDetect.value,
uid=[0]
),
desc.ChoiceParam(
name='verboseLevel',
label='Verbose Level',
description='Verbosity level (fatal, error, warning, info, debug, trace).',
value='info',
values=['fatal', 'error', 'warning', 'info', 'debug', 'trace'],
name="verboseLevel",
label="Verbose Level",
description="Verbosity level (fatal, error, warning, info, debug, trace).",
value="info",
values=["fatal", "error", "warning", "info", "debug", "trace"],
exclusive=True,
uid=[]
uid=[],
)
]
outputs = [
desc.File(
name='output',
label='Output Folder',
description='Sphere detection information will be written here.',
name="output",
label="Output Folder",
description="Sphere detection information will be written here.",
value=desc.Node.internalFolder,
uid=[]
)