• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OGGM / oggm / 1093
84%

Build:
DEFAULT BRANCH: master
Ran 27 Mar 2018 11:05AM UTC
Jobs 7
Files 13
Run time 12min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1093

push

travis-ci

fmaussion
Lateral drag / Shape factors (#429)

* Added option for shape factors to account for lateral drag in mass-conservation inversion.
Shape factors are used as given in Adhikari 2012.
A new cfg-param "use_shape_factor" is introduced.
Needs further tests and eventually adaption in forward model.

* Changed default value for param "use_shape_factor" from True to False.
Changed one comment/TODO in inversion routine.

* Implemented suggested changes from pull request.

* Fixed mistake where width instead of half-width was used for computation of Nye-shape factor.

* Fixed mistake where width instead of half-width was used for computation of Nye-shape factor.

Updated test to match change in shape factor calculation

* Added cfg-Param 'use_shape_factor_for_fluxbasedmodel' and introduced shape factor in FluxbasedModel.step

Currently, the shape factor methods of the inversion module are used for the calculation of shape factors.

* Added correction of NaN-shape factors in shape_factor_adhikari. Now the shape factors for sections with height = 0 are no longer np.nan but are set to 1. (so shape factor is actually not influencing this section)

* Changed shape factors from centered to staggered grid to match the variables used for calculation of velocity

* Changed formulation in comment of cfg

* Fixed bug for sf_func call in flowline, when sf_func was not set.

Introduced use_sf in flowline and inversion to shorten lines and avoid multiple calls to cfg.PARAMS[use_shape_...']

* Moved shape factor calculation to utils.

Using a proxy variable `use_sf` instead of `cfg.PARAMS['use_shape_...']`. This variable is set to None, if the acquired key is not found in PARAMS.

* Updated reference for shape_factor_adhikari in utils for testing

* Updated whats-new

* Fixed a bug with shape factors for tributaries. Added sf_stag to class. Moved shape factor function choice to init of class. Added tests with shape factors for inversion and... (continued)

74 of 74 new or added lines in 4 files covered. (100.0%)

5395 of 5919 relevant lines covered (91.15%)

4.63 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
oggm/core/inversion.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
oggm/core/centerlines.py
Jobs
ID Job ID Ran Files Coverage
1 1093.1 (OGGM_TEST_ENV=prepro MPL=) 27 Mar 2018 11:06AM UTC 0
67.46
Travis Job 1093.1
2 1093.2 (OGGM_TEST_ENV=numerics MPL=) 27 Mar 2018 11:07AM UTC 0
62.81
Travis Job 1093.2
3 1093.3 (OGGM_TEST_ENV=models MPL=) 27 Mar 2018 11:18AM UTC 0
68.29
Travis Job 1093.3
4 1093.4 (OGGM_TEST_ENV=benchmark MPL=) 27 Mar 2018 11:05AM UTC 0
55.53
Travis Job 1093.4
5 1093.5 (OGGM_TEST_ENV=workflow MPL=--mpl OGGM_TEST_MULTIPROC=False) 27 Mar 2018 11:17AM UTC 0
72.56
Travis Job 1093.5
6 1093.6 (OGGM_TEST_ENV=workflow MPL=--mpl OGGM_TEST_MULTIPROC=True) 27 Mar 2018 11:15AM UTC 0
68.78
Travis Job 1093.6
7 1093.7 (OGGM_TEST_ENV=graphics MPL=--mpl) 27 Mar 2018 11:10AM UTC 0
67.17
Travis Job 1093.7
Source Files on build 1093
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1093
  • 5f98d9a1 on github
  • Prev Build on master (#1092)
  • Next Build on master (#1096)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc