Skip to content

Commit

Permalink
Formatting and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorrell committed Feb 17, 2022
1 parent 45fc261 commit fdd6ff3
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 36 deletions.
57 changes: 30 additions & 27 deletions codemeta-cleaned-example.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
{
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"codeRepository": "https://github.com/rlwillia/Integrase-differentiation",
"name": "Integrase-differentiation",
"issueTracker": "https://github.com/rlwillia/Integrase-differentiation/issues",
"license": "?",
"version": "?",
"author": [
{
"nameType": "Personal",
"name": "Williams, Rory",
"givenName": "Rory",
"familyName": "Williams",
"nameIdentifiers": [
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"codeRepository": "https://github.com/rlwillia/Integrase-differentiation",
"name": "Integrase-differentiation",
"issueTracker": "https://github.com/rlwillia/Integrase-differentiation/issues",
"license": "?",
"version": "?",
"author": [
{
"nameIdentifier": "https://orcid.org/0000-0003-2605-5790",
"schemeUri": "https://orcid.org",
"nameIdentifierScheme": "ORCID"
"nameType": "Personal",
"name": "Williams, Rory",
"givenName": "Rory",
"familyName": "Williams",
"nameIdentifiers": [
{
"nameIdentifier": "https://orcid.org/0000-0003-2605-5790",
"schemeUri": "https://orcid.org",
"nameIdentifierScheme": "ORCID",
}
],
"affiliation": "Caltech",
}
],
"affiliation": "Caltech"
}
],
"description": "This repository contains descriptions of systems of ODEs used to model circuits using integrase-mediated differentiation for improving function of burdensome synthetic circuits, Jupyter notebooks for modeling these architectures with comparison to naive inducible production, and analysis of experimental results. Modeling and data are describe in the biorxiv submission 'Tunable integrase mediated differentiation facilitates improved output of burdensome functions' : https://www.biorxiv.org/content/10.1101/614529v1. Flow cytometry data used in the analysis and generation of figures can be found in CaltechDATA: https://doi.org/10.22002/D1.1228.",
"keywords": [
"synthetic biology", "integrase-mediated differentiation", "evolutionary stability", "flow cytometry"
],
"developmentStatus": "active",
"downloadUrl": "https://github.com/rlwillia/Integrase-differentiation/archive/"
],
"description": "This repository contains descriptions of systems of ODEs used to model circuits using integrase-mediated differentiation for improving function of burdensome synthetic circuits, Jupyter notebooks for modeling these architectures with comparison to naive inducible production, and analysis of experimental results. Modeling and data are describe in the biorxiv submission 'Tunable integrase mediated differentiation facilitates improved output of burdensome functions' : https://www.biorxiv.org/content/10.1101/614529v1. Flow cytometry data used in the analysis and generation of figures can be found in CaltechDATA: https://doi.org/10.22002/D1.1228.",
"keywords": [
"synthetic biology",
"integrase-mediated differentiation",
"evolutionary stability",
"flow cytometry",
],
"developmentStatus": "active",
"downloadUrl": "https://github.com/rlwillia/Integrase-differentiation/archive/",
}
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"codeRepository": "https://github.com/caltechlibrary/ames",
"issueTracker": "https://github.com/caltechlibrary/ames/issues",
"license": "https://data.caltech.edu/license",
"version": "0.8.1",
"version": "0.9.0",
"author": [
{
"@type": "Person",
Expand Down
16 changes: 8 additions & 8 deletions tests/test_codemeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
from datacite import schema40
from ames import codemeta_to_datacite

infile = open('codemeta.json','r')
infile = open("codemeta.json", "r")
meta = json.load(infile)
standardized = codemeta_to_datacite(meta)
standardized['identifier'] = {'identifier':'10.1/1','identifierType':'DOI'}
standardized['titles']= [{'title': "Title"}]
standardized['publisher'] = 'publisher'
standardized['publicationYear'] = '2018'
standardized['resourceType'] = {'resourceTypeGeneral':"Software"}
result = schema40.validate(standardized)
#Debugging if this fails
standardized["identifier"] = {"identifier": "10.1/1", "identifierType": "DOI"}
standardized["titles"] = [{"title": "Title"}]
standardized["publisher"] = "publisher"
standardized["publicationYear"] = "2018"
standardized["resourceType"] = {"resourceTypeGeneral": "Software"}
result = schema40.validate(standardized)
# Debugging if this fails
if result == False:
v = schema40.validator.validate(standardized)
errors = sorted(v.iter_errors(instance), key=lambda e: e.path)
Expand Down

0 comments on commit fdd6ff3

Please sign in to comment.