Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ia pathways docs #79

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,25 @@ html[data-theme='light'] {
}

html[data-theme='dark'] a {
color:#0267FD;
color:#007599;
text-decoration: none;
}

html[data-theme='dark'] a:hover {
color:#007599;
text-decoration: underline;
}

html [data-theme='dark'] .search-button-field {
background-color: #18191B;
}

html[data-theme='light'] a {
color:#0267FD;
color:#007599;
text-decoration: none;
}

html[data-theme='light'] a:hover {
color:#007599;
text-decoration: underline;
}
47 changes: 47 additions & 0 deletions docs/contribute/ia-dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Image Analysis Development

## Code Pathways to IA

### Single Encounter Submission
1. User starts on submit.jsp
2. `EncounterForm`
- `IA.intakeMediaAssets(myShepherd, enc.getMedia().parentTask);`
- `IA. intakeMediaAssetsOneSpecies(myShepherd, assetsBySpecies.get(0), parentTask);`
- `intakeMediaAssetsOneSpecies(myShepherd, mas, taxy, parentTask); `
- `intakeMediaAssetsOneSpecies(Shepherd myShepherd, List<MediaAsset> mas,Taxonomy taxy, final Task parentTask, int tweetAssetId)`
- `IAGateway.addToDetectionQueue(context,qjob.toString());`
3. WBIA detection occurs independently
4. `IBEISIA.processCallback`
- `processCallbackDetect(...)`
- `IA.intakeAnnotations(myShepherd2, needIdentifying, parentTask, false);`
- `IAGateway.addToQueue(context, qjob.toString());`
5. `IBEISIA.processCallback`
- `IBEISIA.processCallbackIdentify`
6. Results visible from "match results" button on annotation on Encounter page

### Bulk Import
_Assumes bulk detection on the ImportTask has already occurred._

1. User has completed a bulk import and is looking at it on the related import.jsp page.
2. `resendBulkImportID.jsp`
- `IA.intakeAnnotations(myShepherd, matchMeAnns, subParentTask,false);`
- `IAGateway.addToQueue(context, qjob.toString());`
3. Queue (“IA”) sends to WBIA
4. `IBEISIA.processCallback` when job returned by WBIA to /ia
- `IBEISIA.processCallbackIdentify`
5. Results visible from “match results” button on annotation on an imported Encounter page or from the import.jsp for the bulk import.

### Manual 'Start Match' from Encounter Page
_Assumes detection has already run, and annotations already exist._

1. User clicks “start match” or “start another match” from encounter.jsp
- `encounter.jsp.iaMatchFilterGo(...)`
- `ia.IBEIS.js.restCall(...)`
2. `IAGateway.java`
- doPost
- `if (j.optBoolean("enqueue", false) || j.optBoolean("v2", false)) { `
- `addToDetectionQueue(context, j.toString());` or `addToQueue (...)` depending on fastlane status
3. Queue (“detection”/fastlane) - except for HotSpotter jobs which are sent to “IA” queue sends to WBIA
4. `IBEISIA.processCallback` when job returned by WBIA to /ia
- `IBEISIA.processCallbackIdentify`
5. Results visible from “match results” button on annotation on Encounter page
1 change: 1 addition & 0 deletions docs/contribute/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
dev-setup
pr-workflow
code-guide
ia-dev
copy-guide
roadmap
```
Expand Down
5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ Want to put your talents to use fighting the 6th mass extinction? We're excited

```{toctree}
contribute/index
contribute/dev-setup
contribute/pr-workflow
contribute/code-guide
contribute/copy-guide
contribute/roadmap
```
Loading