Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic type show #68

Open
mattsignorelli opened this issue Mar 7, 2024 · 2 comments
Open

Generic type show #68

mattsignorelli opened this issue Mar 7, 2024 · 2 comments
Assignees

Comments

@mattsignorelli
Copy link
Contributor

Maybe something similar to my Probe/TaylorMap show in NonlinearNormalForm, but show errors right now if some type that cannot be converted to a Float64 is passed into an element (e.g. Dual/TPS, etc). PrettyTables would ease such an implementation as you could define limits for each cell

@DavidSagan DavidSagan self-assigned this Mar 7, 2024
@DavidSagan
Copy link
Member

@mattsignorelli Please post a test case.

@mattsignorelli
Copy link
Contributor Author

using GTPSA, AcceleratorLattice
d1 = Descriptor(1,1);
@ele  el0 = BeginningEle(species_ref = species("photon"))
@ele d = Drift(L=vars()[1]);
dline = beamline("dline", [d],begin_ele=el0)
lat = expand("dlat",[dline])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants