Giter VIP home page Giter VIP logo

simexm's People

Contributors

jwohlwend avatar

Watchers

 avatar  avatar

simexm's Issues

Error when sometimes running simulation

I get this error when running the simulation:
cd examples; python run_sim.py; cd .. Performing labeling simulation... Performing expansion simulation... Performing optics simulation... Traceback (most recent call last): File "run_sim.py", line 148, in <module> sim_volume = optical_unit.resolve_volume(expanded_volume, expanded_dim, labeling_unit.get_fluors_used()) File "SimExm/src/simulation/models/optics.pyx", line 112, in SimExm.src.simulation.models.optics.ConfocalUnit.resolve_volume (src/simulation/models/optics.c:4138) File "SimExm/src/simulation/models/optics.pyx", line 125, in SimExm.src.simulation.models.optics.ConfocalUnit.resolve_volume (src/simulation/models/optics.c:3937) File "SimExm/src/simulation/models/optics.pyx", line 174, in SimExm.src.simulation.models.optics.ConfocalUnit.resolve_channel (src/simulation/models/optics.c:5064) File "SimExm/src/simulation/models/optics.pyx", line 423, in SimExm.src.simulation.models.optics.ConfocalUnit.normalize (src/simulation/models/optics.c:9940) ZeroDivisionError: float division

This error only occurs some of the time when I "make run" but not always. How do I fix this?

Dividing by 0 error still happening

When I run the simulator, I am getting this error:

Traceback (most recent call last):
  File "run_sim.py", line 148, in <module>
    sim_volume = optical_unit.resolve_volume(expanded_volume, expanded_dim, labeling_unit.get_fluors_used())
  File "SimExm/src/simulation/models/optics.pyx", line 112, in SimExm.src.simulation.models.optics.ConfocalUnit.resolve_volume (src/simulation/models/optics.c:4138)
  File "SimExm/src/simulation/models/optics.pyx", line 125, in SimExm.src.simulation.models.optics.ConfocalUnit.resolve_volume (src/simulation/models/optics.c:3937)
  File "SimExm/src/simulation/models/optics.pyx", line 174, in SimExm.src.simulation.models.optics.ConfocalUnit.resolve_channel (src/simulation/models/optics.c:5064)
  File "SimExm/src/simulation/models/optics.pyx", line 423, in SimExm.src.simulation.models.optics.ConfocalUnit.normalize (src/simulation/models/optics.c:9940)
ZeroDivisionError: float division

What could be the issue?

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.