-
Notifications
You must be signed in to change notification settings - Fork 264
Description
If a cell with the same name is in two input files, the second one get's uniquified.
This can be changed with the --blend-mode=0, where their contents gets merged.
The help suggest that the --blend-mode would apply only to files concatenated by "+".
But it currently applies to both "," and "+", so one cannot distinguish what to do with different files.
strm2oas a1.oas,a2.oas+a3.oas out.oas => uniquified to "a$1 a$2 a$3"
strm2oas --blend-mode=0 a1.oas,a2.oas+a3.oas out.oas => both "a" in a2.oas and a3.oas merged into "a" of a1.oas.
-
I would have expected the blend-mode only to be applied to a3.oas.
This way a1 would be left as is and a2.oas and a3.oas would be merged and uniquified to a$1, see a.merged_2_3.oas -
I've never needed --blend-mode 1 or 2.
So one could do away with blend-mode altogether and just treat "," as uniquify and "+" as "merge". -
I'm using _ as the separator for unique names, strm2oas uses $, can that be specified ?
--blend-mode=mode Specifies how cell conflicts are resolved when using file concatenation
When concatenating files with '+', the reader will handle cells with identical names according to this mode:
* 0: joins everything (usually unsafe)
* 1: overwrite
* 2: skip new cell
* 3: rename cell (safe, default)
Mode 0 is a safe solution for the 'same hierarchy, different layers'
case. Mode 3 is a safe solution for joining multiple files into one
and combining the hierarchy tree of all files as distinct separate
trees.