4195 Commits

Author SHA1 Message Date
d892d6c4df Fix broken catch block 2014-07-15 12:51:41 +10:00
c1b5b558f0 Make all sct drivers. 2014-07-15 10:56:27 +10:00
ac136f3426 Cleanup legacy Julabo driver. 2014-07-15 08:59:20 +10:00
c83e5d681c Update sics_config.ini files for Wombat and Quokka. 2014-07-15 08:59:19 +10:00
ee539a5341 Load wrapper code for legacy drivers. 2014-07-15 08:59:18 +10:00
58a64da712 Wrapper code for legacy drivers. 2014-07-15 08:59:18 +10:00
67b8576f35 Modify legacy drivers so that they can be called by sct wrappers and define wrapper templates. 2014-07-15 08:59:17 +10:00
6112c8afa0 Don't copy 'id' from the option section into the implementation section.
The read_config procs should fetch arguments from both the option and implemention sections.
2014-07-15 08:59:16 +10:00
deb6716f9b make_args can now be set in the option section of a sics_config.ini 2014-07-15 08:59:16 +10:00
9305d6da53 Don't fetch an implementation if an option is disabled. 2014-07-15 08:59:15 +10:00
d010e76076 SICS-759 Make asyncprotocol look for the list command in the correct place. 2014-07-14 13:19:52 +10:00
f916462be6 Updated julabo SCT template 2014-07-11 18:30:55 +10:00
47fbb1979e You can now set the privilege and type for MakeSICSObj in an sct template. 2014-07-11 17:14:08 +10:00
867c6c8eaa Generate a wrapper for the old protek driver from a protekmm.sct template. 2014-07-11 13:52:37 +10:00
4f72bcaaf5 allow legacy sct controllers in generated drivers 2014-07-11 13:37:50 +10:00
5ee7e6719f Defer makesctdrive to end of mkDriver to avoid possible forward references. 2014-07-11 13:37:35 +10:00
0dbe7bd53e Allow empty braces on sct vars and remove semicolons from python code 2014-07-11 13:37:21 +10:00
35067c3673 Clean up Nagelfar warnings in generated drivers 2014-07-11 13:37:17 +10:00
a9e4c80a87 Reindent gen_sct.py to 4 spaces 2014-07-11 13:37:02 +10:00
16b228dc0e Sort and save the the Quokka sics_config.ini file in its default configuration. 2014-07-11 09:30:59 +10:00
679651bd28 Add some help and feedback when saving a file. 2014-07-11 08:49:40 +10:00
6aa229ee75 Driver changes made on ics1-wombat-test. 2014-07-11 08:49:40 +10:00
d79865edb4 Write sections to the configuration file in the same order as the screen layout. 2014-07-11 08:49:39 +10:00
8953273dac Show IP address and PORT number for implmentations that have them. 2014-07-11 08:49:38 +10:00
9be5cc4cec set_imp now works in initialisation code and makes sure that 'none' is not used as a key in imp2opt_dict.
Also provide consistency_check() method to check that there is a one to one
mapping between options and implementations.
2014-07-11 08:49:37 +10:00
1b4cca9390 Options not in the cascade list should have their implementation set to 'none' 2014-07-11 08:49:37 +10:00
b5d3b745c3 Don't allow the implementation of permanent options to be set to 'none'. 2014-07-11 08:49:36 +10:00
a294d50a1d A bit of refactoring, a bit of housekeeping. Make Pylint happy. Mmmmm nice. 2014-07-11 08:49:35 +10:00
dee4b0430e The order that __get_options() and __get_implementations() are called in shouldn't matter. 2014-07-11 08:49:35 +10:00
cc6634abe9 The implementation field is set only if an option is enabled in the config file.
All other options should be shown as disabled with 'none' as the implementation.
Conflicts between enabled options are resolved in favour of the first option returned
by the ConfigParser which isn't necessarily the first enabled option in the file.
Only enabled options are mapped in the imp2opt_dict dictionary.
2014-07-11 08:49:34 +10:00
cd80f567fe Only do the rotary_bits if the previous counts is valid
This saves decrementing it the first time through because it is in
the fourth quadrant and the initial value (zero) is in the first.
2014-07-10 13:14:27 +10:00
f05bf2e7db Change Dingo stth for multi-turn rotary encoder 2014-07-09 15:02:24 +10:00
f6dfc76ada Pull back changes from Dingo 2014-07-09 15:01:21 +10:00
709118c286 - Added isactive command to scan. Such that collect can test for another scan running before starting 2014-07-08 08:47:28 +02:00
cc5400c595 Pull back changes in Kookaburra config 2014-07-07 14:48:12 +10:00
852f87f131 Sort and massage Quokka's sics_config.ini 2014-07-07 13:59:41 +10:00
737e56670b Use shutil.copy2 to preserve file dates 2014-07-07 13:59:03 +10:00
47d5604e1e Make the Julabo work for asyncqueue adapters 2014-07-07 13:58:08 +10:00
7193129956 Set bruker IP address and port 2014-07-07 10:25:09 +10:00
8a8a08e57f Add sics_config.ini to quokka. 2014-07-07 10:22:06 +10:00
cc39cc08fe Select sample changer from sics_config.ini 2014-07-07 09:15:54 +10:00
3ce563696f Remove debug output and cleanup a bit. 2014-07-06 20:15:41 +10:00
46b0e1a9a3 Provide navigation context for __imp_unavailable method. 2014-07-06 20:09:15 +10:00
f1b13aa7c6 Remove dependency of viewer on data and manager objects.
It just requires listboxes for the layout.
Also use new style class definition for InstConfigData and InstConfigManager.
2014-07-06 18:27:45 +10:00
80cc3350c5 Experiment with "pylint: disable" to eliminate false positives from pylint. 2014-07-06 15:08:03 +10:00
9228dd2c0c Remove unused variable. 2014-07-06 12:15:13 +10:00
82268ecc2e Make sure all instance attributes are defined in __init__ methods.
Also play with named arguments that don't define a default value (**kwargs)
2014-07-06 12:03:19 +10:00
a5ea730343 Don't redefine the 'dict' builtin. (Caught by pylint)
Also improve variable name consistency.
2014-07-06 11:47:23 +10:00
8a6004e12d Stop pylint complaining about unimplemented abstract methods.
But instantiating an apparently abstract class didn't bother Python???
2014-07-06 11:14:36 +10:00
13c837d9b5 Reduce pylint noise and remove unused variable imp_lw 2014-07-06 10:13:40 +10:00