Skip to content

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

Open
bamesserly wants to merge 4 commits intomainfrom
feature/bmesserl_getOfficialMADPlaylists
Open

Functions to Get Official MAD Tuples From Only a Playlist String#8
bamesserly wants to merge 4 commits intomainfrom
feature/bmesserl_getOfficialMADPlaylists

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