pycwr icon indicating copy to clipboard operation
pycwr copied to clipboard

fix: avoid error by adding additional condition

Open Weilet opened this issue 11 months ago • 2 comments

When using pycwr, an error is throw:

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

This is because some spec is a list of narray, which can not use in statement directly. Since field red is only use in dict type of cmap spec, I make some minor fix on if statement condition and it works fine in my local machine. I think it can be merged, hoping for your review.

Weilet avatar Aug 15 '23 06:08 Weilet

close as owner ignore my pull request and fix the bug with (nearly) my code

for those who want to contribute

I think it's a very private repository because the owner always ignores issues and pull requests. Save your time for a more valuable repository.

for those who are using this lib

God bless you

Weilet avatar Feb 04 '24 21:02 Weilet

Thank you very much for your contribution and for bringing this issue to my attention. First and foremost, I must apologize for the oversight in managing this repository. As the maintainer of this library, I fully understand and appreciate the value of community participation and contribution to open-source projects. However, due to personal time and resource constraints, I have failed to give your contribution and the issues raised by other community members the attention they deserved. For this, I am truly sorry.

Allow me to explain some context regarding the code issue you've mentioned. The code section in question is not originally my creation. In fact, at the beginning of the code file, I have indicated this and mentioned that the choice of color schemes was inspired by py-art's implementation. When bugs were identified, I attempted to make corrections based on py-art's approach, Allow me to explain some context regarding the code issue you've mentioned. The code section in question is not originally my creation. In fact, at the beginning of the code file, I have indicated this and mentioned that the choice of color schemes was inspired by py-art's implementation. When bugs were identified, I attempted to make corrections based on py-art's approach, which clearly was not the optimal solution, especially since you had already offered the fix.

I fully understand your frustration with the management attitude toward the project and your concerns about the valuable time you've invested. Please know that your feedback is invaluable to me, and I will take steps to improve the project's management and response mechanisms to ensure that contributions and issues from the community are addressed promptly and appropriately.

To those using this library, I also want to take this opportunity to express my gratitude for your support and understanding. I will continue to work on optimizing and fixing issues within the library to provide a more stable and reliable tool.

Thank you again for your contribution and patience. I sincerely hope to continue to have your support and understanding. I will do my best to improve this project, and I welcome more suggestions and contributions to help push the development of the project forward. 截屏2024-03-13 10 55 20

YvZheng avatar Mar 13 '24 02:03 YvZheng