<86>Apr 21 01:04:59 userdel[83036]: delete user 'rooter' <86>Apr 21 01:04:59 userdel[83036]: removed group 'rooter' owned by 'rooter' <86>Apr 21 01:04:59 userdel[83036]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 21 01:04:59 groupadd[83059]: group added to /etc/group: name=rooter, GID=663 <86>Apr 21 01:04:59 groupadd[83059]: group added to /etc/gshadow: name=rooter <86>Apr 21 01:04:59 groupadd[83059]: new group: name=rooter, GID=663 <86>Apr 21 01:04:59 useradd[83074]: new user: name=rooter, UID=663, GID=663, home=/root, shell=/bin/bash <86>Apr 21 01:04:59 userdel[83122]: delete user 'builder' <86>Apr 21 01:04:59 userdel[83122]: removed group 'builder' owned by 'builder' <86>Apr 21 01:04:59 userdel[83122]: removed shadow group 'builder' owned by 'builder' <86>Apr 21 01:04:59 groupadd[83151]: group added to /etc/group: name=builder, GID=664 <86>Apr 21 01:04:59 groupadd[83151]: group added to /etc/gshadow: name=builder <86>Apr 21 01:04:59 groupadd[83151]: new group: name=builder, GID=664 <86>Apr 21 01:04:59 useradd[83165]: new user: name=builder, UID=664, GID=664, home=/usr/src, shell=/bin/bash <13>Apr 21 01:05:02 rpmi: libopenblas-0.2.14-alt1.git20150324 1433158855 installed <13>Apr 21 01:05:02 rpmi: libnumpy-py3-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 01:05:02 rpmi: libquadmath0-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 01:05:02 rpmi: libgfortran3-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 01:05:02 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 21 01:05:02 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 21 01:05:02 rpmi: libquadmath5-devel-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 01:05:02 rpmi: python-module-google-0.4.0-alt2.1 1457968526 installed <13>Apr 21 01:05:02 rpmi: python-module-sphinx_rtd_theme-0.1.8-alt1.git20150730.1 1457859644 installed <13>Apr 21 01:05:02 rpmi: python-sphinx-objects.inv-2.3.6.20160413-alt1 1460595508 installed <13>Apr 21 01:05:02 rpmi: libxapian-1.2.23-alt1 1459318465 installed <13>Apr 21 01:05:02 rpmi: python-module-xapian-1.2.23-alt1.M80P.1 1503464748 installed <13>Apr 21 01:05:02 rpmi: libsqlite3-3.15.2-alt1 1480432212 installed <13>Apr 21 01:05:02 rpmi: libnumpy-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 01:05:02 rpmi: libxblas-1.0.248-alt1 1322010716 installed <13>Apr 21 01:05:02 rpmi: liblapack-1:3.5.0-alt1 1401382194 installed <13>Apr 21 01:05:02 rpmi: libgpg-error-1.31-alt1.M80P.1 1529024730 installed <13>Apr 21 01:05:03 rpmi: libgcrypt20-1.8.3-alt4 p8+219793.200.6.1 1551112986 installed <13>Apr 21 01:05:03 rpmi: libxslt-1.1.28-alt4 1448210404 installed <13>Apr 21 01:05:03 rpmi: gcc-fortran-common-1.4.20-alt1 1432315196 installed <13>Apr 21 01:05:03 rpmi: libgfortran5-devel-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 01:05:03 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 21 01:05:03 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 21 01:05:03 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:03 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 21 01:05:03 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 21 01:05:03 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 21 01:05:03 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 21 01:05:03 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 21 01:05:03 rpmi: gcc5-fortran-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 01:05:03 rpmi: rpm-macros-sphinx-1:1.4-alt8.a0.git20150813 1460726255 installed <13>Apr 21 01:05:03 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 21 01:05:03 groupadd[106142]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 21 01:05:03 groupadd[106142]: group added to /etc/gshadow: name=_keytab <86>Apr 21 01:05:03 groupadd[106142]: new group: name=_keytab, GID=499 <13>Apr 21 01:05:03 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 21 01:05:03 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:04 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:05:04 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:05:04 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 01:05:04 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:04 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:05:05 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:05:05 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 21 01:05:05 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:05 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 01:05:05 rpmi: python3-module-numpy-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 01:05:05 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 01:05:05 rpmi: python3-module-numpy-testing-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 01:05:05 rpmi: libnumpy-py3-devel-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 01:05:05 rpmi: python3-module-nose-1:1.3.7-alt1.git20160316.1 1460404907 installed <13>Apr 21 01:05:05 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:05 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:05 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:05 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:05 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:05 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:05 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:05 rpmi: python-module-six-1.10.0-alt7 1496087616 installed <13>Apr 21 01:05:05 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:05 rpmi: python-module-whoosh-2.7.0-alt1.hg20150805.1.1 1457859779 installed <13>Apr 21 01:05:05 rpmi: python-module-webencodings-0.5.1-alt0.M80P.1 1507185481 installed <13>Apr 21 01:05:05 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:05 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:05 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:05 rpmi: python-strict-2.7.11-alt6.M80P.1 1527682534 installed <13>Apr 21 01:05:05 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:05 rpmi: python-module-PyStemmer-1.0.1-alt1.2.1 1321387369 installed <13>Apr 21 01:05:05 rpmi: python-module-snowballstemmer-1.2.0-alt2.1 1457859319 installed <13>Apr 21 01:05:05 rpmi: python-module-pytz-1:2015.4-alt1.1.1 1460413776 installed <13>Apr 21 01:05:05 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 01:05:05 rpmi: python-module-simplejson-3.15.0-alt1.M80P.1 1528995430 installed <13>Apr 21 01:05:05 rpmi: python-module-markupsafe-0.23-alt1.2.1 1459593526 installed <13>Apr 21 01:05:05 rpmi: python-modules-sqlite3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:05:06 rpmi: python-module-SQLAlchemy-1.2.15-alt1 p8+223214.600.2.1 1551354313 installed <13>Apr 21 01:05:06 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 01:05:06 rpmi: python-module-jinja2-2.9-alt1.dev.git20150726.1.1.1 1460400640 installed <13>Apr 21 01:05:06 rpmi: python-module-babel-1:2.3.4-alt0.M80P.1 1480881327 installed <13>Apr 21 01:05:06 rpmi: python-module-numpy-testing-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 01:05:06 rpmi: python-module-numpy-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 01:05:06 rpmi: python-module-jinja2-tests-2.9-alt1.dev.git20150726.1.1.1 1460400640 installed <13>Apr 21 01:05:06 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 01:05:06 rpmi: python-module-cssselect-0.9.1-alt1.1 1457858257 installed <13>Apr 21 01:05:06 rpmi: python-module-nose-1:1.3.7-alt1.git20160316.1 1460404907 installed <13>Apr 21 01:05:06 rpmi: python-module-lxml-4.0.0-alt0.M80P.1 1507163741 installed <13>Apr 21 01:05:06 rpmi: python-module-docutils-0.13-alt4.git20150716.1.1 1460400317 installed <13>Apr 21 01:05:07 rpmi: python-module-html5lib-1:0.999999999-alt1.M80P.2 1507185603 installed <13>Apr 21 01:05:07 rpmi: python-module-Pygments-2.2.0-alt1.M80P.2 p8.214223.100 1538848792 installed <13>Apr 21 01:05:07 rpmi: python-module-alabaster-0.7.6-alt1.git20150703.1 1457857919 installed <13>Apr 21 01:05:07 rpmi: python-module-sphinx-1:1.4-alt8.a0.git20150813 1460726255 installed Installing python-module-scikits.bvp_solver-1.1-alt3.git20120926.1.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.64793 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-scikits.bvp_solver-1.1 + echo 'Source #0 (python-module-scikits.bvp_solver-1.1.tar):' Source #0 (python-module-scikits.bvp_solver-1.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-scikits.bvp_solver-1.1.tar + cd python-module-scikits.bvp_solver-1.1 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ../python3/setup.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tools.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tests/test_tools.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tests/test_solver.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tests/test_get_template.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tests/test_examples/testing.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tests/test_examples/test_TutorialExample.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tests/test_examples/test_TemplateExample.py RefactoringTool: Refactored ../python3/scikits/bvp_solver/tests/test_examples/test_Example5.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tests/test_examples/test_Example4.py RefactoringTool: Refactored ../python3/scikits/bvp_solver/tests/test_examples/test_Example3.py RefactoringTool: Refactored ../python3/scikits/bvp_solver/tests/test_examples/test_Example2.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tests/test_examples/example5data.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tests/test_examples/example3data.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tests/test_examples/example2data.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tests/test_examples/__init__.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tests/test_Solution.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/tests/test_ProblemDefinition.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/template_generator.py RefactoringTool: Refactored ../python3/scikits/bvp_solver/solver.py RefactoringTool: Refactored ../python3/scikits/bvp_solver/examples/TutorialExample.py RefactoringTool: Refactored ../python3/scikits/bvp_solver/examples/TemplateExample.py RefactoringTool: No changes to ../python3/scikits/bvp_solver/examples/Example6.py RefactoringTool: Refactored ../python3/scikits/bvp_solver/examples/Example5.py RefactoringTool: Refactored ../python3/scikits/bvp_solver/examples/Example4.py RefactoringTool: Refactored ../python3/scikits/bvp_solver/examples/Example3.py --- ../python3/scikits/bvp_solver/tests/test_examples/test_Example5.py (original) +++ ../python3/scikits/bvp_solver/tests/test_examples/test_Example5.py (refactored) @@ -9,9 +9,9 @@ import numpy from numpy import array from numpy.testing import assert_almost_equal -import example5data as data +from . import example5data as data import os -import testing +from . import testing #all None values in the code below are dummy values which must be replaced with real values --- ../python3/scikits/bvp_solver/tests/test_examples/test_Example3.py (original) +++ ../python3/scikits/bvp_solver/tests/test_examples/test_Example3.py (refactored) @@ -7,9 +7,9 @@ import scikits.bvp_solver import numpy from numpy.testing import assert_almost_equal -import example3data as data +from . import example3data as data import nose -import testing +from . import testing eps = .1 --- ../python3/scikits/bvp_solver/tests/test_examples/test_Example2.py (original) +++ ../python3/scikits/bvp_solver/tests/test_examples/test_Example2.py (refactored) @@ -10,8 +10,8 @@ import numpy from numpy.testing import assert_almost_equal import nose -import example2data as data -import testing +from . import example2data as data +from . import testing #Results obtained by Ascher/Russell. --- ../python3/scikits/bvp_solver/solver.py (original) +++ ../python3/scikits/bvp_solver/solver.py (refactored) @@ -1,7 +1,8 @@ from . import bvp_solverf import numpy -from Solution import Solution -import tools +from .Solution import Solution +from . import tools +import collections def solve(bvp_problem, solution_guess, @@ -64,7 +65,7 @@ initial_mesh = numpy.linspace(bvp_problem.boundary_points[0],bvp_problem.boundary_points[1] , 10) # here we call one of the BVP_GUESS_i routines that make up BVP_INIT to set up the solution - if ( not callable(solution_guess)): # in this case the initial solution passed was not a function + if ( not isinstance(solution_guess, collections.Callable)): # in this case the initial solution passed was not a function #try to cast the solution to an array solution_guess = numpy.array(solution_guess) --- ../python3/scikits/bvp_solver/examples/TutorialExample.py (original) +++ ../python3/scikits/bvp_solver/examples/TutorialExample.py (refactored) @@ -63,7 +63,7 @@ """ A = numpy.linspace(0,Ahx, 45) T = solution(A) -print T +print(T) """ We can plot the solution using pylab with the following code --- ../python3/scikits/bvp_solver/examples/TemplateExample.py (original) +++ ../python3/scikits/bvp_solver/examples/TemplateExample.py (refactored) @@ -7,10 +7,10 @@ import numpy from numpy import array -print get_template(num_ODE = 3, +print(get_template(num_ODE = 3, num_parameters = 1, num_left_boundary_conditions = 1, function_derivative = True, boundary_conditions_derivative = True, - singular_term = True) + singular_term = True)) --- ../python3/scikits/bvp_solver/examples/Example5.py (original) +++ ../python3/scikits/bvp_solver/examples/Example5.py (refactored) @@ -5,7 +5,7 @@ @author: johnsalvatier ''' -from __future__ import division + import scikits.bvp_solver import numpy import pylab --- ../python3/scikits/bvp_solver/examples/Example4.py (original) +++ ../python3/scikits/bvp_solver/examples/Example4.py (refactored) @@ -88,8 +88,8 @@ x = numpy.linspace(problem.boundary_points[0],problem.boundary_points[1], 100) y = solution(x) -print "lambda = " + str(solution.parameters[0]) -print "mat4bvp gives lambda ~= 17.097" +print("lambda = " + str(solution.parameters[0])) +print("mat4bvp gives lambda ~= 17.097") pylab.plot(x, y[0,:],'-') pylab.plot(x, y[1,:],'-') --- ../python3/scikits/bvp_solver/examples/Example3.py (original) +++ ../python3/scikits/bvp_solver/examples/Example3.py (refactored) @@ -74,8 +74,8 @@ parameter_guess = 1, initial_mesh = numpy.linspaceRefactoringTool: No changes to ../python3/scikits/bvp_solver/examples/Example2.py RefactoringTool: Refactored ../python3/scikits/bvp_solver/__init__.py RefactoringTool: Refactored ../python3/scikits/bvp_solver/Solution.py RefactoringTool: Refactored ../python3/scikits/bvp_solver/ProblemDefinition.py RefactoringTool: No changes to ../python3/scikits/__init__.py RefactoringTool: Refactored ../python3/doc/source/examples/example-code/TemplateExample.py RefactoringTool: Refactored ../python3/doc/source/examples/example-code/QuickStartExample.py RefactoringTool: Refactored ../python3/doc/source/examples/example-code/Example7.py RefactoringTool: No changes to ../python3/doc/source/examples/example-code/Example6.py RefactoringTool: Refactored ../python3/doc/source/examples/example-code/Example5.py RefactoringTool: Refactored ../python3/doc/source/examples/example-code/Example4.py (problem2.boundary_points[0],problem2.boundary_points[1], 21), trace =2) -print (solution.solution) -print solution.parameters +print((solution.solution)) +print(solution.parameters) pylab.plot(solution.mesh, solution.solution[0,:],'-') pylab.show() --- ../python3/scikits/bvp_solver/__init__.py (original) +++ ../python3/scikits/bvp_solver/__init__.py (refactored) @@ -1,5 +1,5 @@ -from solver import solve -from ProblemDefinition import ProblemDefinition -from Solution import Solution -from template_generator import get_template +from .solver import solve +from .ProblemDefinition import ProblemDefinition +from .Solution import Solution +from .template_generator import get_template --- ../python3/scikits/bvp_solver/Solution.py (original) +++ ../python3/scikits/bvp_solver/Solution.py (refactored) @@ -1,5 +1,5 @@ import numpy -import tools +from . import tools from . import bvp_solverf import pickle --- ../python3/scikits/bvp_solver/ProblemDefinition.py (original) +++ ../python3/scikits/bvp_solver/ProblemDefinition.py (refactored) @@ -1,5 +1,5 @@ import numpy -import tools +from . import tools import pickle class ProblemDefinition: --- ../python3/doc/source/examples/example-code/TemplateExample.py (original) +++ ../python3/doc/source/examples/example-code/TemplateExample.py (refactored) @@ -7,10 +7,10 @@ import numpy from numpy import array -print get_template(num_ODE = 3, +print(get_template(num_ODE = 3, num_parameters = 1, num_left_boundary_conditions = 1, function_derivative = True, boundary_conditions_derivative = True, - singular_term = True) + singular_term = True)) --- ../python3/doc/source/examples/example-code/QuickStartExample.py (original) +++ ../python3/doc/source/examples/example-code/QuickStartExample.py (refactored) @@ -63,7 +63,7 @@ """ A = numpy.linspace(0,Ahx, 45) T = solution(A) -print T +print(T) """ We can plot the solution using pylab with the following code --- ../python3/doc/source/examples/example-code/Example7.py (original) +++ ../python3/doc/source/examples/example-code/Example7.py (refactored) @@ -91,15 +91,15 @@ # Comparison of the results -print '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' -print 'The analytical solution of the problem at the outlet is: ' -print 'Final Conversion= 0.83605373297390484' -print 'Final Concentration = 0.16394626702609519' -print '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' -print 'The numerical solution of the problem at the outlet is: ' -print 'Final Conversion= ', v[0,99] -print 'Final Concentration = ', 1.0- v[0,99] -print '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' +print('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~') +print('The analytical solution of the problem at the outlet is: ') +print('Final Conversion= 0.83605373297390484') +print('Final Concentration = 0.16394626702609519') +print('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~') +print('The numerical solution of the problem at the outlet is: ') +print('Final Conversion= ', v[0,99]) +print('Final Concentration = ', 1.0- v[0,99]) +print('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~') # Plotting of the solution along z pl.figure() --- ../python3/doc/source/examples/example-code/Example5.py (original) +++ ../python3/doc/source/examples/example-code/Example5.py (refactored) @@ -5,7 +5,7 @@ @author: johnsalvatier ''' -from __future__ import division + import scikits.bvp_solver import numpy import pylab --- ../python3/doc/source/examples/example-code/Example4.py (original) +++ ../python3/doc/source/examples/example-code/Example4.py (refactored) @@ -88,8 +88,8 @@ x = numpy.linspace(problem.boundary_points[0],problem.boundary_points[1], 100) y = solution(x) -print "lambda = " + str(solution.parameters[0]) -print "mat4bvp gives lambda ~= 17.097" +print("lambda = " + str(solution.parameters[0])) +print("mat4bvp gives lambda ~= 17.0RefactoringTool: Refactored ../python3/doc/source/examples/example-code/Example3.py RefactoringTool: No changes to ../python3/doc/source/examples/example-code/Example2.py RefactoringTool: Refactored ../python3/doc/source/conf.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/scikits/bvp_solver/tools.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_tools.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_solver.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_get_template.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_examples/testing.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_examples/test_TutorialExample.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_examples/test_TemplateExample.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_examples/test_Example5.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_examples/test_Example4.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_examples/test_Example3.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_examples/test_Example2.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_examples/example5data.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_examples/example3data.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_examples/example2data.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_examples/__init__.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_Solution.py RefactoringTool: ../python3/scikits/bvp_solver/tests/test_ProblemDefinition.py RefactoringTool: ../python3/scikits/bvp_solver/template_generator.py RefactoringTool: ../python3/scikits/bvp_solver/solver.py RefactoringTool: ../python3/scikits/bvp_solver/examples/TutorialExample.py RefactoringTool: ../python3/scikits/bvp_solver/examples/TemplateExample.py RefactoringTool: ../python3/scikits/bvp_solver/examples/Example6.py RefactoringTool: ../python3/scikits/bvp_solver/examples/Example5.py RefactoringTool: ../python3/scikits/bvp_solver/examples/Example4.py RefactoringTool: ../python3/scikits/bvp_solver/examples/Example3.py RefactoringTool: ../python3/scikits/bvp_solver/examples/Example2.py RefactoringTool: ../python3/scikits/bvp_solver/__init__.py RefactoringTool: ../python3/scikits/bvp_solver/Solution.py RefactoringTool: ../python3/scikits/bvp_solver/ProblemDefinition.py RefactoringTool: ../python3/scikits/__init__.py RefactoringTool: ../python3/doc/source/examples/example-code/TemplateExample.py RefactoringTool: ../python3/doc/source/examples/example-code/QuickStartExample.py RefactoringTool: ../python3/doc/source/examples/example-code/Example7.py RefactoringTool: ../python3/doc/source/examples/example-code/Example6.py RefactoringTool: ../python3/doc/source/examples/example-code/Example5.py RefactoringTool: ../python3/doc/source/examples/example-code/Example4.py RefactoringTool: ../python3/doc/source/examples/example-code/Example3.py RefactoringTool: ../python3/doc/source/examples/example-code/Example2.py RefactoringTool: ../python3/doc/source/conf.py 97") pylab.plot(x, y[0,:],'-') pylab.plot(x, y[1,:],'-') --- ../python3/doc/source/examples/example-code/Example3.py (original) +++ ../python3/doc/source/examples/example-code/Example3.py (refactored) @@ -74,8 +74,8 @@ parameter_guess = 1, initial_mesh = numpy.linspace(problem2.boundary_points[0],problem2.boundary_points[1], 21), trace =2) -print (solution.solution) -print solution.parameters +print((solution.solution)) +print(solution.parameters) pylab.plot(solution.mesh, solution.solution[0,:],'-') pylab.show() --- ../python3/doc/source/conf.py (original) +++ ../python3/doc/source/conf.py (refactored) @@ -39,8 +39,8 @@ master_doc = 'index' # General information about the project. -project = u'scikits.bvp_solver' -copyright = u'2009, John Salvatier' +project = 'scikits.bvp_solver' +copyright = '2009, John Salvatier' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -176,8 +176,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'scikitsbvp_solver.tex', u'scikits.bvp\\_solver Documentation', - u'John Salvatier', 'manual'), + ('index', 'scikitsbvp_solver.tex', 'scikits.bvp\\_solver Documentation', + 'John Salvatier', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of + install -pm644 /usr/share/python-sphinx/objects.inv doc/ + '[' -e doc/conf.py ']' + cp -u /usr/lib/python2.7/site-packages/sphinx/conf.py.template doc/conf.py + ln -s ../objects.inv doc/source/ + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.88309 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-scikits.bvp_solver-1.1 + CFLAGS='-pipe -Wall -g -O2 -fPIC -DPIC -fno-strict-aliasing' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2 -fPIC -DPIC -fno-strict-aliasing' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2 -fPIC -DPIC -fno-strict-aliasing' + export FFLAGS + /usr/bin/python setup.py build --debug running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "scikits.bvp_solver.bvp_solverf" sources creating build creating build/src.linux-x86_64-2.7 creating build/src.linux-x86_64-2.7/scikits creating build/src.linux-x86_64-2.7/scikits/bvp_solver creating build/src.linux-x86_64-2.7/scikits/bvp_solver/lib f2py options: [] f2py: scikits/bvp_solver/lib/bvp_interface.pyf Reading fortran codes... Reading file 'scikits/bvp_solver/lib/bvp_interface.pyf' (format:free) Post-processing... Block: bvp_solver_wrap__user__routines Block: fsub Block: fsub Block: fsubp Block: fsubp Block: bcsub Block: bcsub Block: bcsubp Block: bcsubp Block: dfdy Block: dfdy Block: dfdyp Block: dfdyp Block: dbcdy Block: dbcdy Block: dbcdyp Block: dbcdyp Block: bvp_solverf Block: bvp In: scikits/bvp_solver/lib/bvp_interface.pyf:bvp_solverf:unknown_interface:bvp get_useparameters: no module bvp_m info used by bvp Block: guess_1_wrap In: scikits/bvp_solver/lib/bvp_interface.pyf:bvp_solverf:unknown_interface:bvp:guess_1_wrap get_useparameters: no module bvp_m info used by guess_1_wrap Block: guess_2_wrap In: scikits/bvp_solver/lib/bvp_interface.pyf:bvp_solverf:unknown_interface:bvp:guess_2_wrap get_useparameters: no module bvp_m info used by guess_2_wrap Block: bvp_solver_wrap In: scikits/bvp_solver/lib/bvp_interface.pyf:bvp_solverf:unknown_interface:bvp:bvp_solver_wrap get_useparameters: no module bvp_solver_wrap__user__routines info used by bvp_solver_wrap In: scikits/bvp_solver/lib/bvp_interface.pyf:bvp_solverf:unknown_interface:bvp:bvp_solver_wrap get_useparameters: no module bvp_m info used by bvp_solver_wrap Block: bvp_eval_wrap In: scikits/bvp_solver/lib/bvp_interface.pyf:bvp_solverf:unknown_interface:bvp:bvp_eval_wrap get_useparameters: no module bvp_m info used by bvp_eval_wrap Block: bvp_extend_wrap In: scikits/bvp_solver/lib/bvp_interface.pyf:bvp_solverf:unknown_interface:bvp:bvp_extend_wrap get_useparameters: no module bvp_m info used by bvp_extend_wrap Post-processing (stage 2)... Block: bvp_solver_wrap__user__routines Block: fsub Block: fsub Block: fsubp Block: fsubp Block: bcsub Block: bcsub Block: bcsubp Block: bcsubp Block: dfdy Block: dfdy Block: dfdyp Block: dfdyp Block: dbcdy Block: dbcdy Block: dbcdyp Block: dbcdyp Block: bvp_solverf Block: unknown_interface Block: bvp Block: guess_1_wrap Block: guess_2_wrap Block: bvp_solver_wrap Block: bvp_eval_wrap Block: bvp_extend_wrap Building modules... Constructing call-back function "cb_fsub_in_bvp_solver_wrap__user__routines" def fsub(T,Y): return FTY Constructing call-back function "cb_fsubp_in_bvp_solver_wrap__user__routines" def fsubp(T,Y,P): return FTY Constructing call-back function "cb_bcsub_in_bvp_solver_wrap__user__routines" def bcsub(YA,YB): return BCA,BCB Constructing call-back function "cb_bcsubp_in_bvp_solver_wrap__user__routines" def bcsubp(YA,YB,P): return BCA,BCB Constructing call-back function "cb_dfdy_in_bvp_solver_wrap__user__routines" def dfdy(T,Y): return PD Constructing call-back function "cb_dfdyp_in_bvp_solver_wrap__user__routines" def dfdyp(T,Y,P): return PD,PDP Constructing call-back function "cb_dbcdy_in_bvp_solver_wrap__user__routines" def dbcdy(YA,YB): return PDYA,PDYB Constructing call-back function "cb_dbcdyp_in_bvp_solver_wrap__user__routines" def dbcdyp(YA,YB,P): return PDYA,PDYB,PDYAP,PDYBP Building module "bvp_solverf"... Constructing F90 module support for "bvp"... Variables: node info mxnsub parameters work evaluated evaluated_d x iwork yerror y npts npar leftbc getarrdims:warning: assumed shape array, using 0 instead of ':' getarrdims:warning: assumed shape array, using 0 instead of ':' getarrdims:warning: assumed shape array, using 0 instead of ':' getarrdims:warning: assumed shape array, using 0 instead of ':' getarrdims:warning: assumed shape array, using 0 instead of ':' getarrdims:warning: assumed shape array, using 0 instead of ':' getarrdims:warning: assumed shape array, using 0 instead of ':' getarrdims:warning: assumed shape array, using 0 instead of ':' getarrdims:warning: assumed shape array, using 0 instead of ':' getarrdims:warning: assumed shape array, using 0 instead of ':' Constructing wrapper function "bvp.guess_1_wrap"... guess_1_wrap(nparam_in,leftbc_in,x_in,y_in,parameters_in,mxnsub_in,[node_in,n,np]) Constructing wrapper function "bvp.guess_2_wrap"... guess_2_wrap(nparam_in,leftbc_in,x_in,y_in,[node_in,n,np,parameters_in,mxnsub_in]) Constructing wrapper function "bvp.bvp_solver_wrap"... bvp_solver_wrap(node_in,npar_in,leftbc_in,npts_in,info_in,mxnsub_in,x_in,y_in,parameters_in,work_in,iwork_in,fsub,fsubp,bcsub,bcsubp,singular,hasdfdy,dfdy,dfdyp,hasdbcdy,dbcdy,dbcdyp,[n,ny1,ny2,np,nwork,niwork,ns1,ns2,singularterm,method,tol,trace,stop_on_fail,fsub_extra_args,fsubp_extra_args,bcsub_extra_args,bcsubp_extra_args,dfdy_extra_args,dfdyp_extra_args,dbcdy_extra_args,dbcdyp_extra_args]) Constructing wrapper function "bvp.bvp_eval_wrap"... bvp_eval_wrap(eval_derivative,points,node_in,npar_in,leftbc_in,npts_in,info_in,mxnsub_in,x_in,y_in,parameters_in,work_in,iwork_in,[npoints,n,ny1,ny2,np,nwork,niwork]) Constructing wrapper function "bvp.bvp_extend_wrap"... bvp_extend_wrap(node_in,npar_in,leftbc_in,npts_in,info_in,mxnsub_in,x_in,y_in,parameters_in,work_in,iwork_in,anew,bnew,order,p,max_num_subintervals,[n,ny1,ny2,np,nwork,niwork,np2]) Wrote C/API module "bvp_solverf" to file "build/src.linux-x86_64-2.7/scikits/bvp_solver/lib/bvp_solverfmodule.c" Fortran 90 wrappers are saved to "build/src.linux-x86_64-2.7/scikits/bvp_solver/lib/bvp_solverf-f2pywrappers2.f90" adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources. adding 'build/src.linux-x86_64-2.7' to include_dirs. error: file '/usr/lib64/python2.7/site-packages/numpy/f2py/src/fortranobject.c' does not exist error: Bad exit status from /usr/src/tmp/rpm-tmp.88309 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.88309 (%build) Command exited with non-zero status 1 4.47user 0.17system 0:05.46elapsed 85%CPU (0avgtext+0avgdata 54568maxresident)k 0inputs+0outputs (0major+62131minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-scikits.bvp_solver-1.1-alt3.git20120926.1.1.src.rpm' failed. Command exited with non-zero status 1 12.20user 2.27system 0:15.99elapsed 90%CPU (0avgtext+0avgdata 121884maxresident)k 16inputs+0outputs (0major+332470minor)pagefaults 0swaps