-
Notifications
You must be signed in to change notification settings - Fork 29
Support rendering more dtypes #8325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
525b85d
cb645fc
b0a464b
74ee01f
7583952
23f3e37
bafd930
01291be
d84ad30
dac0777
ff49df9
93971a9
36825d2
fef329e
fe302a7
f9e141e
3012352
00489d3
fb8cbbb
69b08f9
db7c585
c3ee927
842ee40
602d8ea
1b37c7c
9b79c29
398cd8c
0ac2eb2
47ee1f6
447141a
9272d5d
c51e1c1
efdf88f
568ba69
a78856a
c2cba65
819d221
638adcc
ea89f03
aaf0b42
6ae05d3
6ed17f1
83656a8
c956398
d1a7ee2
4703ce3
55ce5bc
d6bd518
93b14b8
3846249
b58a0f3
6038d37
e7d7ac1
ff5e655
aab24aa
1772e0a
13b70a4
c19ef21
23e4ad4
66b2e89
a68960f
e636be9
3d74b9a
7a61471
147b17b
1ae16b5
02eefac
83de554
6efebdc
bfa2bb6
8720125
7ca7576
53d128f
31aaea6
fdc110b
a580fbd
69e0928
3d445ce
b28d31d
f1eed3f
da3cd02
49b4ef5
b086ff6
80573b0
3581a88
279a30a
dcff611
921bcdb
119dffe
5059071
9e15774
aff7318
475b4aa
9e3515c
8bdda42
ca73a00
50dee11
ce2ba3c
f33dce8
5721415
3a7862d
9e1aa33
2c0dd57
17c2c74
58515a3
6aba8a1
282c323
9c62c9b
3db2784
77a175b
9ab7cfc
4f5c043
c0ac4eb
61e5786
e17f1f9
51100c2
4e13245
d103691
0432134
3183dd7
0c84bcb
c794c1e
9986d92
4bbe79e
87d80e5
aec67d6
99c8986
bee9385
f77ed47
53aa345
9bdec04
d9fd36a
fab128e
7d2ceed
ce900dc
aa22c3b
8f083e5
ba135d1
71405dc
19dffff
7d43ee4
2fcefaa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ import com.scalableminds.util.tools.Fox.box2Fox | |
import com.scalableminds.util.tools.JsonHelper.bool2Box | ||
import com.scalableminds.webknossos.datastore.SkeletonTracing._ | ||
import com.scalableminds.webknossos.datastore.MetadataEntry.MetadataEntryProto | ||
import com.scalableminds.webknossos.datastore.VolumeTracing.VolumeTracing.ElementClassProto | ||
import com.scalableminds.webknossos.datastore.VolumeTracing.{Segment, SegmentGroup, VolumeTracing} | ||
import com.scalableminds.webknossos.datastore.geometry.{ | ||
AdditionalAxisProto, | ||
|
@@ -19,7 +20,6 @@ import com.scalableminds.webknossos.datastore.geometry.{ | |
Vec3IntProto | ||
} | ||
import com.scalableminds.webknossos.datastore.helpers.{NodeDefaults, ProtoGeometryImplicits, SkeletonTracingDefaults} | ||
import com.scalableminds.webknossos.datastore.models.datasource.ElementClass | ||
import com.scalableminds.webknossos.tracingstore.tracings.ColorGenerator | ||
import com.scalableminds.webknossos.tracingstore.tracings.skeleton.updating.TreeType | ||
import com.scalableminds.webknossos.tracingstore.tracings.skeleton.{MultiComponentTreeSplitter, TreeValidator} | ||
|
@@ -75,7 +75,7 @@ class NmlParser @Inject()(datasetDAO: DatasetDAO) extends LazyLogging with Proto | |
datasetName = dataset.name, | ||
editPosition = nmlParams.editPosition, | ||
editRotation = nmlParams.editRotation, | ||
elementClass = ElementClass.uint32, // Note: this property may be adapted later in adaptPropertiesToFallbackLayer | ||
elementClass = ElementClassProto.uint32, // Note: this property may be adapted later in adaptPropertiesToFallbackLayer | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainConsider dynamic element class assignment instead of hardcoding to uint32. While changing to ElementClassProto.uint32 is consistent with the import change, the PR objective is to support multiple data types (int8, int16, int32, int64, etc.). Hardcoding to uint32 might limit the flexibility needed for the enhanced data type support. 🏁 Script executed: #!/bin/bash
# Check if there are any other places where ElementClassProto is used dynamically
# Look for ElementClassProto references
rg -A 5 "ElementClassProto" --type scala
# Check if there is any code that determines element class based on data type
rg -A 10 "elementClass =" --type scala Length of output: 56119 Action Required: Use Dynamic Element Class Assignment in NmlParser.scala The current implementation in NmlParser.scala (line 78) still hardcodes
Please consider refactoring the assignment to derive |
||
fallbackLayer = v.fallbackLayerName, | ||
largestSegmentId = v.largestSegmentId, | ||
version = 0, | ||
|
Uh oh!
There was an error while loading. Please reload this page.