Skip to content

Commit eb22c16

Browse files
authored
Bugfix (#119)
1 parent 750178c commit eb22c16

File tree

1 file changed

+6
-1
lines changed
  • mevislab.github.io/content/tutorials/basicmechanisms/macromodules

1 file changed

+6
-1
lines changed

mevislab.github.io/content/tutorials/basicmechanisms/macromodules/itemmodelview.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Example 7: Creating you own ItemModel by using the ItemModelView"
2+
title: "Example 7: Creating your own ItemModel by using the ItemModelView"
33
date: 2025-06-03
44
status: "OK"
55
draft: false
@@ -169,6 +169,11 @@ from mevis import MLAB
169169
gAttributes = ["patientName", "patientBirthdate", "studyDescription", "studyDate", "modality", "seriesDescription", "seriesDate", "sopInstanceUID"]
170170
gModel = None
171171
gNextId = 0
172+
173+
def getNextId():
174+
global gNextId
175+
gNextId += 1
176+
return gNextId
172177
```
173178
{{</highlight>}}
174179

0 commit comments

Comments
 (0)