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

add holo command to generate a holography view #84

Merged
merged 18 commits into from
May 4, 2021
Merged

Conversation

mattieudv
Copy link
Contributor

Adding a feature to generate a view specifically useful for holography observations.

Do you have a way of testing this in the lab before rolling it out to site?

katsdpdisp/html/client.js Outdated Show resolved Hide resolved
katsdpdisp/html/index.html Outdated Show resolved Hide resolved
scripts/time_plot.py Show resolved Hide resolved
scripts/time_plot.py Outdated Show resolved Hide resolved
scripts/time_plot.py Outdated Show resolved Hide resolved
scripts/time_plot.py Outdated Show resolved Hide resolved
scripts/time_plot.py Outdated Show resolved Hide resolved
scripts/time_plot.py Outdated Show resolved Hide resolved
scripts/time_plot.py Outdated Show resolved Hide resolved
scripts/time_plot.py Outdated Show resolved Hide resolved
katsdpdisp/html/client.js Outdated Show resolved Hide resolved
katsdpdisp/html/client.js Outdated Show resolved Hide resolved
scripts/time_plot.py Outdated Show resolved Hide resolved
Copy link
Contributor

@bmerry bmerry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still a few questions open from my first review.

katsdpdisp/html/help.txt Outdated Show resolved Hide resolved
scripts/time_plot.py Outdated Show resolved Hide resolved
scripts/time_plot.py Outdated Show resolved Hide resolved
if b'track_ants' in obs_params:
track_ants=to_str(obs_params[b'track_ants']).split(',')
if b'scan_ants_always' in obs_params:
scan_ants_always=to_str(obs_params[b'scan_ants_always']).split(',')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eventually we'll get CAM to start using Python 3 and then obs_params will use strings. Instead of changing all this code to use bytes, you can just change how you get obs_params to obs_params = to_str(telstate.get(obs_params_keys, {})), which will convert all the keys and values to strings.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, they should all be changed in a future PR, to to_str

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is the first time you're using to_str, you cshould start using it right in this PR i.e. use to_str when you get obs_params out of telstate instead of on each access to it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear, I'm not suggesting you should try to roll out to_str to the rest of the code - just update the code that's new in this PR.

mattieudv and others added 3 commits April 16, 2021 10:16
Co-authored-by: Bruce Merry <1963944+bmerry@users.noreply.github.com>
Co-authored-by: Bruce Merry <1963944+bmerry@users.noreply.github.com>
@mattieudv
Copy link
Contributor Author

Still a few questions open from my first review.

I do not see these questions - most code blocks are outdated.

I added 'print scan_ants_always to console', would ideally like to merge this branch to master now for today's deployment.

katsdpdisp/html/help.txt Outdated Show resolved Hide resolved
scripts/time_plot.py Outdated Show resolved Hide resolved
scripts/time_plot.py Show resolved Hide resolved
@mattieudv
Copy link
Contributor Author

mattieudv commented May 4, 2021 via email

@mattieudv
Copy link
Contributor Author

mattieudv commented May 4, 2021 via email

Co-authored-by: Bruce Merry <1963944+bmerry@users.noreply.github.com>
Copy link
Contributor

@bmerry bmerry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hooray, reduced code and it's more robust :-)

@mattieudv
Copy link
Contributor Author

Merging now

@mattieudv mattieudv merged commit fabf502 into master May 4, 2021
@mattieudv mattieudv deleted the holoview branch May 4, 2021 14:43
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

Successfully merging this pull request may close these issues.

2 participants