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

Functions to Get Official MAD Tuples From Only a Playlist String #8

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

bamesserly
Copy link
Collaborator

Two new prospective functions GetPlaylistFile and MakeMacroUtil.

Looking ahead to the ultimate MAD production – we'll want a function to just get these tuples. That's GetPlaylistFile.

Originally, I thought we should also make a function to create a MacroUtil object with these official tuples and just a playlist specification, but I've cooled to the idea. The MacroUtil CTORs are spartan as-is, and we can leave it to users to extend them if they want.

As is, I'm not ready to merge to main because the GetPlaylistFile uses my completely unvalidated p3 playlists. Ideally, a MAD production person would put these playlists together, put them into this repo, and we'd call those. So this is just a stand-in.

Additionally, we'll definitely want an analogous python function. I, like I suspect a lot of users, open the playlist file in python, loop over them, and submit grid jobs on each one. So that we'll be a very common use-case.

My idea to use ternary operator to switch between parent CTORs is not allowed.

Back to the drawing board.
Going with a function instead. But here are the latest changes for posterity.
Don't extend the class, instead just make a MakeMacroUtil function.
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.

1 participant