-
Notifications
You must be signed in to change notification settings - Fork 53
Finally merging #85 #118
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
base: master
Are you sure you want to change the base?
Finally merging #85 #118
Conversation
Resolves Rename Run to Shot labscript-suite#81 Renamed classes/arguments/docs from run to shot and added dprecation notices where appropriate. Arguments (distinct from keyword arguments) were renamed without worrying about backwards compatibility under the assumption that people are not using them as keyword arguments (which is technically possible).
* split deprecation messages across multiple lines * Fixed deprecation message punctuation * Fixed missing property decorator in `Sequence` class * Updated docs to use `Shot` class.
…eprecation status.
Note: need to do a little testing to make sure the merge was done correctly, especially around the |
I have confirmed that the merge hasn't broken anything and the FutureWarning shows. Default python behavior has the warning only showing on first run of an analysis worker only. That may make the warning easy to miss for groups who don't restart lyse often. It's an easy fix to make it always show, but want to be sure that is what we want to do before constantly annoying a bunch of people to update. |
Does the warning show in the |
The warning does show in the output box. There are a few potential ways to show at each activation, but I don't super love them.
|
Going back through this, I am now realizing that the standard lyse dataframe column labels also include @philipstarkey I am highly tempted to make that step a separate PR since it is more likely to break things than this one is. Do you have a preference? Maybe you already made the choice to not touch those things and I should just respect that? |
Also convert some old `DeprecationWarning`s to `FutureWarning`s so the users actually see them.
The more I look at this, the less convinced I am that it is worth the trouble. As much as I prefer the paradigm of shot is a single execution in BLACS, sequence is a collection of shots, and run=engage in runmanager and therefore could be either; I'm more inclined to go through and carefully scrub out shots in favor of runs to ensure some consistency while saving us a headache. @philipstarkey (or others) I'm willing to be persuaded otherwise, but I think this should be rejected (or at least saved for labscript v4 that may or may not happen) |
Yep it's been 4+ years, I'm happy to abandon it if you don't think it's worth it. |
What I would propose is a revision of this that keeps the old syntax AND the new syntax. Then, as is typical for this sort of thing, throws a warning that the old syntax is depreciated and will be dropped in a future version.
Ian B. Spielman
Fellow, Joint Quantum Institute
National Institute of Standards and Technology and the University of Maryland
…----- WEB -----
http://ultracold.jqi.umd.edu
----- EMAIL -----
***@***.***
----- ZOOM -----
https://umd.zoom.us/j/7984811536
----- MAIL -----
UMD:
2207 Computer & Space Sciences Bldg.
College Park, MD 20742
NIST:
100 Bureau Drive, Stop 8424
Gaithersburg, MD 20899-8424 USA
----- OFFICE -----
UMD: Physical Sciences Complex, Room 2153
NIST: Building 216, Room B131
On Apr 11, 2025, at 20:59, Phil Starkey ***@***.***> wrote:
Yep it's been 4+ years, I'm happy to abandon it if you don't think it's worth it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
philipstarkey left a comment (labscript-suite/lyse#118)
Yep it's been 4+ years, I'm happy to abandon it if you don't think it's worth it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
I did think for a bit on how to backwards compatible support this change. The rub is that these underlying As far as I can tell, the only reasonable way to support both would be simply duplicating the columns (ie have a |
This PR resolves all the merge conflicts of #85 so it can finally be merged.