From c4e3ac161976577357f50930698c5e3390f7b170 Mon Sep 17 00:00:00 2001 From: lefitzpatrick Date: Wed, 28 May 2025 14:54:25 -0400 Subject: [PATCH 1/5] edits to noises util --- pyCatSim.egg-info/PKG-INFO | 241 +++++----------------------------- pyCatSim.egg-info/SOURCES.txt | 5 + pyCatSim/utils/noises.py | 22 +++- 3 files changed, 61 insertions(+), 207 deletions(-) diff --git a/pyCatSim.egg-info/PKG-INFO b/pyCatSim.egg-info/PKG-INFO index 34013d1..d5d8dd3 100644 --- a/pyCatSim.egg-info/PKG-INFO +++ b/pyCatSim.egg-info/PKG-INFO @@ -1,217 +1,46 @@ Metadata-Version: 2.4 Name: pyCatSim -Version: 0.0.1 +Version: 2025.5.27 Summary: A fun, modular, object-oriented Python package for simulating cat behavior Author-email: Deborah Khider -License: Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - +License: Apache-2.0 Project-URL: Homepage, https://github.com/khider/pyCatSim Project-URL: Issues, https://github.com/khider/pyCatSim/issues Requires-Python: >=3.12 Description-Content-Type: text/markdown -License-File: LICENSE Requires-Dist: playsound>=1.3.0 -Dynamic: license-file # pyCatSim -Repository for a lightweight package to simulate cat ownership + +PyCatSim is a toy Python package that simulates cats and their associated humans and environment. The package is meant to teach packaging techniques and proper documentation. But we won't stop you if you want to have some fun with virtual cats! + +## Versions + +See our [releases page](https://github.com/khider/pyCatSim/releases) for details on what's included in each version. + +## Documentation + +Online documentation is available through [readthedocs](https://pycatsim.readthedocs.io/en/latest/). + +## Installation + +The latest stable release is available through Pypi. We recommend using Anaconda or Miniconda with a dedicated environment. Full installation instructions are available in the [package documentation](https://pycatsim.readthedocs.io/en/latest/installation.html). + +## Citation + +If you use our code in any way, please [cite us](https://pycatsim.readthedocs.io/en/latest/citation.html)! You can use the "cite this repository" button at the top of the GitHub page for convenience. + +## Development + +PyCatSim development takes place on [GitHub](https://github.com/khider/pyCatSim) + +## License + +The project is licensed under the [Apache 2.0 license](https://github.com/khider/pyCatSim/blob/main/LICENSE). Please refer to the file call license. If you use the code in publications, please credit the work using the citation file. + +## Disclaimer + +This material is based upon work supported by the National Science Foundation under Grant Number RISE-2324732. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the investigators and do not necessarily reflect the views of the National Science Foundation. + + + diff --git a/pyCatSim.egg-info/SOURCES.txt b/pyCatSim.egg-info/SOURCES.txt index 6e50821..107082f 100644 --- a/pyCatSim.egg-info/SOURCES.txt +++ b/pyCatSim.egg-info/SOURCES.txt @@ -8,5 +8,10 @@ pyCatSim.egg-info/dependency_links.txt pyCatSim.egg-info/requires.txt pyCatSim.egg-info/top_level.txt pyCatSim/api/__init__.py +pyCatSim/api/cat.py +pyCatSim/api/human.py +pyCatSim/tests/__init__.py +pyCatSim/tests/test_api_Cat.py +pyCatSim/tests/test_api_Owner.py pyCatSim/utils/__init__.py pyCatSim/utils/noises.py \ No newline at end of file diff --git a/pyCatSim/utils/noises.py b/pyCatSim/utils/noises.py index 06f48ca..80e6a3c 100644 --- a/pyCatSim/utils/noises.py +++ b/pyCatSim/utils/noises.py @@ -6,7 +6,8 @@ __all__=['meow', - 'purr'] + 'purr', + 'chatter'] from playsound import playsound import os @@ -57,4 +58,23 @@ def purr(play=False): else: playsound(os.path.join(SOUND_DIR, "purr.mp3")) +def chatter(play=False): + """ + Simulates a chatter + + Parameters + ---------- + play : Bool, optional + Whether to play the sound (True) or display the text (False). The default is False. + + Returns + ------- + str + If play is False, returns the sound as text + + """ + if play is False: + return "Chattering" + else: + playsound(os.path.join(SOUND_DIR, "chattering.mp3")) From 59ccfa7ab0101d85ba3f715642f299f0007c83a5 Mon Sep 17 00:00:00 2001 From: lefitzpatrick Date: Thu, 29 May 2025 18:50:39 -0400 Subject: [PATCH 2/5] added chatter as a cat sound --- pyCatSim/tests/test_api_Cat.py | 6 +++++- pyCatSim/utils/noises.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pyCatSim/tests/test_api_Cat.py b/pyCatSim/tests/test_api_Cat.py index fcaa313..87ff043 100644 --- a/pyCatSim/tests/test_api_Cat.py +++ b/pyCatSim/tests/test_api_Cat.py @@ -48,7 +48,9 @@ class TestcatCatNoise: ('meow', False), ('meow', True), ('purr', False), - ('purr', True) + ('purr', True), + ('chatter', False), + ('chatter', True) ] ) def test_noise_t0(self,noise,play): @@ -64,6 +66,8 @@ def test_noise_t0(self,noise,play): assert v == 'Meow!' elif noise == 'purr': assert v == 'Purrr' + elif noise == 'chatter': + assert v == 'Chattering' @pytest.mark.xfail diff --git a/pyCatSim/utils/noises.py b/pyCatSim/utils/noises.py index 80e6a3c..0112df6 100644 --- a/pyCatSim/utils/noises.py +++ b/pyCatSim/utils/noises.py @@ -75,6 +75,6 @@ def chatter(play=False): """ if play is False: - return "Chattering" + return "Chatter" else: playsound(os.path.join(SOUND_DIR, "chattering.mp3")) From afade4721c41962bb5b6817d548b8ab45e2238f8 Mon Sep 17 00:00:00 2001 From: khider <11758571+khider@users.noreply.github.com> Date: Thu, 29 May 2025 18:35:40 -0700 Subject: [PATCH 3/5] unneeded files --- pyCatSim.egg-info/PKG-INFO | 46 ------------------ pyCatSim.egg-info/SOURCES.txt | 17 ------- pyCatSim.egg-info/dependency_links.txt | 1 - pyCatSim.egg-info/requires.txt | 1 - pyCatSim.egg-info/top_level.txt | 1 - pyCatSim/__pycache__/__init__.cpython-312.pyc | Bin 336 -> 0 bytes .../api/__pycache__/__init__.cpython-312.pyc | Bin 335 -> 0 bytes pyCatSim/api/__pycache__/cat.cpython-312.pyc | Bin 6426 -> 0 bytes .../api/__pycache__/human.cpython-312.pyc | Bin 2224 -> 0 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 170 -> 0 bytes .../test_api_Cat.cpython-312-pytest-8.3.5.pyc | Bin 10752 -> 0 bytes ...est_api_Owner.cpython-312-pytest-8.3.5.pyc | Bin 6475 -> 0 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 271 -> 0 bytes .../utils/__pycache__/noises.cpython-312.pyc | Bin 1604 -> 0 bytes 14 files changed, 66 deletions(-) delete mode 100644 pyCatSim.egg-info/PKG-INFO delete mode 100644 pyCatSim.egg-info/SOURCES.txt delete mode 100644 pyCatSim.egg-info/dependency_links.txt delete mode 100644 pyCatSim.egg-info/requires.txt delete mode 100644 pyCatSim.egg-info/top_level.txt delete mode 100644 pyCatSim/__pycache__/__init__.cpython-312.pyc delete mode 100644 pyCatSim/api/__pycache__/__init__.cpython-312.pyc delete mode 100644 pyCatSim/api/__pycache__/cat.cpython-312.pyc delete mode 100644 pyCatSim/api/__pycache__/human.cpython-312.pyc delete mode 100644 pyCatSim/tests/__pycache__/__init__.cpython-312.pyc delete mode 100644 pyCatSim/tests/__pycache__/test_api_Cat.cpython-312-pytest-8.3.5.pyc delete mode 100644 pyCatSim/tests/__pycache__/test_api_Owner.cpython-312-pytest-8.3.5.pyc delete mode 100644 pyCatSim/utils/__pycache__/__init__.cpython-312.pyc delete mode 100644 pyCatSim/utils/__pycache__/noises.cpython-312.pyc diff --git a/pyCatSim.egg-info/PKG-INFO b/pyCatSim.egg-info/PKG-INFO deleted file mode 100644 index d5d8dd3..0000000 --- a/pyCatSim.egg-info/PKG-INFO +++ /dev/null @@ -1,46 +0,0 @@ -Metadata-Version: 2.4 -Name: pyCatSim -Version: 2025.5.27 -Summary: A fun, modular, object-oriented Python package for simulating cat behavior -Author-email: Deborah Khider -License: Apache-2.0 -Project-URL: Homepage, https://github.com/khider/pyCatSim -Project-URL: Issues, https://github.com/khider/pyCatSim/issues -Requires-Python: >=3.12 -Description-Content-Type: text/markdown -Requires-Dist: playsound>=1.3.0 - -# pyCatSim - -PyCatSim is a toy Python package that simulates cats and their associated humans and environment. The package is meant to teach packaging techniques and proper documentation. But we won't stop you if you want to have some fun with virtual cats! - -## Versions - -See our [releases page](https://github.com/khider/pyCatSim/releases) for details on what's included in each version. - -## Documentation - -Online documentation is available through [readthedocs](https://pycatsim.readthedocs.io/en/latest/). - -## Installation - -The latest stable release is available through Pypi. We recommend using Anaconda or Miniconda with a dedicated environment. Full installation instructions are available in the [package documentation](https://pycatsim.readthedocs.io/en/latest/installation.html). - -## Citation - -If you use our code in any way, please [cite us](https://pycatsim.readthedocs.io/en/latest/citation.html)! You can use the "cite this repository" button at the top of the GitHub page for convenience. - -## Development - -PyCatSim development takes place on [GitHub](https://github.com/khider/pyCatSim) - -## License - -The project is licensed under the [Apache 2.0 license](https://github.com/khider/pyCatSim/blob/main/LICENSE). Please refer to the file call license. If you use the code in publications, please credit the work using the citation file. - -## Disclaimer - -This material is based upon work supported by the National Science Foundation under Grant Number RISE-2324732. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the investigators and do not necessarily reflect the views of the National Science Foundation. - - - diff --git a/pyCatSim.egg-info/SOURCES.txt b/pyCatSim.egg-info/SOURCES.txt deleted file mode 100644 index 107082f..0000000 --- a/pyCatSim.egg-info/SOURCES.txt +++ /dev/null @@ -1,17 +0,0 @@ -LICENSE -README.md -pyproject.toml -pyCatSim/__init__.py -pyCatSim.egg-info/PKG-INFO -pyCatSim.egg-info/SOURCES.txt -pyCatSim.egg-info/dependency_links.txt -pyCatSim.egg-info/requires.txt -pyCatSim.egg-info/top_level.txt -pyCatSim/api/__init__.py -pyCatSim/api/cat.py -pyCatSim/api/human.py -pyCatSim/tests/__init__.py -pyCatSim/tests/test_api_Cat.py -pyCatSim/tests/test_api_Owner.py -pyCatSim/utils/__init__.py -pyCatSim/utils/noises.py \ No newline at end of file diff --git a/pyCatSim.egg-info/dependency_links.txt b/pyCatSim.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/pyCatSim.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/pyCatSim.egg-info/requires.txt b/pyCatSim.egg-info/requires.txt deleted file mode 100644 index 0dafce6..0000000 --- a/pyCatSim.egg-info/requires.txt +++ /dev/null @@ -1 +0,0 @@ -playsound>=1.3.0 diff --git a/pyCatSim.egg-info/top_level.txt b/pyCatSim.egg-info/top_level.txt deleted file mode 100644 index 050475e..0000000 --- a/pyCatSim.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -pyCatSim diff --git a/pyCatSim/__pycache__/__init__.cpython-312.pyc b/pyCatSim/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 97f87dac9b71ebe79879fe0ffe9ea12bfd7f6af6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 336 zcmYL@ze>bF5XN`%&%+}T4(tT6I%1J@R$_C4RyJajX4$w4S=~*-W+SB3C$RGs6!A$c zuX3@ox=uK3tlZ`9aEkeUGt7K5?{U11Y&^`T)w9(vS8T#x!}7?&6QYQMKoSZ7L_O*Y z@6EG>XdrwU6agR)v4DoJu-Yra0n%vUii?HorC{LDrmZ`sI^NV~)DAPEFS$%3lWaKa zH5Z);SK^bFn+ca~qqN{_uc9A-`(?cnj+A{{;|4;{5lqYBEPVu0FOwZ0tqZgjSVRX9yzKb z6BjW?eViqC=jlRL+Uiz2OI<}YaW6Olv_cyr5mM7MK7G_YG}e>PYv(s zTGGmOR?N~j3_CMCM04IkO0G6m`pYaCb{G?`WNe5^-ueiphD3FSTOR{Ip)Ex8wal-B z^dT2=?L1dEN(<@pg)2KFZ5#5XZqK@P-t=I<(&is{qjSc_Cm5SG{V+K(KS!SWJ@6fm Z3I`D0BaHC}Avpe=Abj|Oj{GjPzX8K>TbKzglRz&wU{ARV$(5E z(Bhh8#HZsi;iRC+FAG}YYRum;E!8BYtA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WM-eJN7RM zi9y$*II34e#GF{y{zY?QP!;QF6R9AKo-2rGSJI&xc7jf$YyT2xLd6iRdpf;egPO9- zdsyXfO_K2YmpDn1zM#_6dVUWF)h_qwzlRlg2V>6Vj{S=s>0fkiiGAgf{>5;N9{QJl z$AFVcMQtM|mhSn)qTNV`6Fc6GbglW0bv$r_X*k1^>VX4foG6BZ^XM5v13mAkTaJ%) zBVBWR%mQ*eKnDHlQX?6Xbu_=aO!SQEpibr3^ii#QUAghSs1Ey=Ad3x^3^kID>Lk7I z9){`Y=eSe)UVYv(DlN=A^l#j4Ja+;iR`h0}- z_l&T9?ukF62m_QEjU@ChXXhxwgX%zB^__a%wp`UNE-b9){q{v&tXH6DReo76Rw@3Z zM)A9g;>*D+N$DVR_#2W}{Zsr-qWGbSRI`X$nnQ9P$V>d)lfI4w%Un8!L*QudD-v7h> zrZ&2@1Z4C6)>11qdZ6L`l*vp8XbVO^W72-ewo#Xj?xC+hJzzjNEZMZFFKjH?QsYf+ zs+k(!9c`wj4m7-<`2$P}XbVl4v>&p;^qw{aC7R~|ra9XNUr?=i!=M2R1qO_P)pud5 zxGtD+HmdYgn|hu(eUKS#Wk#FY#V@R8W^_L_2JH3#kY;LZd!UuNc%b3^%pYJtwZ3 z0zPS)zg;a>u=fKgZknXNXqxmbFrx1R*%3Sk9_%Rmo-23+KP(ZQZ9 zrcN?lRLdvnui)Woy!WJ+P&{q2Zgq-njne~1o*#$*#CFo+;>VwocvY* H;yL*bQzDC8 diff --git a/pyCatSim/utils/__pycache__/__init__.cpython-312.pyc b/pyCatSim/utils/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index f12311003523dd128bbcd4b2c7a88aae0ccd2685..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 271 zcmX@j%ge<81kJ0}GwOl#V-N=hn4pZ$LO{lJh7^Vr@^8<+w%#4hTAK91~S-x^GFp3qi1H}LVnM?-& diff --git a/pyCatSim/utils/__pycache__/noises.cpython-312.pyc b/pyCatSim/utils/__pycache__/noises.cpython-312.pyc deleted file mode 100644 index 5db14c9eba96eb6e227f8d530bc94ba02723fc3f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1604 zcmd@UO=}cMw7REzrl->}#(?NW%7Da?IK#5*2O=UGq8`i!jVNGU+ktuOVo+&#BSOa0@{sB%@UmD*h$=`Yatsk zmzB4z!b0cJz~tzpmE*v4CP$J1MZMv>sex>CZXb|MpN`S$uU2ymP9M&o=hlMtpZukE zByqxN7Bk%9sUlG-ahFROErUezETs~+h|(y<30Y-+?j(#q%AIZ|#0PD^X64mxOnOFp z0XS!osP+e)PF^ldv<`AJ;gkXEYW3TIHqm3KQ-*}qv(->b*+vsk2kQJabShs<5K`Vi zMoZfVuLqT}P|vBk1S*Yu3~)C}vY03)F~K?)-$)mUAPG}UNW-2Tf?;)n_!7Rxc|41G zS4BJ}vANL}@3)z1Gl3PyMiH2zc=+^^$XE??foUX%cZ#hke0rY5lGW;X3A8C&Az7?2 zw8Mz&MNoH`%0&7_M8>I9V(9$VO5t?ybQX)^6&{5_B-TC)qx0+TZAkm%x~H?RC*2a=XyG|6;dqiX^ie)3^kz}&o?Frp0gN^{vKLuz5?PKHxzhzIK zyq!4uuQ&PU^ybX7na$Z}vw!too!LEd?r-mW9~9BIJ68I0e0O7&yNi&vSod`HW~_wX zmtq2tG-D(51{3=88#JQ{-FKmPSIwHQjpvmxq`Vb|njmo;hGsCu7%1cwJ(+Q|Ec6P= zy)ayfVy0EQMChr@Jw3E$d@F)U9zSG4Z_{GPwA-!1m5C$wE*G2ciZ}sRIzagV(0<9X ztdC{ea`t`XAAVb%07-Rnqw=|oEc^~t-=kw6%V>P^k7K_t>;=<1!SwSVc7juTL47Bv ezgpW3F75?acY>?C!L^NQ-6w)_jXtS From 217a4ff8b87beb6a810ae1df1604ac9cd78f7449 Mon Sep 17 00:00:00 2001 From: khider <11758571+khider@users.noreply.github.com> Date: Thu, 29 May 2025 18:44:09 -0700 Subject: [PATCH 4/5] Update cat.py --- pyCatSim/api/cat.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyCatSim/api/cat.py b/pyCatSim/api/cat.py index 62c29a7..ab6d99c 100644 --- a/pyCatSim/api/cat.py +++ b/pyCatSim/api/cat.py @@ -113,6 +113,8 @@ def make_noise(self, noise='meow', play=False): pyCatSim.utils.noises.meow: Simulates a cat meow pyCatSim.utils.noises.purr: Simulates a cat purr + + pyCatSim.utils.noises.chatter: Simulates a cat chatter Examples -------- @@ -127,7 +129,8 @@ def make_noise(self, noise='meow', play=False): noise_func ={ 'meow':noises.meow, - 'purr':noises.purr} + 'purr':noises.purr, + 'chatter':noises.chatter} if noise in noise_func.keys(): return noise_func[noise](play=play) From bcf69d14528b2b7fef9c5723f4656c096c7f153c Mon Sep 17 00:00:00 2001 From: khider <11758571+khider@users.noreply.github.com> Date: Thu, 29 May 2025 18:50:42 -0700 Subject: [PATCH 5/5] fix chatter --- pyCatSim/tests/test_api_Cat.py | 2 +- pyCatSim/utils/noises.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyCatSim/tests/test_api_Cat.py b/pyCatSim/tests/test_api_Cat.py index 870d276..f98e218 100644 --- a/pyCatSim/tests/test_api_Cat.py +++ b/pyCatSim/tests/test_api_Cat.py @@ -72,7 +72,7 @@ def test_noise_t0(self,noise,play): elif noise == 'purr': assert v == 'Purrr' elif noise == 'chatter': - assert v == 'Chattering' + assert v == 'chattering' elif noise == 'hiss': assert v == 'Hiss..' elif noise == 'chirrup': diff --git a/pyCatSim/utils/noises.py b/pyCatSim/utils/noises.py index 192248b..3cdb78a 100644 --- a/pyCatSim/utils/noises.py +++ b/pyCatSim/utils/noises.py @@ -8,7 +8,8 @@ __all__=['meow', 'purr', 'chatter', - 'chirrup'] + 'chirrup', + 'hiss'] from playsound import playsound import os @@ -78,7 +79,7 @@ def chatter(play=False): """ if play is False: - return "Chatter" + return "chattering" else: playsound(os.path.join(SOUND_DIR, "chattering.mp3"))