- Timestamp:
- Nov 1, 2012, 11:36:15 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/objectbatch.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/objectbatch.py
r34639 r34649 116 116 filterID = self.scratchDb.getFilterID(filter[1]) 117 117 118 # NOTE: mask of cps.FLAGS is required to insure that it fits in Object.{grizy}Flags (which is 16 bits)119 # DVO SecfiltFlags uses bit 24 (0x01 0000) which is out of range 118 # NOTE: Manipulation of FLAGS from cpsTable is to move ID_SECF_OBJ_EXT flag (0x01000000) 119 # from bit 24 to bit 13 so that it fits into the SMALLINT Object.Flags 120 120 121 121 sql = "UPDATE Object JOIN \ … … 133 133 ," + filter[1] + "20pct = MAG_20/1000 \ 134 134 ," + filter[1] + "80pct = MAG_80/1000 \ 135 ," + filter[1] + "Flags = (0x7fff & FLAGS) \135 ," + filter[1] + "Flags = (0x7fff & FLAGS) | ((FLAGS >> 11) & 0x2000) \ 136 136 ," + filter[1] + "StackDetectID = (10 * STACK_DETECT_ID) + " + str(filterID) 137 137
Note:
See TracChangeset
for help on using the changeset viewer.
