cjcodeproj / medialibrary

Python code to read XML media files
MIT License
2 stars 0 forks source link

Consider deprecating random_sample_list() #127

Closed cjcodeproj closed 11 months ago

cjcodeproj commented 1 year ago

The functionality of the random_sample_list() function has been duplicated by the Organizer.get_random_sample() class method.

The code is functually identical in that it takes a list of objects and a sample number, and then creates a new list of a random sample of the original list.

The original function should be removed from the code base for efficiency.

See also:

https://github.com/cjcodeproj/medialibrary/issues/25 https://github.com/cjcodeproj/medialibrary/issues/76 https://github.com/cjcodeproj/medialibrary/issues/57

cjcodeproj commented 11 months ago

Commit:

https://github.com/cjcodeproj/medialibrary/commit/398e49b1cec4c76d8e9923b2e6acf50a45b245bc

Closing notes: