Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix windows unicode error #113

Closed
wants to merge 11 commits into from

Conversation

abukaj
Copy link
Member

@abukaj abukaj commented Jan 8, 2020

@ccluri that fix should fix the UnicodeDecodeError issue when installing on Windows systems

`kcsd.validation.csd_profile.gauss_2d_large(seed=63)` does not return
NaN anymore.

`repeatUntilValid()` decorator has been defined for that purpose.

A simple test for the fix provided in the `__main__` section of the module.

Note: The issue has not been solved by fixing distribution of
the `zs` variable in order to provide backward-compatibility.
…on.csd_profile.repeatUntilValid()` decorator.
Seed sequence generation moved to `seedSequence()` generator function.
According to https://docs.python.org/3/library/builtins.html imports
from `builtsin` are unnecessary. As `builtsin` is Python 3 only,
their removal increases beckward-compatibility of the package.

Fixes Neuroinflab#77
Upstream = Neuroinflab/kCSD-python
I have included code which generates figure with EPMs (Fig. 7 at the
moment). Also, `colorblind_friendly` module with definition of
colorblind friendly colors is provided, which my code depends on.
Conflicts:
	figures/kCSD_properties/error_propagation.py
It seems that encoding of text files at Windows systems may default to
legacy encodings (like cp1252), thus the utf-8 encoding of the
README.rst is now given explicitely.
@abukaj abukaj requested a review from ccluri January 8, 2020 16:23
@abukaj abukaj closed this Jan 8, 2020
@abukaj abukaj deleted the fix_windows_unicode_error branch January 8, 2020 16:28
@coveralls
Copy link

coveralls commented Jan 8, 2020

Pull Request Test Coverage Report for Build 266

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.07%) to 62.319%

Totals Coverage Status
Change from base Build 265: 0.07%
Covered Lines: 5418
Relevant Lines: 8694

💛 - Coveralls

@abukaj
Copy link
Member Author

abukaj commented Jan 8, 2020

Bad master branch, sorry. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants