-
Notifications
You must be signed in to change notification settings - Fork 189
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
artiq_master.py GUI regeneration upon modification of experiment file #89
Comments
You are using it incorrectly. You need to:
When doing that, GUI elements are properly added and removed on push. There is no function to remove the default values stored in the GUI state and use those from the experiment instead, is that really needed? |
OK. This is helpful to know. I was indeed using it wrong. It would be
It's rather helpful to be able to force reloading (or not) of default It's helpful if the user can choose whether or not to reload (and self.attr_argument("reload_default_attr", BooleanValue(True), default=False) would work. But there needs to be a way of telling the GUI about this choice. |
Please link to the following page in the ARTIQ documentation. I didn't http://www.saintsjd.com/2011/01/what-is-a-bare-git-repository/ On Thu, Aug 13, 2015 at 4:51 PM, Joe Britton joe.britton@gmail.com wrote:
|
"The ARTIQ master fetches the last (atomically) completed commit at the |
|
GUI updates are still broken. For example, if I add two Scannables to flopping_f_simulation.py self.attr_argument("frequency_scan", Scannable(
default=LinearScan(1000, 2000, 100)))
self.attr_argument("johns_scan", Scannable(
default=LinearScan(1000, 2000, 100))) To update the GUI I have to stop artiq_master, delete artiq_gui.pyon, restart artiq_master and restart artiq_gui. |
My error. GUI updates are no longer broken. |
I'm running into a similar issue now where I can't get the GUI to update despite the experiment updating. I created new master repository, The contents of
This gives me a GUI in the dashboard with Now I modify the experiment to include a new variable
I commit this and push, the dashboard updates. Reopen the experiment, there is no dropdown labeled I now copy the experiment to new file named I made sure that I'm pointing artiq-master to a bare repository, I'm pushing from a separate non-bare repository, and I verified that the post-receive hook is working. |
Click 'Recompute all arguments' in the panel that appears after you open the experiment. NB, this is a different issue. |
Forward worker manager logs to the master
Here, testrepo is cloned from a local repository I setup on my machine. I can launch artiq_master and see the experiments in artiq_gui (labeled by git commit ID). OK. Baseline working fine.
rabi2@vboxartiq:~/artiq-dev/artiq/examples/master/testrepo$ ls arguments_demo.py flopping_f_simulation.py pdb.pyon tdr.py ddb.pyon handover.py photon_histogram.py transport.py dds_test.py mandelbrot.py speed_benchmark.py
Check if artiq_gui experiment is automatically updated if I edit, commit and push arguments_demo.py
Expecting gui to use version a5f72d. OK it is so. However, the experiment Log is still reporting that default for NoScan is 666 instead of 313313. It looks like the GUI didn't get regenerated. I was able to add an additional print() in run() method of arguments_demo.py and see that it gets printed in the Log. So it looks like this is just a GUI issue.
I think this is the desired default behavior. We often tweak experiment recipes and want to re-run them using a particular set of run-time parameters that might be non-default attr_arguments(). However, there needs to be a way of forcing the GUI to reload new defaults or to regenerate itself in case, say, a new attr_argument() gets added. This might be a button in the GUI.
Anyway, let's try adding a new attr_arguments().
Start master
Looks like artiq_master is now not processing arguments_demo.py. Roll back to an earlier commit prior to when arguments_demo.py (and pdb.pyon) were edited.
Restart master.
Summary:
The text was updated successfully, but these errors were encountered: