Skip to content

Add PointProcess class#43

Open
hokiedsp wants to merge 32 commits intoYannickJadoul:masterfrom
hokiedsp:add-pointprocess-class
Open

Add PointProcess class#43
hokiedsp wants to merge 32 commits intoYannickJadoul:masterfrom
hokiedsp:add-pointprocess-class

Conversation

@hokiedsp
Copy link
Copy Markdown
Contributor

@hokiedsp hokiedsp commented Feb 17, 2021

Here is the renamed PR for PointProcess class.

I renamed my mydev branch to add-pointprocess-class and it apparently closed the original PR automatically.

CrossRef: #41,

TODOs

  • Complete pytest
  • Complete docstrings
  • Add to_PointProcess() methods to the source classes
  • Add PointProcess.to_XXX() methods to convert from PointProcess
  • Add PointProcess xtor taking a sequence-like object (which implements __len__() and __getitem__(int)
  • Make PointProcess a sequence-like class by implementing __len__() and __getitem__(int).

@YannickJadoul
Copy link
Copy Markdown
Owner

Ah, oof :-)
Let's quickly cross-reference #41, then

Copy link
Copy Markdown
Owner

@YannickJadoul YannickJadoul left a comment

Choose a reason for hiding this comment

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

This is great; I hadn't realized it was such a nicely contained set of changes!

What I've done so far in the two extra commits (go ahead and check) is mainly making sure that the full diff doesn't show difference that are just indentation or style changes. Now that there's a contributor, I should definitely get a .clang-format file, but adding and applying that is probably best left outside of this PR (to ensure we focus on the important parts and content here!).

Also, a few things to discuss that I've noticed. Apart from that, I'll dive into the details soon, but something tells me I won't have a lot of work to do :-)

Comment thread src/parselmouth/Pitch.cpp Outdated
Comment thread src/parselmouth/Pitch_docstrings.h
Comment thread src/parselmouth/PointProcess_docstrings.h Outdated
Comment thread tests/test_pointprocess.py Outdated
@hokiedsp hokiedsp force-pushed the add-pointprocess-class branch from e37d662 to ed911bf Compare February 27, 2021 04:18
@hokiedsp
Copy link
Copy Markdown
Contributor Author

hokiedsp commented Feb 28, 2021

The last commit should truly be the last commit to this PR from me. Added Sound_docstings.h to round out documentations involving PointProcess class

hokiedsp and others added 13 commits February 18, 2026 09:01
- shimmer functions
- alternate constructors
- create_poisson_process()
- get_time_points()
- add_points()
Moved lines around for readability
Removed _t & _nt
Added method docstrings
get_count_and_fraction_of_voice_breaks() returns 4-element tuple
Added PointProcess.__len__(), .__getitem__(), & __iter__()
Updated test
Fixed PointProcess empty constructor
hokiedsp and others added 19 commits February 18, 2026 09:01
pytest: dropped 'eee.wav', using global fixtures
to_text_grid_vuv(), to_sound_phonation(), to_sound_pulse_train(), to_sound_hum(),
- Added class docstring and docstrings of new methods
Added PeakInterpolation enum
Updated pytest
- PointProcess.get_shimmer_local_db
Corrected errors in Pitch docstrings
… that py::array_t is accepted in PointProcess constructor and PointProcess.add_points, and some minor fixes to Pitch's PointProcess methods
@hokiedsp hokiedsp force-pushed the add-pointprocess-class branch from 9a61aec to bdc4b11 Compare February 18, 2026 15:01
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.

2 participants