From fdd6ff3f4accf5761c31bc8034bc9b38863c5acd Mon Sep 17 00:00:00 2001 From: Thomas Morrell Date: Thu, 17 Feb 2022 13:10:16 -0800 Subject: [PATCH] Formatting and bump version --- codemeta-cleaned-example.json | 57 ++++++++++++++++++----------------- codemeta.json | 2 +- tests/test_codemeta.py | 16 +++++----- 3 files changed, 39 insertions(+), 36 deletions(-) diff --git a/codemeta-cleaned-example.json b/codemeta-cleaned-example.json index 20f6248..7d22121 100644 --- a/codemeta-cleaned-example.json +++ b/codemeta-cleaned-example.json @@ -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/", } diff --git a/codemeta.json b/codemeta.json index 10050af..648862b 100644 --- a/codemeta.json +++ b/codemeta.json @@ -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", diff --git a/tests/test_codemeta.py b/tests/test_codemeta.py index dd61777..2958d0a 100644 --- a/tests/test_codemeta.py +++ b/tests/test_codemeta.py @@ -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)