@@ -1460,15 +1460,15 @@ def save_contributors_sheet(contributors, sheet):
1460
1460
# saved_contributors = []
1461
1461
try :
1462
1462
for c in contributors :
1463
- contributorname = c ['contributorName' ]. lower ()
1464
- creator = c ['Creator' ]. lower ()
1465
- contributortype = c ['contributorType' ]. lower ()
1466
- nametype = c ['nameType' ]. lower ()
1467
- nameidentifier = c ['nameIdentifier' ]. lower ()
1468
- nameidentifierscheme = c ['nameIdentifierScheme' ]. lower ()
1469
- affiliation = c ['affiliation' ]. lower ()
1470
- affiliationidentifier = c ['affiliationIdentifier' ]. lower ()
1471
- affiliationidentifierscheme = c ['affiliationIdentifierScheme' ]. lower ()
1463
+ contributorname = c ['contributorName' ]
1464
+ creator = c ['Creator' ]
1465
+ contributortype = c ['contributorType' ]
1466
+ nametype = c ['nameType' ]
1467
+ nameidentifier = c ['nameIdentifier' ]
1468
+ nameidentifierscheme = c ['nameIdentifierScheme' ]
1469
+ affiliation = c ['affiliation' ]
1470
+ affiliationidentifier = c ['affiliationIdentifier' ]
1471
+ affiliationidentifierscheme = c ['affiliationIdentifierScheme' ]
1472
1472
1473
1473
contributor = Contributor (contributorname = contributorname , creator = creator , contributortype = contributortype , nametype = nametype , nameidentifier = nameidentifier , nameidentifierscheme = nameidentifierscheme , affiliation = affiliation , affiliationidentifier = affiliationidentifier , affiliationidentifierscheme = affiliationidentifierscheme , sheet_id = sheet .id )
1474
1474
contributor .save ()
@@ -1483,11 +1483,11 @@ def save_contributors_sheet(contributors, sheet):
1483
1483
def save_funders_sheet (funders , sheet ):
1484
1484
try :
1485
1485
for f in funders :
1486
- fundername = f ['funderName' ]. lower ()
1487
- funding_reference_identifier = f ['fundingReferenceIdentifier' ]. lower ()
1488
- funding_reference_identifier_type = f ['fundingReferenceIdentifierType' ]. lower ()
1489
- award_number = f ['awardNumber' ]. lower ()
1490
- award_title = f ['awardTitle' ]. lower ()
1486
+ fundername = f ['funderName' ]
1487
+ funding_reference_identifier = f ['fundingReferenceIdentifier' ]
1488
+ funding_reference_identifier_type = f ['fundingReferenceIdentifierType' ]
1489
+ award_number = f ['awardNumber' ]
1490
+ award_title = f ['awardTitle' ]
1491
1491
1492
1492
funder = Funder (fundername = fundername , funding_reference_identifier = funding_reference_identifier , funding_reference_identifier_type = funding_reference_identifier_type , award_number = award_number , award_title = award_title , sheet_id = sheet .id )
1493
1493
funder .save ()
@@ -1499,11 +1499,11 @@ def save_funders_sheet(funders, sheet):
1499
1499
def save_publication_sheet (publications , sheet ):
1500
1500
try :
1501
1501
for p in publications :
1502
- relatedidentifier = p ['relatedIdentifier' ]. lower ()
1503
- relatedidentifiertype = p ['relatedIdentifierType' ]. lower ()
1504
- pmcid = p ['PMCID' ]. lower ()
1505
- relationtype = p ['relationType' ]. lower ()
1506
- citation = p ['citation' ]. lower ()
1502
+ relatedidentifier = p ['relatedIdentifier' ]
1503
+ relatedidentifiertype = p ['relatedIdentifierType' ]
1504
+ pmcid = p ['PMCID' ]
1505
+ relationtype = p ['relationType' ]
1506
+ citation = p ['citation' ]
1507
1507
1508
1508
publication = Publication (relatedidentifier = relatedidentifier , relatedidentifiertype = relatedidentifiertype , pmcid = pmcid , relationtype = relationtype , citation = citation , sheet_id = sheet .id )
1509
1509
publication .save ()
@@ -1516,18 +1516,18 @@ def save_instrument_sheet_method_1(instruments, sheet):
1516
1516
# there should be 1 line in the instrument tab for methods 1, 2, 3
1517
1517
try :
1518
1518
for i in instruments :
1519
- microscopetype = i ['MicroscopeType' ]. lower ()
1520
- microscopemanufacturerandmodel = i ['MicroscopeManufacturerAndModel' ]. lower ()
1521
- objectivename = i ['ObjectiveName' ]. lower ()
1522
- objectiveimmersion = i ['ObjectiveImmersion' ]. lower ()
1523
- objectivena = i ['ObjectiveNA' ]. lower ()
1524
- objectivemagnification = i ['ObjectiveMagnification' ]. lower ()
1525
- detectortype = i ['DetectorType' ]. lower ()
1526
- detectormodel = i ['DetectorModel' ]. lower ()
1527
- illuminationtypes = i ['IlluminationTypes' ]. lower ()
1528
- illuminationwavelength = i ['IlluminationWavelength' ]. lower ()
1529
- detectionwavelength = i ['DetectionWavelength' ]. lower ()
1530
- sampletemperature = i ['SampleTemperature' ]. lower ()
1519
+ microscopetype = i ['MicroscopeType' ]
1520
+ microscopemanufacturerandmodel = i ['MicroscopeManufacturerAndModel' ]
1521
+ objectivename = i ['ObjectiveName' ]
1522
+ objectiveimmersion = i ['ObjectiveImmersion' ]
1523
+ objectivena = i ['ObjectiveNA' ]
1524
+ objectivemagnification = i ['ObjectiveMagnification' ]
1525
+ detectortype = i ['DetectorType' ]
1526
+ detectormodel = i ['DetectorModel' ]
1527
+ illuminationtypes = i ['IlluminationTypes' ]
1528
+ illuminationwavelength = i ['IlluminationWavelength' ]
1529
+ detectionwavelength = i ['DetectionWavelength' ]
1530
+ sampletemperature = i ['SampleTemperature' ]
1531
1531
1532
1532
instrument = Instrument (microscopetype = microscopetype , microscopemanufacturerandmodel = microscopemanufacturerandmodel , objectivename = objectivename , objectiveimmersion = objectiveimmersion , objectivena = objectivena , objectivemagnification = objectivemagnification , detectortype = detectortype , detectormodel = detectormodel , illuminationtypes = illuminationtypes , illuminationwavelength = illuminationwavelength , detectionwavelength = detectionwavelength , sampletemperature = sampletemperature , sheet_id = sheet .id )
1533
1533
instrument .save ()
@@ -1540,18 +1540,18 @@ def save_instrument_sheet_method_2(instruments, sheet):
1540
1540
# there should be 1 line in the instrument tab for methods 1, 2, 3
1541
1541
try :
1542
1542
for i in instruments :
1543
- microscopetype = i ['MicroscopeType' ]. lower ()
1544
- microscopemanufacturerandmodel = i ['MicroscopeManufacturerAndModel' ]. lower ()
1545
- objectivename = i ['ObjectiveName' ]. lower ()
1546
- objectiveimmersion = i ['ObjectiveImmersion' ]. lower ()
1547
- objectivena = i ['ObjectiveNA' ]. lower ()
1548
- objectivemagnification = i ['ObjectiveMagnification' ]. lower ()
1549
- detectortype = i ['DetectorType' ]. lower ()
1550
- detectormodel = i ['DetectorModel' ]. lower ()
1551
- illuminationtypes = i ['IlluminationTypes' ]. lower ()
1552
- illuminationwavelength = i ['IlluminationWavelength' ]. lower ()
1553
- detectionwavelength = i ['DetectionWavelength' ]. lower ()
1554
- sampletemperature = i ['SampleTemperature' ]. lower ()
1543
+ microscopetype = i ['MicroscopeType' ]
1544
+ microscopemanufacturerandmodel = i ['MicroscopeManufacturerAndModel' ]
1545
+ objectivename = i ['ObjectiveName' ]
1546
+ objectiveimmersion = i ['ObjectiveImmersion' ]
1547
+ objectivena = i ['ObjectiveNA' ]
1548
+ objectivemagnification = i ['ObjectiveMagnification' ]
1549
+ detectortype = i ['DetectorType' ]
1550
+ detectormodel = i ['DetectorModel' ]
1551
+ illuminationtypes = i ['IlluminationTypes' ]
1552
+ illuminationwavelength = i ['IlluminationWavelength' ]
1553
+ detectionwavelength = i ['DetectionWavelength' ]
1554
+ sampletemperature = i ['SampleTemperature' ]
1555
1555
1556
1556
instrument = Instrument (microscopetype = microscopetype , microscopemanufacturerandmodel = microscopemanufacturerandmodel , objectivename = objectivename , objectiveimmersion = objectiveimmersion , objectivena = objectivena , objectivemagnification = objectivemagnification , detectortype = detectortype , detectormodel = detectormodel , illuminationtypes = illuminationtypes , illuminationwavelength = illuminationwavelength , detectionwavelength = detectionwavelength , sampletemperature = sampletemperature , sheet_id = sheet .id )
1557
1557
instrument .save ()
@@ -1564,18 +1564,18 @@ def save_instrument_sheet_method_3(instruments, sheet):
1564
1564
# there should be 1 line in the instrument tab for methods 1, 2, 3
1565
1565
try :
1566
1566
for i in instruments :
1567
- microscopetype = i ['MicroscopeType' ]. lower ()
1568
- microscopemanufacturerandmodel = i ['MicroscopeManufacturerAndModel' ]. lower ()
1569
- objectivename = i ['ObjectiveName' ]. lower ()
1570
- objectiveimmersion = i ['ObjectiveImmersion' ]. lower ()
1571
- objectivena = i ['ObjectiveNA' ]. lower ()
1572
- objectivemagnification = i ['ObjectiveMagnification' ]. lower ()
1573
- detectortype = i ['DetectorType' ]. lower ()
1574
- detectormodel = i ['DetectorModel' ]. lower ()
1575
- illuminationtypes = i ['IlluminationTypes' ]. lower ()
1576
- illuminationwavelength = i ['IlluminationWavelength' ]. lower ()
1577
- detectionwavelength = i ['DetectionWavelength' ]. lower ()
1578
- sampletemperature = i ['SampleTemperature' ]. lower ()
1567
+ microscopetype = i ['MicroscopeType' ]
1568
+ microscopemanufacturerandmodel = i ['MicroscopeManufacturerAndModel' ]
1569
+ objectivename = i ['ObjectiveName' ]
1570
+ objectiveimmersion = i ['ObjectiveImmersion' ]
1571
+ objectivena = i ['ObjectiveNA' ]
1572
+ objectivemagnification = i ['ObjectiveMagnification' ]
1573
+ detectortype = i ['DetectorType' ]
1574
+ detectormodel = i ['DetectorModel' ]
1575
+ illuminationtypes = i ['IlluminationTypes' ]
1576
+ illuminationwavelength = i ['IlluminationWavelength' ]
1577
+ detectionwavelength = i ['DetectionWavelength' ]
1578
+ sampletemperature = i ['SampleTemperature' ]
1579
1579
1580
1580
instrument = Instrument (microscopetype = microscopetype , microscopemanufacturerandmodel = microscopemanufacturerandmodel , objectivename = objectivename , objectiveimmersion = objectiveimmersion , objectivena = objectivena , objectivemagnification = objectivemagnification , detectortype = detectortype , detectormodel = detectormodel , illuminationtypes = illuminationtypes , illuminationwavelength = illuminationwavelength , detectionwavelength = detectionwavelength , sampletemperature = sampletemperature , sheet_id = sheet .id )
1581
1581
instrument .save ()
@@ -1591,18 +1591,18 @@ def save_instrument_sheet_method_4(instruments, sheet, saved_datasets):
1591
1591
data_set_id = d .id
1592
1592
1593
1593
i = instruments [d_index ]
1594
- microscopetype = i ['MicroscopeType' ]. lower ()
1595
- microscopemanufacturerandmodel = i ['MicroscopeManufacturerAndModel' ]. lower ()
1596
- objectivename = i ['ObjectiveName' ]. lower ()
1597
- objectiveimmersion = i ['ObjectiveImmersion' ]. lower ()
1598
- objectivena = i ['ObjectiveNA' ]. lower ()
1599
- objectivemagnification = i ['ObjectiveMagnification' ]. lower ()
1600
- detectortype = i ['DetectorType' ]. lower ()
1601
- detectormodel = i ['DetectorModel' ]. lower ()
1602
- illuminationtypes = i ['IlluminationTypes' ]. lower ()
1603
- illuminationwavelength = i ['IlluminationWavelength' ]. lower ()
1604
- detectionwavelength = i ['DetectionWavelength' ]. lower ()
1605
- sampletemperature = i ['SampleTemperature' ]. lower ()
1594
+ microscopetype = i ['MicroscopeType' ]
1595
+ microscopemanufacturerandmodel = i ['MicroscopeManufacturerAndModel' ]
1596
+ objectivename = i ['ObjectiveName' ]
1597
+ objectiveimmersion = i ['ObjectiveImmersion' ]
1598
+ objectivena = i ['ObjectiveNA' ]
1599
+ objectivemagnification = i ['ObjectiveMagnification' ]
1600
+ detectortype = i ['DetectorType' ]
1601
+ detectormodel = i ['DetectorModel' ]
1602
+ illuminationtypes = i ['IlluminationTypes' ]
1603
+ illuminationwavelength = i ['IlluminationWavelength' ]
1604
+ detectionwavelength = i ['DetectionWavelength' ]
1605
+ sampletemperature = i ['SampleTemperature' ]
1606
1606
1607
1607
instrument = Instrument (microscopetype = microscopetype , microscopemanufacturerandmodel = microscopemanufacturerandmodel , objectivename = objectivename , objectiveimmersion = objectiveimmersion , objectivena = objectivena , objectivemagnification = objectivemagnification , detectortype = detectortype , detectormodel = detectormodel , illuminationtypes = illuminationtypes , illuminationwavelength = illuminationwavelength , detectionwavelength = detectionwavelength , sampletemperature = sampletemperature , data_set_id = data_set_id , sheet_id = sheet .id )
1608
1608
instrument .save ()
@@ -1615,21 +1615,21 @@ def save_dataset_sheet_method_1_or_3(datasets, sheet):
1615
1615
saved_datasets = []
1616
1616
try :
1617
1617
for d in datasets :
1618
- bildirectory = d ['BILDirectory' ]. lower ()
1619
- title = d ['title' ]. lower ()
1620
- socialmedia = d ['socialMedia' ]. lower ()
1621
- subject = d ['subject' ]. lower ()
1622
- subjectscheme = d ['Subjectscheme' ]. lower ()
1623
- rights = d ['rights' ]. lower ()
1624
- rightsuri = d ['rightsURI' ]. lower ()
1625
- rightsidentifier = d ['rightsIdentifier' ]. lower ()
1626
- dataset_image = d ['Image' ]. lower ()
1627
- generalmodality = d ['GeneralModality' ]. lower ()
1628
- technique = d ['Technique' ]. lower ()
1629
- other = d ['Other' ]. lower ()
1630
- abstract = d ['Abstract' ]. lower ()
1631
- methods = d ['Methods' ]. lower ()
1632
- technicalinfo = d ['TechnicalInfo' ]. lower ()
1618
+ bildirectory = d ['BILDirectory' ]
1619
+ title = d ['title' ]
1620
+ socialmedia = d ['socialMedia' ]
1621
+ subject = d ['subject' ]
1622
+ subjectscheme = d ['Subjectscheme' ]
1623
+ rights = d ['rights' ]
1624
+ rightsuri = d ['rightsURI' ]
1625
+ rightsidentifier = d ['rightsIdentifier' ]
1626
+ dataset_image = d ['Image' ]
1627
+ generalmodality = d ['GeneralModality' ]
1628
+ technique = d ['Technique' ]
1629
+ other = d ['Other' ]
1630
+ abstract = d ['Abstract' ]
1631
+ methods = d ['Methods' ]
1632
+ technicalinfo = d ['TechnicalInfo' ]
1633
1633
1634
1634
dataset = Dataset (bildirectory = bildirectory , title = title , socialmedia = socialmedia , subject = subject , subjectscheme = subjectscheme , rights = rights , rightsuri = rightsuri , rightsidentifier = rightsidentifier , dataset_image = dataset_image , generalmodality = generalmodality , technique = technique , other = other , abstract = abstract , methods = methods , technicalinfo = technicalinfo , sheet_id = sheet .id )
1635
1635
dataset .save ()
@@ -1643,21 +1643,21 @@ def save_dataset_sheet_method_2(datasets, sheet):
1643
1643
# only 1 dataset row expected here
1644
1644
try :
1645
1645
for d in datasets :
1646
- bildirectory = d ['BILDirectory' ]. lower ()
1647
- title = d ['title' ]. lower ()
1648
- socialmedia = d ['socialMedia' ]. lower ()
1649
- subject = d ['subject' ]. lower ()
1650
- subjectscheme = d ['Subjectscheme' ]. lower ()
1651
- rights = d ['rights' ]. lower ()
1652
- rightsuri = d ['rightsURI' ]. lower ()
1653
- rightsidentifier = d ['rightsIdentifier' ]. lower ()
1654
- dataset_image = d ['Image' ]. lower ()
1655
- generalmodality = d ['GeneralModality' ]. lower ()
1656
- technique = d ['Technique' ]. lower ()
1657
- other = d ['Other' ]. lower ()
1658
- abstract = d ['Abstract' ]. lower ()
1659
- methods = d ['Methods' ]. lower ()
1660
- technicalinfo = d ['TechnicalInfo' ]. lower ()
1646
+ bildirectory = d ['BILDirectory' ]
1647
+ title = d ['title' ]
1648
+ socialmedia = d ['socialMedia' ]
1649
+ subject = d ['subject' ]
1650
+ subjectscheme = d ['Subjectscheme' ]
1651
+ rights = d ['rights' ]
1652
+ rightsuri = d ['rightsURI' ]
1653
+ rightsidentifier = d ['rightsIdentifier' ]
1654
+ dataset_image = d ['Image' ]
1655
+ generalmodality = d ['GeneralModality' ]
1656
+ technique = d ['Technique' ]
1657
+ other = d ['Other' ]
1658
+ abstract = d ['Abstract' ]
1659
+ methods = d ['Methods' ]
1660
+ technicalinfo = d ['TechnicalInfo' ]
1661
1661
1662
1662
dataset = Dataset (bildirectory = bildirectory , title = title , socialmedia = socialmedia , subject = subject , subjectscheme = subjectscheme , rights = rights , rightsuri = rightsuri , rightsidentifier = rightsidentifier , dataset_image = dataset_image , generalmodality = generalmodality , technique = technique , other = other , abstract = abstract , methods = methods , technicalinfo = technicalinfo , sheet_id = sheet .id )
1663
1663
dataset .save ()
@@ -1673,21 +1673,21 @@ def save_dataset_sheet_method_4(datasets, sheet, specimen_object_method_4):
1673
1673
saved_datasets = []
1674
1674
try :
1675
1675
for d in datasets :
1676
- bildirectory = d ['BILDirectory' ]. lower ()
1677
- title = d ['title' ]. lower ()
1678
- socialmedia = d ['socialMedia' ]. lower ()
1679
- subject = d ['subject' ]. lower ()
1680
- subjectscheme = d ['Subjectscheme' ]. lower ()
1681
- rights = d ['rights' ]. lower ()
1682
- rightsuri = d ['rightsURI' ]. lower ()
1683
- rightsidentifier = d ['rightsIdentifier' ]. lower ()
1684
- dataset_image = d ['Image' ]. lower ()
1685
- generalmodality = d ['GeneralModality' ]. lower ()
1686
- technique = d ['Technique' ]. lower ()
1687
- other = d ['Other' ]. lower ()
1688
- abstract = d ['Abstract' ]. lower ()
1689
- methods = d ['Methods' ]. lower ()
1690
- technicalinfo = d ['TechnicalInfo' ]. lower ()
1676
+ bildirectory = d ['BILDirectory' ]
1677
+ title = d ['title' ]
1678
+ socialmedia = d ['socialMedia' ]
1679
+ subject = d ['subject' ]
1680
+ subjectscheme = d ['Subjectscheme' ]
1681
+ rights = d ['rights' ]
1682
+ rightsuri = d ['rightsURI' ]
1683
+ rightsidentifier = d ['rightsIdentifier' ]
1684
+ dataset_image = d ['Image' ]
1685
+ generalmodality = d ['GeneralModality' ]
1686
+ technique = d ['Technique' ]
1687
+ other = d ['Other' ]
1688
+ abstract = d ['Abstract' ]
1689
+ methods = d ['Methods' ]
1690
+ technicalinfo = d ['TechnicalInfo' ]
1691
1691
1692
1692
dataset = Dataset (bildirectory = bildirectory , title = title , socialmedia = socialmedia , subject = subject , subjectscheme = subjectscheme , rights = rights , rightsuri = rightsuri , rightsidentifier = rightsidentifier , dataset_image = dataset_image , generalmodality = generalmodality , technique = technique , other = other , abstract = abstract , methods = methods , technicalinfo = technicalinfo , sheet_id = sheet .id , specimen_ingest_method_4 = specimen_ingest_method_4 )
1693
1693
0 commit comments