Skip to content

Commit 20c69d4

Browse files
authored
Merge pull request #21 from ZEISS/apiwheel-update-2026
Python API wheel update pull request (2026)
2 parents 7878bd2 + 87b78c4 commit 20c69d4

File tree

10 files changed

+169
-75
lines changed

10 files changed

+169
-75
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "zeiss_inspect_api"
7-
version = "2026.3.0.343"
7+
version = "2026.3.0.984"
88
authors = [
99
{ name="Carl Zeiss GOM Metrology GmbH", email="info.optical.metrology@zeiss.com" },
1010
]

src/gom/__common__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Constants:
5050

5151
class Request (Enum):
5252
'''
53-
\brief Request id
53+
@brief Request id
5454
5555
This id must match the id in the C++ part
5656
'''

src/gom/__encoding__.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ class Encoder:
4747

4848
class PackageType (Enum):
4949
'''
50-
\brief Package content data type
51-
\attention Must match with the enumeration in the server
50+
@brief Package content data type
51+
@attention Must match with the enumeration in the server
5252
'''
5353
INVALID = 0
5454
INT_8 = 1
@@ -133,8 +133,8 @@ class CdcEncoder (Encoder):
133133

134134
class Type (Enum):
135135
'''
136-
\brief Data types handled by the CDC encoding scheme.
137-
\attention Must match with the enumeration in the server
136+
@brief Data types handled by the CDC encoding scheme.
137+
@attention Must match with the enumeration in the server
138138
'''
139139
NONE = 0
140140
BOOLEAN = 1
@@ -160,23 +160,23 @@ class Type (Enum):
160160

161161
def encode(self, obj, context):
162162
'''
163-
\brief Encode data package
163+
@brief Encode data package
164164
165165
Encodes an arbitrary Python object into binary payload package.
166-
\param obj Python object
167-
\param context Context for additional encoding information like used shared memory segments etc.
168-
\return Binary data block
166+
@param obj Python object
167+
@param context Context for additional encoding information like used shared memory segments etc.
168+
@return Binary data block
169169
'''
170170
buffer = bytearray()
171171
self.encodeValue(buffer, obj, context)
172172
return buffer
173173

174174
def encodeValue(self, buffer, obj, context):
175175
'''
176-
\brief Encode object into CDC (compact data container) format
176+
@brief Encode object into CDC (compact data container) format
177177
178-
\param buffer Array chunk buffer the generated data is appended to
179-
\param obj Arbitrary Python object to be encoded
178+
@param buffer Array chunk buffer the generated data is appended to
179+
@param obj Arbitrary Python object to be encoded
180180
'''
181181
if obj is None:
182182
self.encodeType(buffer, CdcEncoder.Type.NONE)
@@ -347,10 +347,10 @@ def encodeStr(self, buffer, obj):
347347

348348
def decode(self, data, context):
349349
'''
350-
\brief Decode data package
350+
@brief Decode data package
351351
352-
\param data Binary data block
353-
\return Represented Python object
352+
@param data Binary data block
353+
@return Represented Python object
354354
'''
355355
class InStream:
356356

@@ -368,13 +368,13 @@ def read(self, n):
368368

369369
def decodeValue(self, s, context):
370370
'''
371-
\brief Decode the next encoded Python object in the buffer
371+
@brief Decode the next encoded Python object in the buffer
372372
373373
If the encoded object is a container, the container content is decoded
374374
recursively.
375375
376-
\param s Data stream
377-
\return Python object
376+
@param s Data stream
377+
@return Python object
378378
'''
379379
obj_type = CdcEncoder.Type(s.read(1)[0])
380380

@@ -550,7 +550,7 @@ def decodeStr(self, s):
550550
#
551551
class JsonEncoder (Encoder):
552552
'''
553-
\brief Payload data encoding/decoding in JSON format
553+
@brief Payload data encoding/decoding in JSON format
554554
'''
555555

556556
#
@@ -585,12 +585,12 @@ class JsonEncoder (Encoder):
585585

