What every Python project should have
https://vladcalin.github.io/what-every-python-project-should-have.html#what-every-python-project-should-have
/r/Python
https://redd.it/5n4jz7
https://vladcalin.github.io/what-every-python-project-should-have.html#what-every-python-project-should-have
/r/Python
https://redd.it/5n4jz7
Vlad's blog
What every Python project should have
Over the past few years, the Python programming language gained a huge popularity boost and its community grew faster than ever. With this growth, a lot of tools appeared that help the community keep things organized and accessible. In this article I am…
My attempt at histogram_equalization (Digital Image Processing)
Does this seem correct? Is there anything I can do to improve speeds?
def histogram_equalization(image):
try:
assert len(image.shape) == 2
except ValueError as e: #what exception
image = imread(image)
assert len(image.shape) == 2
source, indicies, counts =np.unique(image, return_inverse= True, return_counts = True)
s_cdf = np.cumsum(counts).astype(np.float64)
s_cdf /= s_cdf[-1]
new_values = np.around(s_cdf * source).astype('uint8')
new_image = new_values[indicies].reshape(image.shape)
return new_image
/r/Python
https://redd.it/87o21t
Does this seem correct? Is there anything I can do to improve speeds?
def histogram_equalization(image):
try:
assert len(image.shape) == 2
except ValueError as e: #what exception
image = imread(image)
assert len(image.shape) == 2
source, indicies, counts =np.unique(image, return_inverse= True, return_counts = True)
s_cdf = np.cumsum(counts).astype(np.float64)
s_cdf /= s_cdf[-1]
new_values = np.around(s_cdf * source).astype('uint8')
new_image = new_values[indicies].reshape(image.shape)
return new_image
/r/Python
https://redd.it/87o21t
reddit
My attempt at histogram_equalization (Digital Image... • r/Python
Does this seem correct? Is there anything I can do to improve speeds? def histogram_equalization(image): try: assert...
New stable release of PySolFC — an open-source collection of over 1,000 card Solitaire/Mahjong games
[PySolFC](http://pysolfc.sourceforge.net/) is a free and open-source collection of over 1,000 card Solitaire and Mahjong games with many features and solver/analysis tools. It is almost [20 years old](http://solitaire.vegard2.net/pysol.html), and the current development efforts are concentrated on [the GitHub repository](https://github.com/shlomif/PySolFC).
The PySolFC developers are happy to announce a new stable release, 2.2.0, of PySolFC (the last one was in distant 2009!). Among the new features are:
* Compatibility with both Python 3.x and Python 2.7.
* Support for the Kivy user-interface toolkit, for Android devices and other systems.
* A Microsoft Windows binary installer.
* Support for dealing all [Freecell Pro deals](http://fc-solve.shlomifish.org/faq.html#what_are_ms_deals) by specifying "ms100000", or similar, as the seed.
* Support for the [Black Hole and All in a Row solver](http://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/) was added.
* Test suite and [CI](https://en.wikipedia.org/wiki/Continuous_integration) have been added to the repository.
* The code now passes [flake8](https://pypi.python.org/pypi/flake8) validation.
You can find [download links](https://sourceforge.net/projects/pysolfc/files/PySolFC/) for current Windows, source code, and Android versions.
Packages for Linux/BSD/etc. distributions and operating systems should be made
available soon from the downstream packagers.
Future plans:
* Vector-based fully scalable cards and graphics
* Large-scale cardsets for HD displays
* An online, WWW-based version
If you want to help, we need:
* Programmers
* Graphic designers who would help with improving the app’s look
* People to help with documentation and translations
* People who would spread the word
* Testers / QA people
* Monetary donations - see [this page](http://www.shlomifish.org/meta/how-to-help/)
We will gladly answer any questions!
Remember that apart from this thread you can also contact us using the [FOSS Card Games group](https://groups.google.com/forum/#!forum/foss-card-games), and using the ##pysol chat room on [Freenode](http://freenode.net/) (note the double octothorpe/hash-sign/pound-sign).
A final note is that while we are using GitHub for version control, and accept
pull requests and issue reports, we are still hosting the main site and the
downloads on SourceForge.net. See [the explanation](https://www.reddit.com/r/Python/comments/8237i3/help_is_needed_in_preparing_a_windows_binary/dv84xxu/)
for details.
/r/Python
https://redd.it/8cnoou
[PySolFC](http://pysolfc.sourceforge.net/) is a free and open-source collection of over 1,000 card Solitaire and Mahjong games with many features and solver/analysis tools. It is almost [20 years old](http://solitaire.vegard2.net/pysol.html), and the current development efforts are concentrated on [the GitHub repository](https://github.com/shlomif/PySolFC).
The PySolFC developers are happy to announce a new stable release, 2.2.0, of PySolFC (the last one was in distant 2009!). Among the new features are:
* Compatibility with both Python 3.x and Python 2.7.
* Support for the Kivy user-interface toolkit, for Android devices and other systems.
* A Microsoft Windows binary installer.
* Support for dealing all [Freecell Pro deals](http://fc-solve.shlomifish.org/faq.html#what_are_ms_deals) by specifying "ms100000", or similar, as the seed.
* Support for the [Black Hole and All in a Row solver](http://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/) was added.
* Test suite and [CI](https://en.wikipedia.org/wiki/Continuous_integration) have been added to the repository.
* The code now passes [flake8](https://pypi.python.org/pypi/flake8) validation.
You can find [download links](https://sourceforge.net/projects/pysolfc/files/PySolFC/) for current Windows, source code, and Android versions.
Packages for Linux/BSD/etc. distributions and operating systems should be made
available soon from the downstream packagers.
Future plans:
* Vector-based fully scalable cards and graphics
* Large-scale cardsets for HD displays
* An online, WWW-based version
If you want to help, we need:
* Programmers
* Graphic designers who would help with improving the app’s look
* People to help with documentation and translations
* People who would spread the word
* Testers / QA people
* Monetary donations - see [this page](http://www.shlomifish.org/meta/how-to-help/)
We will gladly answer any questions!
Remember that apart from this thread you can also contact us using the [FOSS Card Games group](https://groups.google.com/forum/#!forum/foss-card-games), and using the ##pysol chat room on [Freenode](http://freenode.net/) (note the double octothorpe/hash-sign/pound-sign).
A final note is that while we are using GitHub for version control, and accept
pull requests and issue reports, we are still hosting the main site and the
downloads on SourceForge.net. See [the explanation](https://www.reddit.com/r/Python/comments/8237i3/help_is_needed_in_preparing_a_windows_binary/dv84xxu/)
for details.
/r/Python
https://redd.it/8cnoou
GitHub
GitHub - shlomif/PySolFC: A comprehensive, feature-rich, open source, and portable, collection of Solitaire games.
A comprehensive, feature-rich, open source, and portable, collection of Solitaire games. - shlomif/PySolFC