Code Monkey home page Code Monkey logo

dfogn's Issues

Incorrect version dfogn on pypi.org

Installation using pip - don't work - installs an uncorrected version that is incompatible with numpy 1.20 and higher

Commit #1 don't increase version in version.py and setup.py (download_url).

Workaround: Manual installation (see README.rst)

Tests fail

For Python 3.11, setuptools 68.0.0 and numpy 1.25.1:

  • python setup.py test - completely fails;
  • pytest - 1 failed, 25 passed, 1 warning:
________________________________ TestSumsq.runTest _________________________________

self = <test_util.TestSumsq testMethod=runTest>

    def runTest(self):
        n = 10
        x = np.sin(np.arange(n))
        normx = np.sum(x**2)
>       self.assertAlmostEqual(normx, sumsq(x), 'Wrong answer')
E       TypeError: 'str' object cannot be interpreted as an integer

dfogn/tests/test_util.py:41: TypeError

For Python 2.7.18, setuptools 44.0.0.post20200102 and numpy 1.16.5:

  • python setup.py test - Test failed: <unittest.runner.TextTestResult run=26 errors=1 failures=0>:
======================================================================
ERROR: runTest (test_util.TestSumsq)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/leo/soft/valq/Yandex-Q/fortran_magic/dfogn-up/dfogn/tests/test_util.py", line 41, in runTest
    self.assertAlmostEqual(normx, sumsq(x), 'Wrong answer')
  File "/Users/leo/opt/anaconda3/envs/tfm27/lib/python2.7/unittest/case.py", line 555, in assertAlmostEqual
    if round(abs(second-first), places) == 0:
TypeError: 'unicode' object cannot be interpreted as an index

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.