IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 18 years ago

Closed 17 years ago

#1067 closed enhancement (fixed)

-revert... functions are too limited

Reported by: eugene Owned by: jhoblitt
Priority: high Milestone:
Component: ippTools Version: unspecified
Severity: minor Keywords:
Cc:

Description

the chiptool -revertprocessedimfile (and equivalent functions) require a single chip_id or cam_id. this makes it fairly painful to do a bulk revert: it is necessary to either supply the correct chip_ids or loop over all possible and trigger many failures. it would be nice for the tool to be capable of selecting the chip_ids. I propose we add the following features:

  • do not require -chip_id (or equivalent)
  • add additional selection features (time, filter, etc; the fields allowed for -queue)
  • add a -pretend option
  • if no restrictions are supplied, do nothing
  • add a -all (or some equivalent word) to force all even if no restrictions are supplied.

Attachments (1)

ipp-jpegsrc.v6b.tar.gz (647.0 KB ) - added by jhoblitt 18 years ago.
libjpeg w/ gnuconf & libtool bits upgraded

Download all attachments as: .zip

Change History (6)

by jhoblitt, 18 years ago

Attachment: ipp-jpegsrc.v6b.tar.gz added

libjpeg w/ gnuconf & libtool bits upgraded

comment:1 by jhoblitt, 18 years ago

attachments.isobsolete: 01

(From update of attachment 115)
oops. I hate it when bugzilla does that.

comment:2 by jhoblitt, 18 years ago

Cc: price@… added

comment:3 by rodney, 18 years ago

It seems that some of this functionality has been introduced. e.g.

chiptool -revertprocessedimfile -all

will do

DELETE FROM chipProcessedImfile
USING chipProcessedImfile, rawExp
WHERE

rawExp.exp_id = chipProcessedImfile.exp_id
AND chipProcessedImfile.fault != 0

However,

chiptool -revertprocessedimfile -code 2

does not do what the chiptool docstring claims:
DELETE FROM chipProcessedImfile
USING chipProcessedImfile, rawExp
WHERE

rawExp.exp_id = chipProcessedImfile.exp_id
AND chipProcessedImfile.fault == 2

comment:4 by rodney, 18 years ago

Cc: rodney@… added

SQL syntax errors in chiptool -processedimfile :

rodney@ipp003> chiptool -processedimfile -chip_id 68 -dbname sress

p_psDBRunQuery (psDB.c:837) : Failed to execute SQL query. Error: Unknown column 'chipProcessedImfile.chipRun.chip_id' in 'where clause'
processedimfileMode (chiptool.c:615) : database error

-> p_psDBRunQuery (psDB.c:837): Database error generated by the server

Failed to execute SQL query. Error: Unknown column 'chipProcessedImfile.chipRun.chip_id' in 'where clause'

-> processedimfileMode (chiptool.c:615): unknown psLib error

database error

The same problem comes up with the -exp_id option.

comment:5 by eugene, 17 years ago

Resolution: fixed
Status: newclosed

these errors have been addressed with the pxchip/cam/warpGet/SetSearchArgs functions.

Note: See TracTickets for help on using tickets.