Pull Request: Fix n parameter in Source.sample()#505
Pull Request: Fix n parameter in Source.sample()#505anna-SN99 wants to merge 2 commits intouktrade:mainfrom
Conversation
|
BTW this is is AnnaSmoot-NOAA. I just realized I needed to switch from my work account to personal account. |
|
Thanks for your contribution, this is a clean looking PR. After trying to reproduce the issue locally, with the help of your test, it seems that the sample function works even without your new Trying to get |
🛠️ Changes proposed in this pull request
- Raises TypeError if n is not an integer (e.g., strings, floats)
- Raises ValueError if n is not positive (≤ 0)
👀 Guidance to review
Key changes to focus on:
🤖 AI declaration
Claude Opus (via VS Code) was used to:
locations.pyin addition tosources.py)✅ Checklist:
If you want me to remove the test, that would be simpler. Just let me know.