Comments (5)
this is warning and it works on my laptop. anyway here must be checking to avoid divided by zero.
from ocelot.
divide by zero is not a 'warning'. The code works incorrectly, so this needs to be fixed.
from ocelot.
divided by zero is error which crushs the code. Here is not this case see below
print M[2, 3]/M[2, 2]_m.beta_y - M[2, 3]_m.alpha_y, arctan(M[2, 3]/(M[2, 2]_m.beta_y - M[2, 3]_m.alpha_y))
5.45502412182 0.00111206462467
6.07237322199 0.00123637344116
/home/sergey/Dropbox/DESY/repository/ocelot/cpbd/optics.py:170: RuntimeWarning: divide by zero encountered in double_scalars
d_mux = arctan(M[0, 1]/(M[0, 0]_m.beta_x - M[0, 1]_m.alpha_x))
6.69011365804 0.00136045838756
7.30828567367 0.00148433007011
from ocelot.
stranhe. Why does devide by zero not cause code to crash. Anyway it has nothing to do with coupliong
from ocelot.
done
from ocelot.
Related Issues (20)
- desy.demos.ebeam.track_flash2 crashes HOT 1
- update_transfer_maps
- plot sextupole in gui.accelerator HOT 1
- implement some reset() method in navigator so that same object can be reused in one script
- introduce matching of phase advance between 2 points in lattice HOT 1
- sextupole: remove parameter ms HOT 1
- 2nd order tracking with tilted quads HOT 1
- add tilt to multipole element
- remove matplotlib import from rad.radiation_py.py HOT 3
- cpbd.beam.ParticleArray.list2array()
- cobd.io HOT 2
- e_beam_params not working (on esrf cell)
- matching does not work HOT 5
- MethodTM HOT 3
- updating transfer maps does not work HOT 1
- gui.accelerator
- Issue regarding the reading of Output files when the rmax0 is set for a GENESIS simulation (wrong size of the grid) HOT 1
- demos.optics.ex7.py does not work
- types as strings are deprecated
- loading information from openpmd format in ocelot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocelot.