Comments (5)
Could one enhance that from a binary flag (as far as I understand it) to an enumerator? I.e. instead of having multiple "Log" attachments with one being flagged as "primary", just give each of them a ranking (1,2,...,N). The user can then decide to only look at rank 1 (would be similar to the primary flag proposed above) or maybe at the top 5 ranking attachments.
For Log attachments it is probably quite easy to provide a single (primary, rank 1) attachement - but for "Result" I would already struggle and for "Graph" it seems impossible.
from ispyb-database-modeling.
This was discussed at the VC meeting today, and we agreed that Clemen's (@CV-GPhL ) improvement idea was sound - i.e. instead of a 'primary' boolean use a 'rank' integer. It will be up to the processing software and ingester to make sure we only have one single entry with rank 1 for each autoProcProgramId
and fileType
.
I'll create a PR for this at some point.
from ispyb-database-modeling.
Updated SQL:
ALTER TABLE AutoProcProgramAttachment
MODIFY `fileType` enum('Log','Result','Graph', 'Debug') DEFAULT NULL COMMENT 'Type of file Attachment',
ADD `importanceRank` tinyint unsigned COMMENT 'For the particular autoProcProgramId and fileType, indicate the importance of the attachment. 1 is most important, higher numbers are less important';
I've renamed the new column to importanceRank
as that seems a bit clearer than just rank
.
from ispyb-database-modeling.
from ispyb-database-modeling.
Updated SQL - specifying in the column comment that higher numbers are more important:
ALTER TABLE AutoProcProgramAttachment
MODIFY `fileType` enum('Log','Result','Graph', 'Debug') DEFAULT NULL COMMENT 'Type of file Attachment',
ADD `importanceRank` tinyint unsigned COMMENT 'For the particular autoProcProgramId and fileType, indicate the importance of the attachment. Higher numbers are more important';
from ispyb-database-modeling.
Related Issues (20)
- Add generic positioner
- Specify subsample type
- Add offsets to BLSampleImage
- Add collectionmode to diffractionplan HOT 1
- Add priority to diffractionplan
- Add a name column to the BLSampleGroup table HOT 2
- Add a userPath column to the DiffractionPlan table HOT 2
- Allow registered dewars to belong to multiple proposals HOT 2
- WIP: New tables and changes for cryo-EM HOT 39
- Add staff comments to BLSample
- Changing the collation from latin1_swedish_ci to utf8mb4_unicode_ci ?
- Add preferredDataCentre to BeamLineSetup
- Add resIOverSigI2 column to AutoProcScalingStatistics
- Add a proposalId column to BLSampleGroup
- Store resolution where I/SigI drops below 2 HOT 1
- Add new column 'uniprotId' to 'Structure' table HOT 1
- Add new RelativeIceThickness table
- Extend ISPyB for cryo-ET and electron diffraction HOT 8
- Add a homeLab cloumn in the Shipping and Crystal tables
- Laboratory name issue at MAXIV
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ispyb-database-modeling.