Skip to content

Particle phase attribute labels printed in wrong order #78

@austin-hoover

Description

@austin-hoover

BunchTuneAnalysis creates a bunch attribute called ParticlePhaseAttributes. ParticlePhaseAttributes is a std::map with keys "xLastPhase", "yLastPhase", "xLastTune", "yLastTune", "xAction", "yAction". The attribute array has columns in that order.

When the attributes are printed, the data remain in that order, but the label order is incorrect. The printed order is

% PARTICLE_ATTRIBUTES_CONTROLLER_DICT ParticlePhaseAttributes size 6 xAction 0 xLastPhase 0 xLastTune 0 yAction 0 yLastPhase 0 yLastTune 0 

Looks like it is sorted alphabetically.

Here is a test script: https://github.com/austin-hoover/pyorbit/blob/tune/examples/Diagnostics/Tunes/test_tune.py. The tunes in this example are 0.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions