@@ -0,0 +1,852 @@
+#!/usr/bin/env python%0A%0Aimport numpy as np%0Afrom scipy import special%0Aimport math as m%0Aimport json%0Aimport os%0A%0A%22%22%22gen( x, filepath )%0A%0AGenerate fixture data and write to file.%0A%0A# Arguments%0A%0A* %60x%60: domain%0A* %60filepath::AbstractString%60: filepath of the output file%0A%0A# Examples%0A%0A%60%60%60 python%0Apython%3E x = linspace( -1000, 1000, 2001 );%0Apython%3E gen( x, %5C%22./data.json%5C%22 );%0A%60%60%60%0A%22%22%22%0Adef gen( x, filepath ):%0A    # TODO: generate fixtures%0A%0A    # Store data to be written to file as a dictionary:%0A    data = %7B%0A        %22x%22: x.tolist(),%0A        %22expected%22: y.tolist()%0A    %7D;%0A    with open( filepath, 'w' ) as outfile:%0A        json.dump( data, outfile )%0A%0A# Get the file path:%0Afile = os.path.realpath( __file__ )%0A%0A# Extract the directory in which this file resides:%0Adir = os.path.dirname( file )%0A%0A# Generate fixture data:%0A# TODO: generate input data (%60x%60)%0Agen( x, %22TODO%22 );%0A

Add python fixtures snippet