| 29 | | fullForceWarpRun |
| 30 | | ffw_id |
| 31 | | warp_id |
| 32 | | skycal_id (sets sky_id and through stack_id, filter, |
| 33 | | tess_id, skycell_id) |
| 34 | | input_path_base path that leads to cff file |
| 35 | | Note: this is independent of the method |
| 36 | | used to generate the data. |
| 37 | | The expectation is that the cffs will be generated |
| 38 | | during skycal processing. The data has been |
| 39 | | read and is available. zero point is done. |
| | 29 | CREATE TABLE fullForceRun ( |
| | 30 | ff_id BIGINT NOT NULL AUTO_INCREMENT, |
| | 31 | warp_id BIGINT, |
| | 32 | skycal_id BIGINT, |
| | 33 | sources_path_base VARCHAR(255), |
| | 34 | state VARCHAR(64), |
| | 35 | workdir VARCHAR(255), |
| | 36 | label VARCHAR(64), |
| | 37 | data_group VARCHAR(64), |
| | 38 | dist_group VARCHAR(64), |
| | 39 | reduction VARCHAR(64), |
| | 40 | registered TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- time run was registered |
| | 41 | PRIMARY KEY(ff_id), |
| | 42 | KEY(state), |
| | 43 | KEY(label), |
| | 44 | KEY(data_group), |
| | 45 | KEY(warp_id), |
| | 46 | KEY(skycal_id), |
| | 47 | FOREIGN KEY(warp_id) REFERENCES warpRun(warp_id), |
| | 48 | FOREIGN KEY(skycal_id) REFERENCES skycalRun(skycal_id) |
| | 49 | ) ENGINE=innodb DEFAULT CHARSET=latin1; |
| 59 | | Is the 'Warp' in the table name needed? Would we ever do fullforce on |
| 60 | | a diff or stack? I'm hesitant to use the stage, stage_id style structure |
| 61 | | (addRun, distribution) since that makes everything more complicated. |
| 62 | | The code sharing ends up being somewhat illusory. |
| | 64 | Note that this structure ties the full force run to a warp. One could imagine |
| | 65 | doing running it on a chip, diff, or stack. I'm hesitant to use the stage, stage_id style structure |
| | 66 | (addRun, distribution) because that makes everything more complicated. |
| | 67 | The code sharing ends up being somewhat illusory. Are five 10 line functions really |
| | 68 | better than one 50 line function with lots of cases? |