-
Notifications
You must be signed in to change notification settings - Fork 5
changes necessary for performing a Beam tomography #63
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Merge main
… no longer use linsolve but lsqminnorm, such that (in case of non-unique solution) the solution with min module is chosen
…ent variable in scans/profiles
* `MADX-optics/CompareOptics.m`: using a switch MatLab statement instead of a chain of if-elseif-else statements * `MADX-optics/ParseTfsTableHeader.m`: smarter parsing of .tfs file header * `MADX-tracking/PlotLossMap.m` and `MADX-tracking/ShowLossMap.m`: indices are used only when needed * `MADX-tracking/ReadLosses.m`: smarter handling of optional arguments to function interface + file format determined by `GetColumnsAndMappingTFS` * `MADX-tracking/ScatterPlot.m`: arrangement of plots determined by `GetNrowsNcols`, column names and columns to be plotted determined by `GetColumnsAndMappingTFS`, indices as used only when needed; * `general/Plot2DHistograms.m`: start showing 3D histograms as 2D color maps;
…e / max single part emittance) are computed only in case of hor/ver phase spaces
* autoranging x-axis based on the leftmost and rightmost non-zero bin; * decreasing thickness of histogram in each plot; * dedicated plot with legend only created only if we have more than 6 plots; * plot titles can be passed through the function interface;
…end + first data set is taken as ref in black solid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is a follow up of PR #58
Some functions are follow ups of what developed in https://github.com/amereghe/GuessBeam
Major changes:
.xlsxfiles for QA into.tfstables;Minor changes:
CompareOptics.m: phase advances can be compared;DisplayBeamProfiles.m: when showing spectra, the user decides wether to use energy or range or IDs of profiles as independent variable;PlotLattice.m: the function auto-detects if s-coordinate is given at the centre of the elements or at the end;PlotLossMap.m: indices can be omitted from interface;ScatterPlot.m: indices can be omitted from interface and possibility to receive data as a cell array or as a matrix;ShowLossMap.m: indices can be omitted from interface.