Skip to content
Snippets Groups Projects
  1. Jul 17, 2017
  2. Apr 20, 2017
  3. Apr 11, 2017
  4. Apr 04, 2017
  5. Apr 03, 2017
  6. Mar 16, 2017
  7. Mar 13, 2017
    • Alan De Smet's avatar
      when gui loads a file, guess at default variable · e219ba43
      Alan De Smet authored
      If we had a file open in that "slot" (A or B) already, and the selected variable name is also present in the new file, pick that.
      If that doesn't work, check to see if the selected variable name in the other file (B or A) is present, and if so pick that.
      Otherwise stick with the existing default: the first item.
      
      This should speed things up a little bit when bouncing between files, as the variable the user is most likely interested will already be selected.
      e219ba43
    • Alan De Smet's avatar
      loosely synchronize variable selection in gui. · ae766fa0
      Alan De Smet authored
      In the GUI, if the user changes the A variable, and the A and B variables were the same, try to change the B variable to match.
      
      Changed from catching activated to currentIndexChanged, as the former doesn't work when the selection is programmatically changed.
      ae766fa0
  8. Mar 09, 2017
  9. Mar 08, 2017
  10. Dec 28, 2016
    • Alan De Smet's avatar
      Raise built-in open exceptions if file inaccessible · 5718694e
      Alan De Smet authored
      If the file is inaccessible, raise the same Exception the built-in global open() would.  This makes for more specific and helpful errors. This is done by doing an experimental open() on the file and not catching anything.
      5718694e
  11. Dec 21, 2016
  12. Dec 20, 2016
  13. Dec 12, 2016
  14. Dec 07, 2016
  15. Dec 05, 2016
    • Alan De Smet's avatar
      Statistics now work on scalar values (0d arrays) · 7470eaa5
      Alan De Smet authored
      For variables who shape is "0" (that is, a simple scalar value), statistics calculations now work.  Although many of the statistics are silly, this is useful for report generation.
      
      Implementation: DataObject has a new function "holding_array" which in most cases returns itself. But if self.data.shape==0, it returns a copy of itself with self.data's scalar value tossed into a single element array.  Now that the data is an array, as expected, the statistics code works fine.
      7470eaa5
  16. Aug 12, 2016
  17. Aug 10, 2016
    • Alan De Smet's avatar
      add --parsable, formatting info output for parsing · fe19e296
      Alan De Smet authored
      "glance info --parsable" now outputs the results in tab deliminated format, repeating the filename on each line, making it easier to parse programmatically. Additional fields may be added later!
      
      At the moment only supports "info".  May add support for other formats later.
      fe19e296
    • Alan De Smet's avatar
      "Data shape" shows single value arrays directly · da7b268b
      Alan De Smet authored
      In glance gui, if a variable has only a single value, it will be displayed directly in the "Data shape" field.
      da7b268b
    • Alan De Smet's avatar
      convert tabs to spaces, per style · 4b5889d1
      Alan De Smet authored
      4b5889d1
    • Alan De Smet's avatar
      support GUI Display Data on 0d variables · e0647cae
      Alan De Smet authored
      A 0 dimention numpy array is weird.  It's neither a scalar, nor a 1 dimensional array with a single element. "Display Data" silently refused to work for such values.
      
      This change converts the 0d array into a 1d array with a single element immediately before trying to display it.  Result: Display Data now works on 0d arrays, showing the single value as expected.
      e0647cae
  18. Jul 27, 2016
  19. Jul 25, 2016
  20. Jul 14, 2016
    • Alan De Smet's avatar
      Sort variables in output from stats & inspectStats. · 6ec2323e
      Alan De Smet authored
      Previously output was ordered in whatever order the set happened to offer them in. This was not stable between different Python versions.  Ordered alphabetically(ish) should be more human friendly, and will simplify the tests.
      6ec2323e
Loading