On Fri, Oct 14, 2011 at 11:04 AM, James Phillips <zunzun@zunzun.com> wrote:
From: Alan G Isaac <alan.isaac <at> gmail.com> Subject: Re: Subversion scipy.stats irregular problem with source code example<http://news.gmane.org/find-root.php?message_id=%3c4CA22FA3.5080402%40gmail.com%3e> Newsgroups: gmane.comp.python.scientific.devel<http://news.gmane.org/gmane.comp.python.scientific.devel> Date: 2010-09-28 18:10:43 GMT (1 year, 2 weeks, 1 day, 15 hours and 46 minutes ago)
As long as you can provide unit tests, I don't see a problem.
But you and Skipper shd work out the details.
Now up to 109 unit tests, including NIST fitting tests from http://www.itl.nist.gov/div898/strd/nls/nls_main.shtml Code is at http://code.google.com/p/pyeq2/downloads/list James test_CalculateCoefficientAndFitStatisticsUsingSpline_2D (Test_CalculateCoefficientAndFitStatistics.TestCalculateCoefficientAndFitStatistics) ... ok test_CalculateCoefficientAndFitStatisticsUsingUserDefinedFunction_2D (Test_CalculateCoefficientAndFitStatistics.TestCalculateCoefficientAndFitStatistics) ... ok test_DataCache_2D (Test_DataCache.TestDataCache) ... ok test_DataCache_3D (Test_DataCache.TestDataCache) ... ok test_ReducedDataSize_2D (Test_DataCache.TestDataCache) ... ok test_ConversionOfColumns_ASCII_2D_NoWeights (Test_DataConverterService.TestConversions) ... ok test_ConversionOfColumns_ASCII_2D_NoWeights_ExampleData (Test_DataConverterService.TestConversions) ... ok test_ConversionOfColumns_ASCII_2D_Weights (Test_DataConverterService.TestConversions) ... ok test_ConversionOfColumns_ASCII_3D_NoWeights (Test_DataConverterService.TestConversions) ... ok test_ConversionOfColumns_ASCII_3D_Weights (Test_DataConverterService.TestConversions) ... ok test_ExtendedVersion_Asymptotic_Exponential_A_WithExponentialDecayAndOffset_2D (Test_ExtendedVersionHandlers.TestExtendedVersionHandlers) ... ok test_ExtendedVersion_Asymptotic_Exponential_A_WithExponentialDecay_2D (Test_ExtendedVersionHandlers.TestExtendedVersionHandlers) ... ok test_ExtendedVersion_Asymptotic_Exponential_A_WithExponentialGrowthAndOffset_2D (Test_ExtendedVersionHandlers.TestExtendedVersionHandlers) ... ok test_ExtendedVersion_Asymptotic_Exponential_A_WithExponentialGrowth_2D (Test_ExtendedVersionHandlers.TestExtendedVersionHandlers) ... ok test_ExtendedVersion_Exponential_WithLinearDecayAndOffset_2D (Test_ExtendedVersionHandlers.TestExtendedVersionHandlers) ... ok test_ExtendedVersion_Exponential_WithLinearDecay_2D (Test_ExtendedVersionHandlers.TestExtendedVersionHandlers) ... ok test_ExtendedVersion_Exponential_WithLinearGrowthAndOffset_2D (Test_ExtendedVersionHandlers.TestExtendedVersionHandlers) ... ok test_ExtendedVersion_Exponential_WithLinearGrowth_2D (Test_ExtendedVersionHandlers.TestExtendedVersionHandlers) ... ok test_ExtendedVersion_Exponential_WithOffset_2D (Test_ExtendedVersionHandlers.TestExtendedVersionHandlers) ... ok test_ExtendedVersion_Inverse_Exponential_2D (Test_ExtendedVersionHandlers.TestExtendedVersionHandlers) ... ok test_ExtendedVersion_Inverse_Exponential_WithOffset_2D (Test_ExtendedVersionHandlers.TestExtendedVersionHandlers) ... ok test_ExtendedVersion_Reciprocal_Exponential_2D (Test_ExtendedVersionHandlers.TestExtendedVersionHandlers) ... ok test_ExtendedVersion_Reciprocal_Exponential_WithOffset_2D (Test_ExtendedVersionHandlers.TestExtendedVersionHandlers) ... ok test_ArcTangent_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Cosine_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Exponential_VariableTimesNegativeOne_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Exponential_VariableUnchanged_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_HyperbolicCosine_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_HyperbolicSine_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_HyperbolicTangent_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Log_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Offset_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Power_NegativeOne_OfLog_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Power_NegativeOne_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Power_NegativeTwo_OfLog_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Power_NegativeTwo_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Power_NegativeZeroPointFive_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Power_OnePointFive_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Power_Two_OfLog_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Power_Two_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Power_ZeroPointFive_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Sine_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_Tangent_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_VariableUnchanged_Term (Test_IndividualPolyFunctions.TestPolyFunctions) ... ok test_SplineSolve_2D (Test_ModelSolveMethods.TestModelSolveMethods) ... ok test_SplineSolve_3D (Test_ModelSolveMethods.TestModelSolveMethods) ... ok test_UserDefinedFunctionSolve_3D (Test_ModelSolveMethods.TestModelSolveMethods) ... ok test_UserDefinedFunctionSolve_SSQABS_2D (Test_ModelSolveMethods.TestModelSolveMethods) ... ok test_UserDefinedFunctionSolve_SSQREL_2D (Test_ModelSolveMethods.TestModelSolveMethods) ... ok test_ConversionFromCppToCSHARP (Test_OutputSourceCodeService.TestConversionsFromCPP) ... ok test_ConversionFromCppToJAVA (Test_OutputSourceCodeService.TestConversionsFromCPP) ... ok test_ConversionFromCppToMATLAB (Test_OutputSourceCodeService.TestConversionsFromCPP) ... ok test_ConversionFromCppToPYTHON (Test_OutputSourceCodeService.TestConversionsFromCPP) ... ok test_ConversionFromCppToSCILAB (Test_OutputSourceCodeService.TestConversionsFromCPP) ... ok test_ConversionFromCppToVBA (Test_OutputSourceCodeService.TestConversionsFromCPP) ... ok test_GenerationOf_CPP (Test_OutputSourceCodeService.TestGenerationOfOutputSourceCode) ... ok test_GenerationOf_CSHARP (Test_OutputSourceCodeService.TestGenerationOfOutputSourceCode) ... ok test_GenerationOf_JAVA (Test_OutputSourceCodeService.TestGenerationOfOutputSourceCode) ... ok test_GenerationOf_MATLAB (Test_OutputSourceCodeService.TestGenerationOfOutputSourceCode) ... ok test_GenerationOf_PYTHON (Test_OutputSourceCodeService.TestGenerationOfOutputSourceCode) ... ok test_GenerationOf_SCILAB (Test_OutputSourceCodeService.TestGenerationOfOutputSourceCode) ... ok test_GenerationOf_VBA (Test_OutputSourceCodeService.TestGenerationOfOutputSourceCode) ... ok test_SolveUsingDE_2D (Test_SolverService.TestSolverService) ... ok test_SolveUsingDE_3D (Test_SolverService.TestSolverService) ... ok test_SolveUsingLevenbergMarquardt_2D (Test_SolverService.TestSolverService) ... ok test_SolveUsingLevenbergMarquardt_3D (Test_SolverService.TestSolverService) ... ok test_SolveUsingLinear_2D (Test_SolverService.TestSolverService) ... ok test_SolveUsingLinear_3D (Test_SolverService.TestSolverService) ... ok test_SolveUsingODR_2D (Test_SolverService.TestSolverService) ... ok test_SolveUsingODR_3D (Test_SolverService.TestSolverService) ... ok test_SolveUsingSimplex_3D (Test_SolverService.TestSolverService) ... ok test_SolveUsingSimplex_SSQABS_2D (Test_SolverService.TestSolverService) ... ok test_SolveUsingSimplex_SSQREL_2D (Test_SolverService.TestSolverService) ... ok test_SolveUsingSpline_2D (Test_SolverService.TestSolverService) ... ok test_SolveUsingSpline_3D (Test_SolverService.TestSolverService) ... ok test_AphidPopulationGrowth (Test_Equations.Test_BioScience2D) ... ok test_DispersionOptical (Test_Equations.Test_Engineering2D) ... ok test_Hocket_Sherby (Test_Equations.Test_Exponential2D) ... ok test_FullCubicExponential (Test_Equations.Test_Exponential3D) ... ok test_InstantiationOfAllNamedEquations (Test_Equations.Test_InstantiationOfAllEquations) ... ok test_SecondDegreeLegendrePolynomial (Test_Equations.Test_LegendrePolynomial2D) ... ok test_LinearLogarithmic (Test_Equations.Test_Logarithmic2D) ... ok test_Polyfunctional2D (Test_Equations.Test_Polyfunctional2D) ... ok test_Polyfunctional3D (Test_Equations.Test_Polyfunctional3D) ... ok test_Polynomial2D (Test_Equations.Test_Polynomials) ... ok test_Polynomial3D (Test_Equations.Test_Polynomials) ... ok test_Rational2D (Test_Equations.Test_Rationals) ... ok test_Rational_WithOffset_2D (Test_Equations.Test_Rationals) ... ok test_NIST_Bennett5_2D (Test_NIST.Test_NIST) ... ok test_NIST_BoxBOD_2D (Test_NIST.Test_NIST) ... ok test_NIST_Chwirut_2D (Test_NIST.Test_NIST) ... ok test_NIST_DanWood_2D (Test_NIST.Test_NIST) ... ok test_NIST_ENSO_2D (Test_NIST.Test_NIST) ... ok test_NIST_Eckerle4_2D (Test_NIST.Test_NIST) ... ok test_NIST_Gauss_2D (Test_NIST.Test_NIST) ... ok test_NIST_Hahn_2D (Test_NIST.Test_NIST) ... ok test_NIST_Kirby_2D (Test_NIST.Test_NIST) ... ok test_NIST_Lanczos_2D (Test_NIST.Test_NIST) ... ok test_NIST_MGH09_2D (Test_NIST.Test_NIST) ... ok test_NIST_MGH10_2D (Test_NIST.Test_NIST) ... ok test_NIST_MGH17_2D (Test_NIST.Test_NIST) ... ok test_NIST_Misra1a_2D (Test_NIST.Test_NIST) ... ok test_NIST_Misra1b_2D (Test_NIST.Test_NIST) ... ok test_NIST_Misra1c_2D (Test_NIST.Test_NIST) ... ok test_NIST_Misra1d_2D (Test_NIST.Test_NIST) ... ok test_NIST_Rat42_2D (Test_NIST.Test_NIST) ... ok test_NIST_Rat43_2D (Test_NIST.Test_NIST) ... ok test_NIST_Roszman_2D (Test_NIST.Test_NIST) ... ok test_NIST_Thurber_2D (Test_NIST.Test_NIST) ... ok ---------------------------------------------------------------------- Ran 109 tests in 87.476s OK