Skip to content

What functions should work when pysmurf is offline? #356

Closed Answered by jlashner
Prakamya01 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm just going to link shawn's reply from slaclab/pysmurf#674 as the answer for this for now, but feel free to re-open or change that if there's more you'd like to discuss about this!

One way shawn / prakamya have figured out to load old tracking data with pysmurf in offline mode is to hard-code the tone_frequency_offset array so that it doesn't pull from rogue, as can be seen below:

S.get_tone_frequency_offset_mhz = lambda band : np.array([   0. ,  307.2,  153.6, -153.6,   76.8, -230.4,  230.4,  -76.8,
         38.4, -268.8,  192. , -115.2,  115.2, -192. ,  268.8,  -38.4,
         19.2, -288. ,  172.8, -134.4,   96. , -211.2,  249.6,  -57.6,
         57.6, -249.6,  211.2,  -96. ,  134.4,…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@Prakamya01
Comment options

@jlashner
Comment options

Comment options

You must be logged in to vote
4 replies
@msilvafe
Comment options

@Prakamya01
Comment options

@jlashner
Comment options

@jlashner
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jlashner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants