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

MHKiT-Software / MHKiT-Python / 9002645746
85%

Build:
DEFAULT BRANCH: master
Ran 08 May 2024 01:38PM UTC
Jobs 36
Files 84
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: 85.108% (-4.5%) from 89.566%
9002645746

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)

4981 of 6113 new or added lines in 73 files covered. (81.48%)

68 existing lines in 18 files now uncovered.

9144 of 10744 relevant lines covered (85.11%)

20.26 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
54
63.27
-31.24% mhkit/wave/io/hindcast/wind_toolkit.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
85
31.21
-57.84% mhkit/wave/io/hindcast/hindcast.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
29
31.21
-57.84% mhkit/wave/io/hindcast/hindcast.py
Jobs
ID Job ID Ran Files Coverage
1 conda-macOS-py3.11 - 9002645746.1 08 May 2024 01:38PM UTC 82
86.3
GitHub Action Run
2 pip-Linux-py3.11 - 9002645746.2 08 May 2024 01:42PM UTC 82
86.3
GitHub Action Run
3 conda-Windows-py3.8 - 9002645746.3 08 May 2024 01:53PM UTC 82
86.29
GitHub Action Run
4 pip-macOS-py3.11 - 9002645746.4 08 May 2024 01:44PM UTC 82
86.3
GitHub Action Run
5 conda-macOS-py3.9 - 9002645746.5 08 May 2024 01:40PM UTC 82
86.29
GitHub Action Run
6 hindcast-Windows-py3.9 - 9002645746.6 08 May 2024 05:03PM UTC 2
45.94
GitHub Action Run
7 conda-Windows-py3.10 - 9002645746.7 08 May 2024 01:51PM UTC 82
86.3
GitHub Action Run
8 conda-Linux-py3.10 - 9002645746.8 08 May 2024 01:43PM UTC 82
86.3
GitHub Action Run
9 hindcast-Linux-py3.8 - 9002645746.9 08 May 2024 05:22PM UTC 2
45.94
GitHub Action Run
10 pip-Linux-py3.8 - 9002645746.10 08 May 2024 01:42PM UTC 82
86.29
GitHub Action Run
11 hindcast-Linux-py3.11 - 9002645746.11 08 May 2024 05:32PM UTC 2
45.94
GitHub Action Run
12 conda-macOS-py3.8 - 9002645746.12 08 May 2024 01:39PM UTC 82
86.29
GitHub Action Run
13 hindcast-Linux-py3.9 - 9002645746.13 08 May 2024 05:25PM UTC 2
45.94
GitHub Action Run
14 conda-macOS-py3.10 - 9002645746.14 08 May 2024 01:39PM UTC 82
86.3
GitHub Action Run
15 hindcast-macOS-py3.10 - 9002645746.15 08 May 2024 05:40PM UTC 2
45.94
GitHub Action Run
16 conda-Windows-py3.11 - 9002645746.16 08 May 2024 01:54PM UTC 82
86.3
GitHub Action Run
17 pip-Linux-py3.9 - 9002645746.17 08 May 2024 01:41PM UTC 82
86.29
GitHub Action Run
18 hindcast-macOS-py3.8 - 9002645746.18 08 May 2024 05:35PM UTC 2
45.94
GitHub Action Run
19 pip-macOS-py3.10 - 9002645746.19 08 May 2024 01:37PM UTC 82
86.3
GitHub Action Run
20 hindcast-Linux-py3.10 - 9002645746.20 08 May 2024 05:29PM UTC 2
45.94
GitHub Action Run
21 pip-Linux-py3.10 - 9002645746.21 08 May 2024 01:43PM UTC 82
86.3
GitHub Action Run
22 hindcast-macOS-py3.11 - 9002645746.22 08 May 2024 05:43PM UTC 2
45.94
GitHub Action Run
23 hindcast-Windows-py3.11 - 9002645746.23 08 May 2024 05:19PM UTC 2
45.94
GitHub Action Run
24 hindcast-Windows-py3.10 - 9002645746.24 08 May 2024 05:10PM UTC 2
45.94
GitHub Action Run
25 pip-Windows-py3.10 - 9002645746.25 08 May 2024 01:48PM UTC 82
86.3
GitHub Action Run
26 conda-Linux-py3.9 - 9002645746.26 08 May 2024 01:43PM UTC 82
86.29
GitHub Action Run
27 conda-Windows-py3.9 - 9002645746.27 08 May 2024 01:53PM UTC 82
86.29
GitHub Action Run
28 conda-Linux-py3.11 - 9002645746.28 08 May 2024 01:43PM UTC 82
86.3
GitHub Action Run
29 hindcast-macOS-py3.9 - 9002645746.29 08 May 2024 05:37PM UTC 2
45.94
GitHub Action Run
30 pip-macOS-py3.8 - 9002645746.30 08 May 2024 01:49PM UTC 82
86.29
GitHub Action Run
31 pip-Windows-py3.8 - 9002645746.31 08 May 2024 01:58PM UTC 82
86.29
GitHub Action Run
32 pip-Windows-py3.11 - 9002645746.32 08 May 2024 01:56PM UTC 82
86.3
GitHub Action Run
33 conda-Linux-py3.8 - 9002645746.33 08 May 2024 01:43PM UTC 82
86.29
GitHub Action Run
34 pip-macOS-py3.9 - 9002645746.34 08 May 2024 01:45PM UTC 82
86.29
GitHub Action Run
35 pip-Windows-py3.9 - 9002645746.35 08 May 2024 02:00PM UTC 82
86.29
GitHub Action Run
36 hindcast-Windows-py3.8 - 9002645746.36 08 May 2024 04:54PM UTC 2
45.94
GitHub Action Run
Source Files on build 9002645746
  • Tree
  • List 84
  • 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 master (#9732445239)
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