This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<header> | |
<Duration>2503.5</Duration> | |
<Ascent>0</Ascent> | |
<Descent>0</Descent> | |
<AscentTime>0</AscentTime> | |
<DescentTime>0</DescentTime> | |
<RecoveryTime>0</RecoveryTime> | |
<Speed> | |
<Avg>0.6194444444444445</Avg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<header> | |
<Duration>2503.5</Duration> | |
<Ascent>0</Ascent> | |
<Descent>0</Descent> | |
<AscentTime>0</AscentTime> | |
<DescentTime>0</DescentTime> | |
<RecoveryTime>0</RecoveryTime> | |
<Speed> | |
<Avg>0.6194444444444445</Avg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE openambitlog> | |
<openambitlog version="1.0"> | |
<SerialNumber>0F14984627000800</SerialNumber> | |
<Time>2014-02-09T11:10:12</Time> | |
<MovescountId>25546577</MovescountId> | |
<DeviceInfo> | |
<Serial>0F14984627000800</Serial> | |
<Model>Bluebird</Model> | |
<Name>Suunto Ambit</Name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/safe/common/utilities.py b/safe/common/utilities.py | |
index 2bf265e..149165b 100644 | |
--- a/safe/common/utilities.py | |
+++ b/safe/common/utilities.py | |
@@ -78,13 +78,18 @@ def ugettext(s): | |
""" | |
path = os.path.abspath(os.path.join(os.path.dirname(__file__), | |
'..', 'i18n')) | |
+ print '---------------------' | |
+ print 'STR: %s' % s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name Stmts Miss Cover Missing | |
----------------------------------------------------------------------------------------------------------- | |
safe 3 0 100% | |
safe.common 0 0 100% | |
safe.common.exceptions 39 0 100% | |
safe.common.geodesy 85 9 89% 70-71, 74-75, 130, 142-145 | |
safe.common.interpolation 74 18 76% 48-52, 54-59, 61-65, 104-108, 111-113, 118-119, 124-127, 136-140 | |
safe.common.interpolation1d 38 2 95% 81, 118 | |
safe.common.interpolation2d 70 3 96% 105-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name Stmts Miss Cover Missing | |
----------------------------------------------------------------------------------------------------------- | |
safe 3 0 100% | |
safe.common 0 0 100% | |
safe.common.exceptions 39 0 100% | |
safe.common.geodesy 85 9 89% 70-71, 74-75, 130, 142-145 | |
safe.common.interpolation 74 18 76% 48-52, 54-59, 61-65, 104-108, 111-113, 118-119, 124-127, 136-140 | |
safe.common.interpolation1d 38 2 95% 81, 118 | |
safe.common.interpolation2d 70 3 96% 105-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grid = QgsMapLayerRegistry.instance().mapLayersByName('grid10')[0] | |
regions = QgsMapLayerRegistry.instance().mapLayersByName('Polygon_GADM_Brazil')[0] | |
points = QgsMapLayerRegistry.instance().mapLayersByName('Point_Population_Brazil')[0] | |
region_count = regions.featureCount() | |
cell_count = grid.featureCount() | |
shape_writer = QgsVectorFileWriter( | |
'/tmp/out.shp', | |
'UTF-8', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#345 test_qgis_translations (safe_qgis.test.test_translations.SafeTranslationsTest) ... QApplication::installTranslator: Please instantiate the QApplication object first | |
ERROR | |
====================================================================== | |
ERROR: Failure: TypeError (unsupported operand type(s) for %: 'QString' and 'tuple') | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 390, in loadTestsFromName | |
addr.filename, addr.module) | |
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 39, in importFromPath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This code: | |
print "#######HTML string#####" | |
print string | |
self.setHtml(string) | |
print "#######HTML result#####" | |
print self.page().mainFrame().toHtml() | |
does not work as expecten when running in a test context | |
#######HTML string##### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyClass(): | |
def my_good_method(self): | |
#plupdate4 puts 'hello my_good_method' in MyClass context | |
return self.tr('hello my_good_method') | |
class MySubClass(): | |
def my_good_sub_method(self): | |
#plupdate4 puts 'hello my_good_sub_method' in MySubClass context | |
return self.tr('hello my_good_sub_method') |