Giter Site home page Giter Site logo

numga's People

Contributors

eelcohoogendoorn avatar robinka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

robinka knut0815

numga's Issues

'tuple index out of range' in NumpyMultiVector.__len__

When I tried to run the 'run_chain_numpy.py' example, I got the following error:

NumpyMultiVector.__len__(self)
     45 def __len__(self):
---> 46 	return self.shape[0]

IndexError: tuple index out of range

I was able to fix this by returning 1 if it self.shape is an empty tuple:

   45  def __len__(self):
   46    if len(self.shape)==0:
   47      return 1
   48    else:
   49      return self.shape[0]

This worked, but I am not sure if self.shape should ever have been an empty tuple to begin with. Maybe the real error is somewhere else?

'divide by zero' warning when running 'test_circle_reflect' test in 'test_conformal.py'

I get the following warning when I run the test_circle_reflect example:

/private/var/mobile/Containers/Data/Application/77881549-3FA6-4E4B-803F-D53B172FC865/Documents/myrepo/
numga/multivector/multivector.py:311: 
RuntimeWarning: divide by zero encountered in divide
  return self.copy(values=self.values / other.values)

This is only a warning, so I am not sure if it is a bug.

I suspect the reason for the 'divide by zero' warning is that the center of one of the mirrored circles is at the origin.
There is also a circle with a radius of 5e14 (presumably infinity) being drawn, and I had to set xlim and ylim to +-40 to zoom in to see the other circles.

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.