586586
def encode(self, obj, context):
587587
'''
588-
\brief Encode data package
588+
@brief Encode data package
589589
590590
Encodes an arbitrary Python object into binary payload package.
591591
592-
\param obj Python object
593-
\return Binary data block
592+
@param obj Python object
593+
@return Binary data block
594594
'''
595595
return json.dumps(JsonEncoder.encode_traits(obj, context)).encode()
596596

@@ -601,23 +601,23 @@ def decode(self, data, context):
601601
This function decodes a binary payload data package into the represented
602602
Python object.
603603
604-
\param data Binary data block
605-
\return Python object
604+
@param data Binary data block
605+
@return Python object
606606
'''
607607
return JsonEncoder.decode_traits(json.loads(data.decode()), context)
608608

609609
@staticmethod
610610
def encode_traits(obj, context):
611611
'''
612-
\brief Encode complex Python types into JSON compatible format
612+
@brief Encode complex Python types into JSON compatible format
613613
614614
In JSON there is no way to transmit other than the standard objects (bool, int, ..., list, map).
615615
So types like Item or dynamically registeres types must be converted into a map like representation
616616
before being encoded.
617617
618-
\param obj Python object to be encoded
619-
\param context Encoding context for keeping addition information like the used shared memory segements
620-
\return Python object with complex data types converted into a map like representation
618+
@param obj Python object to be encoded
619+
@param context Encoding context for keeping addition information like the used shared memory segements
620+
@return Python object with complex data types converted into a map like representation
621621
'''
622622

623623
if hasattr(obj, '__json__'):
@@ -697,8 +697,8 @@ def decode_traits(obj, context):
697697
into native Python objects. This function is then called to convert the dictionary objects
698698
which are representing dynamic types into these types.
699699
700-
\param obj Python object in decoded format
701-
\return Python object with all intermediate types resolved
700+
@param obj Python object in decoded format
701+
@return Python object with all intermediate types resolved
702702
'''
703703

704704
result = None

src/gom/__init__.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@
6262

6363
def tr(text, id=None):
6464
'''
65-
\brief Return translated version of the given test
65+
@brief Return translated version of the given test
6666
6767
This function is added to the global namespace of the executed script and can be used
6868
to receive translations from the packages *.xlf files.
6969
7070
Being a global function, this function will be available in the executed script, too.
7171
72-
\param text Text to be translated
73-
\param id Translation id of the text. Optional, used in the GOM internal translation process.
74-
\return Translation in the current locale
72+
@param text Text to be translated
73+
@param id Translation id of the text. Optional, used in the GOM internal translation process.
74+
@return Translation in the current locale
7575
'''
7676
translated = text
7777

@@ -86,7 +86,7 @@ def tr(text, id=None):
8686

8787
class RequestError (RuntimeError):
8888
'''
89-
\brief Exception type raised from an failed request
89+
@brief Exception type raised from an failed request
9090
'''
9191

9292
def __init__(self, description, error_code, error_log):
@@ -122,7 +122,7 @@ def __reduce__(self):
122122

123123
class BreakError (Exception):
124124
'''
125-
\brief Exception raised if the running script is to be terminated
125+
@brief Exception raised if the running script is to be terminated
126126
'''
127127

128128
def __init__(self, text=''):
@@ -134,7 +134,7 @@ def __repr__(self):
134134

135135
class Indexable (object):
136136
'''
137-
\brief Object representing a indexable proxy to some partially resolved item.
137+
@brief Object representing a indexable proxy to some partially resolved item.
138138
139139
Example: 'gom.app.project.inspection['Point cloud'].coordinate' does not provide
140140
a token itself. Instead, it can be used together with an index to access single
@@ -189,7 +189,7 @@ def from_params(params):
189189

190190
class Item (object):
191191
'''
192-
\brief An object of this class represents a single item in the applications item space
192+
@brief An object of this class represents a single item in the applications item space
193193
194194
Each Tom::ScriptObject has a unique item id, like 'I#!1234', which is used to
195195
link an item to the corresponding C++ object.
@@ -297,7 +297,7 @@ def from_params(params):
297297

