Skip to content

Conversation

@dforbush2
Copy link
Contributor

this adds warnings if a peak is detected on the edge of the data set (which would otherwise error) and references the deSpike structure rather than hardcoded defaults.

@kmruehl kmruehl self-requested a review April 2, 2025 14:59
@kmruehl kmruehl self-assigned this Apr 2, 2025
@akeeste
Copy link
Contributor

akeeste commented Apr 2, 2025

@dforbush2 can we have this function also remove the peaks on dataset edges? I'm not familiar with it's internal working, but maybe it could truncate data to remove the edge peaks and then extrapolate the smoothed data back to the original frequency range? I'm using this update to fix some bad BEM data right now and am left with sharp peaks at the edges of my data.

@dforbush2
Copy link
Contributor Author

can do...the difficulty internally is that "peak" on the edge sometimes is just the "edge", but I can cook something up.

@kmruehl
Copy link
Collaborator

kmruehl commented Apr 2, 2025

@akeeste do you want to review this PR?

@dforbush2 dforbush2 marked this pull request as draft April 2, 2025 21:54
@dforbush2
Copy link
Contributor Author

converted to draft: @akeeste suggested fix is easy to implement and incoming soon

@dforbush2 dforbush2 marked this pull request as ready for review April 3, 2025 00:19
@dforbush2
Copy link
Contributor Author

@akeeste try that one. that will despike your endpoints

@akeeste
Copy link
Contributor

akeeste commented Apr 3, 2025

Thanks @dforbush2 I'll test it out today.
@kmruehl Yes, I can review

@akeeste akeeste requested review from akeeste and removed request for kmruehl April 3, 2025 14:26
@akeeste akeeste assigned akeeste and unassigned kmruehl Apr 3, 2025
Copy link
Contributor

@akeeste akeeste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dforbush2 this update is working for me. Peaks on the edge no longer error

I can't post any plots of my tests since I'm using TEAMER data, but the function is working more robustly now.

@akeeste akeeste merged commit e72c915 into WEC-Sim:dev Apr 3, 2025
10 checks passed
@kmruehl
Copy link
Collaborator

kmruehl commented Apr 3, 2025

That's great, thanks @dforbush2 and @akeeste

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants