Commits · dbc7437779f2a658644426e2495f33b6af8dd5a0
- May 10, 2013
-
-
Mathias Bavay authored
-
- May 08, 2013
-
-
Mathias Bavay authored
-
- Apr 18, 2013
-
-
Mathias Bavay authored
-
- Apr 17, 2013
-
-
Mathias Bavay authored
-
Mathias Bavay authored
-
- Apr 11, 2013
-
-
Mathias Bavay authored
-
- Apr 10, 2013
-
-
Mathias Bavay authored
-
Mathias Bavay authored
-
- Apr 08, 2013
-
-
Mathias Bavay authored
-
- Mar 28, 2013
-
-
Mathias Bavay authored
-
- Mar 26, 2013
-
-
Mathias Bavay authored
-
- Mar 25, 2013
-
-
Mathias Bavay authored
-
- Mar 23, 2013
-
-
Mathias Bavay authored
-
Mathias Bavay authored
-
- Mar 22, 2013
-
-
Mathias Bavay authored
-
Mathias Bavay authored
-
Mathias Bavay authored
-
Mathias Bavay authored
-
Mathias Bavay authored
-
- Mar 21, 2013
-
-
Mathias Bavay authored
-
Mathias Bavay authored
-
Mathias Bavay authored
-
Mathias Bavay authored
-
- Mar 19, 2013
-
-
Mathias Bavay authored
-
Mathias Bavay authored
-
- Mar 18, 2013
-
-
Mathias Bavay authored
-
- Mar 14, 2013
-
-
Mathias Bavay authored
-
- Mar 13, 2013
-
-
Mathias Bavay authored
-
- Mar 12, 2013
-
-
Mathias Bavay authored
-
- Mar 11, 2013
-
-
Mathias Bavay authored
-
Mathias Bavay authored
-
- Mar 10, 2013
-
-
Mathias Bavay authored
-
Mathias Bavay authored
-
- Mar 05, 2013
-
-
Mathias Bavay authored
-
Mathias Bavay authored
-
Mathias Bavay authored
-
Mathias Bavay authored
-
Mathias Bavay authored
-
- Mar 04, 2013
-
-
Mathias Bavay authored
-
- Feb 28, 2013
-
-
Till Schumann authored
-
- Feb 28, 2013
-
-
Till Schumann authored
-
- Feb 21, 2013
-
-
Mathias Bavay authored
My previous commit was terrible... it simply made it impossible to define optional keys. This has now been fixed but required a change in the API. So, don't use Config::nothrow but IOUtils::nothrow instead.
-
Mathias Bavay authored
The "nothrow" option was not properly forwarded in Config, leading to unnecessary throw/catch. The sun.cc example was set to executable.
-
- Feb 18, 2013
-
-
Mathias Bavay authored
-
- Feb 15, 2013
-
-
Mathias Bavay authored
Fixing the indentation in libsmet and fixing the (very annoying) warnings in MathOptim.h. The cubic root optimizations have been tested and work as advertized (~3 times faster, largest relative error 1.2e-4).
-
Mathias Bavay authored
This is a fix for Snowpack issue 291 : on Windows, when the file would stop right after [DATA} (ie without even a new line), the data section pointer would be invalid (set to -1) but a getline on it would not set eof and therefore the reading loop would never end... So if the data section pointer is -1, we simply return (there is obviously nothing to read).
-
- Feb 14, 2013
-
-
Mathias Bavay authored
In order to try to be closer to the spirit of the STL, now the empty strings/vectors/lists are tested with .empty(), the first/last elements of vectors accessed with front()/back(), the empty strings are not contructed with string("") but with string(), etc This makes a benchmark based on meteo_reading ~4% faster and this makes the code suprisingly easier to read. Some extra constification took place as well as some minor code cleanup (optimizing the comparison between two vectors in order to perform less tests, etc). The Date class can now properly generate and parse full ISO timestamps, including time zone information. The full specification is now supported by convertString() with a helper method in the Date class. Ouputing an ISO string with its time zone is done by requesting the ISO_TZ format.
-
- Feb 13, 2013
-
-
Mathias Bavay authored
Now, when libsmet attemps to write a station that does not contain any data, it will complain but will not throw an exception (otherwise when working with large numbers of stations, the odds of getting an exception are too high). An implementation for fast cubic root is now part of Optim, but still has to be tested. Some code cleanup (using .empty(), using copy constructor instead of construct+copy) occured in IOUtils.
-
Mathias Bavay authored
-
- Feb 11, 2013
-
-
Mathias Bavay authored
Truncating the path+file down to file only for exceptions was not working on Windows (since the path delimiter is '\' instead of '/')
-
Mathias Bavay authored
Lots of small fixes after running cppcheck on Windows: unused variables, use ++i instead of i++ for complex types (ie mostly iterators for us) for more performance, a few variables that could be passed as const&, use vector.empty() instead of vector.size==0 (for clarity and potentially performances).
-
- Feb 08, 2013
-
-
Mathias Bavay authored
-
- Feb 07, 2013
-
-
Mathias Bavay authored
The plugins used to keep a reference to a config object as provided by IOManager. But this was triggering some warnings (reference to an object that might disappear outside of the constructor), therefore it has been replaced by a const copy (it is not yet 100% sure if this is really better, but at least the compilers won't complain). When a user was provinding IMISIO with a non-existing station name, the error messages were quite cryptic. In order to properly tell the user what happened, the code has been slightly reorganized. Some code clean up also took place in IMISIO.
-
- Feb 02, 2013
-
-
Mathias Bavay authored
-
- Feb 01, 2013
-
-
Mathias Bavay authored
All the "#ifdef(_WIN)" have been replaced by "#ifdef(WIN)" for consistency. The message box code for Windows and osX has been reorganized, the console messages are now better colorized and the backtrace comes before the error message itself.
-
- Jan 31, 2013
-
-
Mathias Bavay authored
On osx too, the exceptions can now produce a message box. Several warnings have been fixed (mostly signed/unisgned issues)
-
Mathias Bavay authored
When calling the what() of an exception on Windows, it now shows the message in a dialog box as well as printed in the terminal
-
- Jan 30, 2013
-
-
Mathias Bavay authored
The estimation of the average sampling rate was quite wrong: it was not correct for multiple stations or for partially empty buffers (ie giving an end date way beyond the real end of the data). It was also claiming to return a value in 1/s but instead it was 1/days. This now only takes into account the time interval when there is some data and properly handles multiple stations and returns a value in Hz (or 1/s). The documentation has been expanded. Also some code cleanup (constification).
-
- Jan 29, 2013
-
-
Thomas Egger authored
Bugfix in libinterpol1D.cc: "if (in_X.size()>0) B=in_X[1]" should read "if (in_X.size()>0) B=in_X[0]"
-
- Jan 28, 2013
-
-
Mathias Bavay authored
-
Mathias Bavay authored
The reason for the non-functionning popc version has been found: we have to manually set the cxx compiler to popcc.
-
- Jan 24, 2013
-
-
Mathias Bavay authored
-
Mathias Bavay authored
Some better error messages have been added to SMETIO as well as some code cleanup. Some comments have been added to IOManager, and missing popc code added to DEMObject and Date.
-
Mathias Bavay authored
-
- Jan 22, 2013
-
-
Mathias Bavay authored
The detection of popc has been improved, the ARC plugin can now handle empty lines in the data section (since some versions of ArcGis produce such files) and the exceptions now remove the full path in front of the source file name when reporting the source code location of an exception (so the users would be less confused by this Desktop\Bavay\etc).
-
- Jan 10, 2013
-
-
Mathias Bavay authored
A new example has been added, to show what can be done with grids. The popc version was broken, this has been fixed.
-
- Jan 09, 2013
-
-
Mathias Bavay authored
-
- Jan 08, 2013
-
-
Mathias Bavay authored
Added an extra error message in ImisIO and a new method for Config: keyExists() to check if a given key is present (instead of always reading a key with nothrow, etc)
-
- Jan 07, 2013
-
-
Mathias Bavay authored
Deleting the NROFSTATIONS from the example io.ini since this key is not used anymore and missleading...
-
- Dec 11, 2012
-
-
Mathias Bavay authored
-
- Dec 09, 2012
-
-
Thomas Egger authored
-
- Dec 06, 2012
-
-
Nander Wever authored
-
- Dec 05, 2012
-
-
Mathias Bavay authored
Improved an error message, improved the main documentation page by adding links to the home page, improved the code examples
-
- Dec 04, 2012
-
-
Mathias Bavay authored
The FileIndexer class still had some bug (such a surprise). It is now working properly. Some constification in libsmet
-
- Dec 03, 2012
-
-
Mathias Bavay authored
SMET now uses fully the new file indexer class and creates indexes at least every 2000 lines (as in SNIO)
-
Mathias Bavay authored
-
Mathias Bavay authored
Some warnings have been fixed in the tests and all 'string tmp=""' or 'tmp=""' have been replaced by either an empty constructor (that does the same ) or tmp.clear() (that does the same too)
-
Mathias Bavay authored
Fixing snowpack issue 285: a parenthesis was missing in the hour angle calculation and a special case for 24 hours sunlight or 24 hours night was missing. Both would only impact the sunrise, sunset and sunlight duration calculations (but could trigger an arithmetic exception).
-
Mathias Bavay authored
-
- Nov 30, 2012
-
-
Mathias Bavay authored
The FileIndexer class has been expanded to cater to the needs of SMET (it is not the most efficient, but for now...). A bug has been fixed that was leading to segfault. The explanation for the remaining slowness of SNIO has been found: the Config keys were re-read for every parsed line... It is now 10x faster, ie up to par with SMET (more or less).
-
Loading