Skip to content

Firefly-1483: improve support for triview #58

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
merged 1 commit into from
May 23, 2024
Merged

Conversation

robyww
Copy link
Contributor

@robyww robyww commented May 16, 2024

Firefly-1483: change firefly_client to better support triview and plan to deprecate slate

see firefly PR: Caltech-IPAC/firefly#1557
see jupyter_firefly_extension PR: Caltech-IPAC/jupyter_firefly_extensions#29

  • firefly_client knows what sort of view it is using triview/slate/other
  • added change_triview_layout
  • warnings and noop when wrong function is used

Testing

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@jaladh-singhal jaladh-singhal left a comment

Choose a reason for hiding this comment

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

This looks great! Triview mode works really well and it's good that it allows user to not concern with layout (like in slate). It's also good that it combines the results from two different notebooks to one client's triview now.

The naming of notebooks is confusing (it was already not meaningful with names like 'slate-demo', 'slate-explicit') but now they were harder for me to follow. Because after these changes, they're no longer "slate" but triview (default). Naming shouldn't really have mode in it, it should be just client_demo or api_demo, etc.

Also we have duplicate notebooks with lab_client instead of simple client - we should come up with a standardised naming scheme in general, for example notebooks. [Thinking more about it] we earlier had: make_client or make_lab_client, slate, and multi modes, but now we have: make_client or make_lab_client, triview or slate, single or multi client-view modes (so more permutations).

Rest all looks great except a few minor comments.

@@ -0,0 +1,500 @@
{
Copy link
Member

@jaladh-singhal jaladh-singhal May 21, 2024

Choose a reason for hiding this comment

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

This file seems a copy of slate-demo-explicit, except with make_lab_client instead of make_client You might wanna rename the filename's last part from -slate-steps to -demo-explicit like the case with other file (it took me a while to follow)


Reply via ReviewNB

@robyww robyww marked this pull request as ready for review May 23, 2024 17:51
@@ -17,31 +17,31 @@
"## Setup"
Copy link
Member

@jaladh-singhal jaladh-singhal May 23, 2024

Choose a reason for hiding this comment

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

here too


Reply via ReviewNB

@@ -17,57 +17,31 @@
"## Setup"
Copy link
Member

@jaladh-singhal jaladh-singhal May 23, 2024

Choose a reason for hiding this comment

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

This too got left


Reply via ReviewNB

@@ -0,0 +1,303 @@
{
Copy link
Member

@jaladh-singhal jaladh-singhal May 23, 2024

Choose a reason for hiding this comment

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

I think this got left - thanks for removing code


Reply via ReviewNB

Copy link
Member

@jaladh-singhal jaladh-singhal left a comment

Choose a reason for hiding this comment

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

The names are very clear now - thanks. Also conditional creation of fc with using_lab is perfect (and avoids redundancy)!

Just some markdown text got left for python 2 imports. Rest all is great!

  - firefly_client knows what sort of view it is using triview/slate/other
  - added change_triview_layout using new firefly dispatch
  - warnings and noop when wrong function is used
  - massive cleanup of notebooks
  - inclues reponse to feedback
@robyww robyww force-pushed the FIREFLY-1483-triview branch from abd0929 to 0b9ec49 Compare May 23, 2024 22:02
@robyww robyww merged commit 0305adb into master May 23, 2024
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