-
Notifications
You must be signed in to change notification settings - Fork 3
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
Simbad/NED async cone search #336
Conversation
The content looks good but I think:
On a side note, this is a separate issue, but the page is becoming a bit too vertical for desktop devices, it would be good if the results were at the top along side the details and Aladin. In my opinion we should be aiming to represent most of the information that you'd normally want without having to scroll too much or click things. We know that our use case is that if someone clicks a source they want to know more about it, this should be as convenient as possible. |
OK, try this. I moved the results to the top row and combined them into a single table. The source of the result is appended to the object name. A separate column would be preferable but horizontal space is getting tight for smaller monitors. I set the breakpoints so the Aladin Lite viewer moves underneath if the window gets too narrow. |
Technically when the adjacent card to the parent changes size.
Thanks, I didn't catch the case when the table shrinks when the last page isn't full. The Aladin overflow is tricky. The cards are set to be of equal heights, but the internal Aladin Lite elements don't play well with others! The parent card element is being resized properly, but the canvas element that Aladin Lite puts in there is only updated when the window is resized, not the parent element (it listens for I found the function Aladin calls when the window is resized, so I've put in another listener on the table, this time on |
Yes, some rearrangement will be required after merging #305. The Bokeh lightcurve ends up appearing more compact, even with the 2-epoch graph, and I added the 2-epoch metrics to the details card so that now needs more horizontal space. I'd prefer to not have the backend features of this PR held up by waiting for the benchmarks before merging #305. If all that is left is layout tweaking, I suggest we merge this and continue to iterate on that in #305. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, everything looks good to me here. Only comment is to perhaps change the radius search on the SIMBAD link as we're doing changes anyway.
Good point. Done. |
I think we can also merge this now before the first release (@srggrs). |
ok I'll review it. Btw there some conflicts.... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think everything looks good. I personally prefer writing operations like this:
df_with_operations = (
df_raw[['col1', 'col2']]# selection line
.apply( . . . )# apply function line
.rename( . . . )# rename operation
. . . # add other operations for each line
)
so you end up with a line for each operation and the code would be more clear to me than:
df_with_oprations = df[
['col1', 'col2']
].apply( . . . )
Anyhow you don't need to follow this.
In any case there are few conflicts that need to be resolved before merging is permitted.
Added API endpoints for SIMBAD and NED cone searches via astroquery.
Added a DataTable for SIMBAD and NED cone search results on the source detail page. These use the new API endpoints so they do not hold up the page load and are rendered when ready.
The DataTables are collapsed by default.
The cone searches have a radius of 1 arcmin.
Closes #331