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

Save session parameters (not session) to use with other datasets #2347

Closed
Gabriel-p opened this issue Dec 28, 2022 · 2 comments
Closed

Save session parameters (not session) to use with other datasets #2347

Gabriel-p opened this issue Dec 28, 2022 · 2 comments

Comments

@Gabriel-p
Copy link

Is your feature request related to a problem? Please describe it:
I have a repetitive check that I need to perform on lots of different datasets which means I'm always repeating tasks to produce the same plots. The datasets have the same columns but obviously different data.

Describe the solution you'd like:
I'd like to be able to store the session parameters used to generate these plots so that I can apply them to a new dataset.

Describe alternatives you've considered:
The only alternative so far is re-doing all the plots for each new imported dataset.

If it is not related to a problem--please describe the feature:
Time saving

Additional context:
Add any other context or screenshots about the feature request here.

@jfoster17
Copy link
Member

I'm not totally clear what you mean by 'session parameters' here. Do you mean specific plot types of specific configurations of those plots (or both)? Or subset definitions?

The .glu session file is human-readable. If you data sets are really almost-exactly the same you could try saving a session file and then editing it to use a different data file path (I recommend saving the session file with the "relative paths" option).

Otherwise, I think your best approach is probably to write a script that sets up the plots the way you need them and then run the script for each dataset. See the documentation here for help on starting glue with a Python script. Again, you can get the value of parameters from a save session file. Then you might just need to figure out the API for how to define plots and subsets from a script.

@Gabriel-p
Copy link
Author

Thank you @jfoster17 , I'll try your suggestions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants