Skip to content

Firefly 1354 timeseries save table filename #1802

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

Closed
wants to merge 2 commits into from

Conversation

wmiipac
Copy link
Contributor

@wmiipac wmiipac commented Jun 25, 2025

View ticket for details. I added two test files in the ticket for testing purpose.

To test:
https://firefly-1354-ts.irsakudev.ipac.caltech.edu/irsaviewer/ts.html

  1. upload ztt-ts.tbl or wise-ts.tbl
  2. follow the steps in Luisa's video, by applying filter on the chart, then save the filtered table
  3. in the ztf case the table will be saved as table_ztf-Input-Data.tbl, for wise upload table name is table_wise-Input-Data.
  4. if an unspecified mission data is uploaded, there will be no mission name in the table name: table_Input-Data. I am open to suggestions.

@wmiipac wmiipac requested review from lrebull and kpuriIpac June 25, 2025 19:55
Copy link
Contributor

@kpuriIpac kpuriIpac left a comment

Choose a reason for hiding this comment

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

Changes look good, I made a comment about mission names possibly being capitalized. But even after that, a potential filename would look like:

table_WISE-Input-Data.tbl

Per the guide on confluence, I think the part WISE-Input-Data is fine as WISE is the mission name and Input Data is the table name, and since they're space separated, we use hyphens in the file name as mentioned in the guide.

But I think firefly's makeFileRequest adds the table_ prefix which not only looks awkward as is but also uses underscore (which when combined with hyphens in the file name is odd). If you want, I can take a look at that if it falls outside scope of this ticket.

For unspecified missions, I think it's fine to have table in there (but possibly still better to just have the actual table name, in this case Input Data), but that again is probably a fix in makeFileRequest in firefly.

@@ -281,7 +281,7 @@ export function* lcManager(params={}) {
function updateRawTableChart(timeCName, fluxCName, converterId) {

if (timeCName && fluxCName) {

const missionName = getConverter(converterId).missionName;
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: should we capitalize mission name so that ztf becomes ZTF, wise becomes WISE, and so on?

@lrebull
Copy link
Contributor

lrebull commented Jun 26, 2025

still broken for me -- see video -- it happens when i launch the timeseries tool from ztf search results.

video1446798995.mp4

@wmiipac
Copy link
Contributor Author

wmiipac commented Jun 26, 2025

@lrebull Now I understand you are send the ts data from Gator to ts tool not with the ts upload panel. I will look into the api call sent to ts from backend ( the g2p cgi call).

@wmiipac
Copy link
Contributor Author

wmiipac commented Jun 26, 2025

Per the guide on confluence, I think the part WISE-Input-Data is fine as WISE is the mission name and Input Data is the table name, and since they're space separated, we use hyphens in the file name as mentioned in the guide.

@kpuriIpac I thought about using upper case for mission name, but in the case of sending ts api from catalog search we have to use convertId which is defined in lower case. For the consistency, we just have them in lower case, if there is no strong objection

@kpuriIpac
Copy link
Contributor

@kpuriIpac I thought about using upper case for mission name, but in the case of sending ts api from catalog search we have to use convertId which is defined in lower case. For the consistency, we just have them in lower case, if there is no strong objection

Yes, I'm good with that!

@wmiipac
Copy link
Contributor Author

wmiipac commented Jun 26, 2025

@kpuriIpac currently save table and chart files are prefixed with table_ and chart_ , could change the underscore to dash

@kpuriIpac
Copy link
Contributor

@kpuriIpac currently save table and chart files are prefixed with table_ and chart_ , could change the underscore to dash

I think since we change any spaces in file names to hyphens (like Input Data becomes Input-Data) when saving files, I think that change would make sense?

@wmiipac wmiipac closed this Jun 27, 2025
@lrebull
Copy link
Contributor

lrebull commented Jun 27, 2025

looks great to me.

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.

3 participants