7eaa8242bd
Always show selected_imp in the implementation list for an option. Fix imp_statechange bug (imp undefined for disabled options).
Ferdi Franceschini2014-07-06 09:40:37 +10:00
37e75ab5b4
Make harmless changes to reduce pylint noise. Work out what to do about warnings and apparent errors later.
Ferdi Franceschini2014-07-05 22:32:34 +10:00
fb93daeb46
Provide set_imp(opt,imp) method to keep opt and imp mappings in sync. Added convenience method iter_implementations(opt) to enable looping over an option's implementation list. Setting option labels now works properly when switching configurations.
Ferdi Franceschini2014-07-05 19:37:23 +10:00
6625060fa0
Set opt:imp as the label on option checkboxes. Do this when selecting an implementation and when enabling an option. TODO: When an option is disabled insert its implementation into the implementation list.
Ferdi Franceschini2014-07-04 17:19:36 +10:00
a802f98a24
Remove unavailable implementations from the impelementation list when an option is selected.
Ferdi Franceschini2014-07-04 13:46:47 +10:00
abcf19553b
Copy original file in backup_files method instead of renaming it in case write_config_file fails. Add a 'none' entry to the implementation list.
Ferdi Franceschini2014-07-03 23:36:43 +10:00
294b6fa776
Make config_edit.py easier to browse by grouping order of class declarations.
Ferdi Franceschini2014-07-03 18:29:39 +10:00
7a4ce1f234
Write option id into driver implementation section when saving the sics_config.ini
Ferdi Franceschini2014-07-02 14:40:22 +10:00
87bf34c7b1
Renamed type to optype in sics_config.ini so devices like multimeters can set a data type parameter eg datype config_edit.py uses optype instead of type Also the listwalker is now being generated dynamically so that in the future unavailable drivers can be moved from the list of radiobuttons.
Ferdi Franceschini2014-07-02 08:50:17 +10:00
89edcef811
Modified the last two of the old drivers for the new sics_config.ini format.
Ferdi Franceschini2014-07-02 08:40:45 +10:00
5ee2634d30
Modified some more old drivers to use config_dict as in gen_sct.py TODO environment/sct_keithley_2700.tcl environment/sct_protek_common.tcl
Ferdi Franceschini2014-07-01 20:12:42 +10:00
bd93c34875
copy.copy() doesn't work with urwid on the SL6 VMs. Explicitly make a new listwalker imp_lw to avoid overwriting the first entry in self.imp_lw_dict[opt] Python 2.6 requires field numbers for format strings.
Ferdi Franceschini2014-06-30 10:09:34 +10:00
e971cd8b64
New sicsconfig.ini file configuration editor. Updated wombat sics_config.ini and gen_sct.py Generated new tcl files from sct templates and modified some old sct_*.tcl drivers.
Ferdi Franceschini2014-06-30 09:08:19 +10:00
4fb94efe9a
This is the first version of the newly refactored status code handling. Status codes are now determined by a special task which inspects SICS for what is going on. Before this was a global variable which caused conflicts when multiple instances in the code tried to set it.
koennecke2014-06-27 11:05:27 +02:00
a363bc3c2c
Fix bug introduced when AttrWrap was replaced by AttrMap. AttrWrap transparently passes method calls through to the widget but you need to use the original_widget attribute with AttrMap to access methods on the underlying widget.
Ferdi Franceschini2014-06-24 12:45:18 +10:00
6b18de0a03
Add huber asyncprotocol and make huber_ap and omron_ap to remove name conflicts
Douglas Clowes2014-06-23 12:47:33 +10:00
565ba9d10d
SICS-752 Escape all embedded braces in hlistprop tcllist output
Douglas Clowes2014-06-23 12:40:26 +10:00
6dba13a5ab
Add CF1 to Wombat INI file and fix ordering of LS336 sections.
Ferdi Franceschini2014-06-20 08:16:23 +10:00
0b293e5399
Use the new make_vmot command to make a virtual motor has the same klass as the real motor it is chained to.
Ferdi Franceschini2014-06-20 08:15:43 +10:00
35c5ccbb19
Added command to make virtual motor which hdbchains to a real motor.
Ferdi Franceschini2014-06-20 08:14:40 +10:00
25346f5e02
Include a header file for the omron protocol
Douglas Clowes2014-06-18 10:40:41 +10:00
881fce1feb
SICS-750 Restrict sensitive motor commands to debug+manager or initialization
Douglas Clowes2014-06-19 14:27:57 +10:00
1da5fc9062
Create and use sicsglobal.h and add isDuringInitialization
Douglas Clowes2014-06-19 14:24:46 +10:00
0d39693c3b
Add 'make sct' to generate sct_*.tcl from all *.sct files in tree below
Douglas Clowes2014-06-18 10:39:38 +10:00
786a6ef2a8
SICS-749: Allow INT and FLOAT nodes for SCT Drive Adapter (and list)
Douglas Clowes2014-06-19 16:25:18 +10:00
713452aac6
Added sap ten position virtual motor for sample aperture.
Ferdi Franceschini2014-06-18 16:52:20 +10:00
0711340da7
The biggest aperture has been setup as the zero position on the sample aperture. The changes have been sent to Dan for inclusion in the Bilby motion control spreadsheet.
Ferdi Franceschini2014-06-18 16:01:19 +10:00
e32e46b84e
Added sap eleven position virtual motor to select apertures via sapmot.
Ferdi Franceschini2014-06-17 22:29:56 +10:00
3bffbf720f
Added sapmot sample aperture motor from new Bilby motion control spreadsheet.
Ferdi Franceschini2014-06-17 22:29:13 +10:00
fa63ed8eed
Dont create control alias unless there is a name to use
Douglas Clowes2014-06-17 17:25:17 +10:00
27ed29aea5
Allow SCT files to have numbers with a leading minus
Douglas Clowes2014-06-17 13:57:45 +10:00
eadb336ef3
Simple hack to allow reading inputs on the fake Galil. This was done for the shutter.sct on Bilby.
Ferdi Franceschini2014-06-17 12:29:50 +10:00
79cedd58dc
Fix return value for simulated t0_chopper_id. Also save value as an array, this is useful when testing the code.
Ferdi Franceschini2014-06-17 12:29:24 +10:00
e0edfb8d0a
Implement the Ltof_<det> time of flight length calculations and the nguide selection command.
Ferdi Franceschini2014-06-17 12:08:29 +10:00
2996889ea5
The timing chopper isn't necessarily the same as the master chopper.
Ferdi Franceschini2014-06-17 07:20:27 +10:00
c00c317b69
Changed aperture rule to allow driving apertures up past 5 degrees. This was done to facilitate implementation of the nguide guide selection command. Also fixed miscount of collimator sections.
Ferdi Franceschini2014-06-17 07:17:23 +10:00
e817fc9ed7
New aperture encoders and beamstops 4 and 5 added to Bilby.
Ferdi Franceschini2014-06-16 11:37:58 +10:00
f9a8b2b005
Save the tank position as an array just to be consistent with the other motion axes.
Ferdi Franceschini2014-06-17 12:27:28 +10:00