(request, project_id=None)
return HttpResponse(json.dumps(result), content_type="text/plain")
Export the complete microcircuit connectivity to NeuroHDF
Export the complete microcircuit connectivity to NeuroHDF
Export the complete microcircuit connectivity to NeuroHDF
def microcircuit_neurohdf(request, project_id=None):
    """ Export the complete microcircuit connectivity to NeuroHDF
    """
    data=get_skeleton_as_dataarray(project_id)
    neurohdf_filename,neurohdf_url=get_temporary_neurohdf_filename_and_url()
    create_neurohdf_file(neurohdf_filename, data)
    result = {
        'format': 'NeuroHDF',
        'format_version': 0.1,
        'url': neurohdf_url
    }
    return HttpResponse(json.dumps(result), content_type="text/plain")
def microcircuit_neurohdf ( request , project_id = None ) : data = get_skeleton_as_dataarray ( project_id ) neurohdf_filename , neurohdf_url = get_temporary_neurohdf_filename_and_url ( ) create_neurohdf_file ( neurohdf_filename , data ) result = { 'format' : 'NeuroHDF' , 'format_version' : 0.1 , 'url' : neurohdf_url } return HttpResponse ( json . dumps ( result ) , content_type = "text/plain" )