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

MHKiT-Software / MHKiT-Python / 9003443450
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 08 May 2024 02:55PM UTC
Jobs 24
Files 82
Run time 4min
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

08 May 2024 01:24PM UTC coverage: 86.31% (-3.3%) from 89.566%
9003443450

push

github

web-flow
MHKiT v0.8.0 (#321)

# MHKiT v0.8.0
We're excited to announce the release of MHKiT v0.8.0, which brings a host of new features, enhancements, and bug fixes across various modules, ensuring compatibility with Python 3.10 and 3.11, and introducing full xarray support for more flexible data handling. Significant updates in the Wave and DOLfYN modules improve functionality and extend capabilities.

## Python 3.10 & 3.11 Support
MHKiT now supports python 3.10 and 3.11. Support for 3.12 will follow in the next minor update.
- https://github.com/MHKiT-Software/MHKiT-Python/pull/240


## Wave Module
### Enhancements:
**Automatic Threshold Calculation for Peaks-Over-Threshold**: We've introduced a new feature that automatically calculates the "best" threshold for identifying significant wave events. This method, originally developed by Neary, V. S., et al. in their 2020 study, has now been translated from Matlab to Python, enhancing our existing peaks-over-threshold functionality.

**Wave Heights Analysis**: A new function, `wave_heights`, has been added to extract the heights of individual waves from a time series. This function uses zero up-crossing analysis to accurately measure wave heights, improving upon our previous methods which only provided the maximum value between up-crossings.

**Enhanced Zero Crossing Analysis**: Building on the above, the zero crossing code previously embedded in `global_peaks` has been isolated into a helper function. This modular approach not only refines the codebase but also supports new functionalities such as calculating wave heights, zero crossing periods, and identifying crests.

### Bug Fixes:
**Contour Sampling Error in Wave Contours**: A bug identified in `mhkit.wave.contours.samples_contour` has been resolved. The issue occurred when period samples defined using the maximum period resulted in values outside the interpolation range of the contour data. This was corrected by ensuring that all sampling ... (continued)

4871 of 5864 new or added lines in 71 files covered. (83.07%)

39 existing lines in 17 files now uncovered.

8997 of 10424 relevant lines covered (86.31%)

20.71 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
90.63
2.22% mhkit/dolfyn/io/rdi_lib.py
1
97.06
0.04% mhkit/dolfyn/rotate/rdi.py
1
89.04
0.0% mhkit/dolfyn/time.py
1
98.11
mhkit/utils/type_handling.py
1
50.0
0.0% mhkit/wave/io/hindcast/__init__.py
2
87.86
0.09% mhkit/dolfyn/adv/clean.py
2
96.0
0.05% mhkit/mooring/io.py
3
97.48
0.02% mhkit/dolfyn/adp/clean.py
3
95.95
0.02% mhkit/dolfyn/io/nortek2_defs.py
3
93.02
34.05% mhkit/dolfyn/tools/fft.py
3
89.21
0.0% mhkit/dolfyn/tools/misc.py
3
72.73
mhkit/loads/extreme/sample.py
4
92.31
2.97% mhkit/dolfyn/io/api.py
4
91.09
0.0% mhkit/dolfyn/rotate/api.py
4
89.55
0.0% mhkit/dolfyn/rotate/signature.py
4
91.6
0.0% mhkit/dolfyn/rotate/vector.py
4
82.14
0.0% mhkit/mooring/main.py
5
92.42
4.49% mhkit/loads/general.py
6
91.67
0.0% mhkit/dolfyn/rotate/base.py
6
83.93
0.6% mhkit/river/graphics.py
6
86.44
-1.28% mhkit/tidal/resource.py
6
77.78
mhkit/utils/time_utils.py
7
84.49
5.28% mhkit/dolfyn/adv/turbulence.py
7
88.14
mhkit/utils/cache.py
8
88.62
0.07% mhkit/dolfyn/adv/motion.py
8
87.76
-0.3% mhkit/river/resource.py
9
87.5
1.19% mhkit/dolfyn/binned.py
10
92.47
1.78% mhkit/dolfyn/io/base.py
10
86.88
1.51% mhkit/tidal/performance.py
11
91.5
0.35% mhkit/dolfyn/velocity.py
12
85.19
0.68% mhkit/loads/graphics.py
12
77.78
-12.7% mhkit/river/performance.py
14
86.14
mhkit/loads/extreme/extremes.py
14
75.44
mhkit/utils/upcrossing.py
15
81.97
1.12% mhkit/dolfyn/adp/turbulence.py
16
80.49
-17.19% mhkit/power/characteristics.py
17
92.48
3.68% mhkit/dolfyn/io/nortek2.py
17
89.76
mhkit/loads/extreme/peaks.py
17
91.67
-0.78% mhkit/wave/io/wecsim.py
18
62.5
-27.5% mhkit/river/io/usgs.py
20
86.18
-12.08% mhkit/wave/performance.py
22
86.64
-3.91% mhkit/dolfyn/io/nortek2_lib.py
22
57.69
-21.47% mhkit/tidal/io/noaa.py
24
79.66
mhkit/loads/extreme/mler.py
25
79.51
-9.38% mhkit/power/quality.py
25
81.98
1.64% mhkit/tidal/graphics.py
28
75.86
mhkit/utils/stat_utils.py
28
83.62
-13.53% mhkit/wave/io/swan.py
31
91.41
-6.59% mhkit/wave/graphics.py
42
84.42
-10.92% mhkit/river/io/d3d.py
58
76.89
-16.86% mhkit/wave/io/cdip.py
67
87.53
-5.87% mhkit/wave/contours.py
70
83.09
-13.71% mhkit/wave/resource.py
72
77.0
-7.48% mhkit/wave/io/ndbc.py
79
83.8
-0.06% mhkit/dolfyn/io/rdi.py
85
84.7
-5.83% mhkit/dolfyn/io/nortek.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
91.67
-0.78% mhkit/wave/io/wecsim.py
1
91.09
0.0% mhkit/dolfyn/rotate/api.py
1
86.44
-1.28% mhkit/tidal/resource.py
1
95.95
0.02% mhkit/dolfyn/io/nortek2_defs.py
1
86.88
1.51% mhkit/tidal/performance.py
1
62.5
-27.5% mhkit/river/io/usgs.py
1
92.31
2.97% mhkit/dolfyn/io/api.py
1
50.0
0.0% mhkit/wave/io/hindcast/__init__.py
1
92.47
1.78% mhkit/dolfyn/io/base.py
1
84.49
5.28% mhkit/dolfyn/adv/turbulence.py
2
92.48
3.68% mhkit/dolfyn/io/nortek2.py
2
77.0
-7.48% mhkit/wave/io/ndbc.py
2
88.62
0.07% mhkit/dolfyn/adv/motion.py
3
84.7
-5.83% mhkit/dolfyn/io/nortek.py
4
83.8
-0.06% mhkit/dolfyn/io/rdi.py
6
81.97
1.12% mhkit/dolfyn/adp/turbulence.py
10
57.69
-21.47% mhkit/tidal/io/noaa.py
Jobs
ID Job ID Ran Files Coverage
1 conda-Linux-py3.8 - 9003443450.1 08 May 2024 03:24PM UTC 82
86.29
GitHub Action Run
2 conda-Linux-py3.11 - 9003443450.2 08 May 2024 03:20PM UTC 82
86.3
GitHub Action Run
3 pip-macOS-py3.8 - 9003443450.3 08 May 2024 03:27PM UTC 82
86.29
GitHub Action Run
4 conda-macOS-py3.9 - 9003443450.4 08 May 2024 03:16PM UTC 82
86.29
GitHub Action Run
5 pip-Linux-py3.9 - 9003443450.5 08 May 2024 03:30PM UTC 82
86.29
GitHub Action Run
6 pip-Windows-py3.11 - 9003443450.6 08 May 2024 03:36PM UTC 82
86.3
GitHub Action Run
7 pip-macOS-py3.10 - 9003443450.7 08 May 2024 03:23PM UTC 82
86.3
GitHub Action Run
8 pip-Windows-py3.9 - 9003443450.8 08 May 2024 03:38PM UTC 82
86.29
GitHub Action Run
9 pip-Windows-py3.8 - 9003443450.9 08 May 2024 03:36PM UTC 82
86.29
GitHub Action Run
10 conda-Windows-py3.9 - 9003443450.10 08 May 2024 03:33PM UTC 82
86.29
GitHub Action Run
11 pip-macOS-py3.11 - 9003443450.11 08 May 2024 03:21PM UTC 82
86.3
GitHub Action Run
12 conda-macOS-py3.8 - 9003443450.12 08 May 2024 02:55PM UTC 82
86.29
GitHub Action Run
13 pip-Linux-py3.8 - 9003443450.13 08 May 2024 03:29PM UTC 82
86.29
GitHub Action Run
14 conda-Linux-py3.9 - 9003443450.14 08 May 2024 03:25PM UTC 82
86.29
GitHub Action Run
15 pip-Linux-py3.11 - 9003443450.15 08 May 2024 03:28PM UTC 82
86.3
GitHub Action Run
16 conda-Linux-py3.10 - 9003443450.16 08 May 2024 03:19PM UTC 82
86.3
GitHub Action Run
17 pip-Linux-py3.10 - 9003443450.17 08 May 2024 03:28PM UTC 82
86.3
GitHub Action Run
18 conda-macOS-py3.11 - 9003443450.18 08 May 2024 03:04PM UTC 82
86.3
GitHub Action Run
19 conda-Windows-py3.10 - 9003443450.19 08 May 2024 03:25PM UTC 82
86.3
GitHub Action Run
20 conda-Windows-py3.11 - 9003443450.20 08 May 2024 03:18PM UTC 82
86.3
GitHub Action Run
21 pip-macOS-py3.9 - 9003443450.21 08 May 2024 03:24PM UTC 82
86.29
GitHub Action Run
22 conda-Windows-py3.8 - 9003443450.22 08 May 2024 03:34PM UTC 82
86.29
GitHub Action Run
23 conda-macOS-py3.10 - 9003443450.23 08 May 2024 03:17PM UTC 82
86.3
GitHub Action Run
24 pip-Windows-py3.10 - 9003443450.24 08 May 2024 03:33PM UTC 82
86.3
GitHub Action Run
Source Files on build 9003443450
  • Tree
  • List 82
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 83a9d6d7 on github
  • Prev Build on master (#6037804475)
  • Next Build on develop (#9713867003)
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

© 2025 Coveralls, Inc