Skip to content

Commit 51cbcdb

Browse files
committed
add explicit truncated message
1 parent b1f4a34 commit 51cbcdb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

schematic/store/synapse.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,11 @@ def associateMetadataWithFiles(self, metadataManifestPath: str,
479479

480480
# truncate annotation values to 500 characters if the
481481
# size of values is greater than equal to 500 characters
482+
# add an explicit [truncatedByDataCuratorApp] message at the end
483+
# of every truncated message to indicate that the cell value
484+
# has been truncated
482485
if isinstance(v, str) and len(v) >= 500:
483-
v = v[0:499]
486+
v = v[0:472] + "[truncatedByDataCuratorApp]"
484487

485488
metadataSyn[keySyn] = v
486489

0 commit comments

Comments
 (0)