bmad-sim / NonlinearNormalForm.jl

Nonlinear normal form analysis using truncated power series
https://bmad-sim.github.io/NonlinearNormalForm.jl/
GNU General Public License v3.0
1 stars 0 forks source link

Clean up `use` #29

Open mattsignorelli opened 2 months ago

mattsignorelli commented 2 months ago

Right now, following the convention in GTPSA, use kwarg in any kind of map or vectorfield constructor tells to create the map using the same GTPSA descriptor as specified in use (could be descriptor, TPS, map, etc). Other parameters of the map (coasting beam, radiation, spin, etc) have to be explicitly specified in other kwargs if the map is not explicitly provided. For the constructor which takes in a matrix, it might be useful to have a similar use kwarg which only takes in a map and copies all these other parameters as well.

mattsignorelli commented 2 months ago

use is reserved only for GTPSA descriptor, it must not do anything else