298298
class Array (object):
299299
'''
300-
\brief Data array container representation
300+
@brief Data array container representation
301301
302302
An object of this type is being returned if the 'data' token is queried from
303303
an item, like in 'element.data.coordinate'. So after the 'data' part of the
@@ -415,7 +415,7 @@ def numpy_imported_hook(module):
415415

416416
class ResourceAccess (object):
417417
'''
418-
\brief Resource accessing class
418+
@brief Resource accessing class
419419
420420
This object represents the virtual script object 'gom.app.resource' which can
421421
be used to access script resources. The resource is returned as a 'bytes ()' array.
@@ -446,7 +446,7 @@ def from_params(params):
446446

447447
class Command (object):
448448
'''
449-
\brief Command or command namespace representing object.
449+
@brief Command or command namespace representing object.
450450
451451
This is anything starting with 'gom.script' or 'gom.interactive'
452452
'''
@@ -517,7 +517,7 @@ def create_overload_group(name):
517517

518518
class Object (object):
519519
'''
520-
\brief Value representing a generic object instance without specialized script type interface
520+
@brief Value representing a generic object instance without specialized script type interface
521521
'''
522522

523523
def __init__(self, params):

src/gom/__network__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
class EncoderContext:
4545
'''
46-
\brief Encoding context caring for shared memory segments
46+
@brief Encoding context caring for shared memory segments
4747
'''
4848

4949
def __init__(self):
@@ -65,7 +65,7 @@ def __exit__(self, exception, value, traceback):
6565

6666
class DecoderContext:
6767
'''
68-
\brief Decoding context caring for shared memory segments
68+
@brief Decoding context caring for shared memory segments
6969
'''
7070

7171
def __init__(self):

src/gom/__test__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
class TestInterface:
3535
'''
36-
\brief Function collection for debugging and testing
36+
@brief Function collection for debugging and testing
3737
'''
3838

3939
def reflect(self, value):

src/gom/__tools__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def filter_exception_traceback(tb):
9494

9595
class StdoutFlusher:
9696
'''
97-
\brief This class writes stdout events and flushes the text buffer immediately
97+
@brief This class writes stdout events and flushes the text buffer immediately
9898
'''
9999

100100
def __init__(self):
@@ -122,7 +122,7 @@ def __exit__(self, ext_type, exc_value, traceback):
122122

123123
class StderrFlusher:
124124
'''
125-
\brief This class writes stderr events and flushes the text buffer immediately
125+
@brief This class writes stderr events and flushes the text buffer immediately
126126
'''
127127

128128
def __init__(self):
@@ -258,7 +258,7 @@ def find_spec(self, fullname, path, target=None):
258258

259259
class EnvironmentListener (collections.abc.Mapping):
260260
'''
261-
\brief Listener for changes to the environment variables
261+
@brief Listener for changes to the environment variables
262262
'''
263263

264264
def __enter__(self):
@@ -341,7 +341,7 @@ def __str__(self):
341341

342342
class ExitHandler:
343343
'''
344-
\brief This class wraps the standard 'sys.exit ()' functions
344+
@brief This class wraps the standard 'sys.exit ()' functions
345345
'''
346346

347347
original_exit = None
@@ -380,7 +380,7 @@ def emit(self, record):
380380

381381
class Console:
382382
'''
383-
\brief Unfiltered stream for direct console output (for test script purposes)
383+
@brief Unfiltered stream for direct console output (for test script purposes)
384384
'''
385385

386386
def write(self, text):
@@ -392,7 +392,7 @@ def flush(self):
392392

393393
class NumpyErrorMessageFacade:
394394
'''
395-
\brief Numpy error message facade
395+
@brief Numpy error message facade
396396
397397
This class is used to raise a self speaking error message in case of using
398398
numpy functions without prior importing the numpy library. This is needed because

0 commit comments

Comments
 (0)