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

Merge richard #2211

Merged
merged 13 commits into from Jan 15, 2019
Merged

Merge richard #2211

merged 13 commits into from Jan 15, 2019

Conversation

peircej
Copy link
Member

@peircej peircej commented Jan 15, 2019

Merged Richards changes to using utf-8-sig (and io instead of codecs) and David's fixes to useVersion compileScript

Richard Höchenberger and others added 13 commits January 13, 2019 21:26
- We now use the `utf-8-sig` encoding in more places where we previously
  used `utf-8`.

- Context managers are now used for opening files in all occurrences
  I discovered where that was not the case so far.

- In places where the `rU` decoding was used we switched to
  `io.open(..., 'r')`, which is both supported in Python 2 and 3
  (in fact, in Python 3, `open is io.open`). This allowed to achieve
  backward-compatible code with fewer redundancies in many places.
iohub tries to import msgpack-numpy and, if that import fails, emits a
warning that this "may cause issues". Therefore, adding msgpack-numpy
to the package requirements.
Imported modules at the beginning of the script were used to
compile the experiment script. These modules were imported from the current
version of PsychoPy, not the requested version. This fix imports modules
after useVersion has been called, which fixes the problem. Also adds docstrings and
refactors.
Since we're not actually installing Anaconda, but we're using
`conda` from the Miniconda distribution.

Also rename the environments accordingly.
# Conflicts:
#	psychopy/scripts/psyexpCompile.py
io.open has different args order to codecs.open

also compile with JS should log a warning not raise an error
@coveralls
Copy link

coveralls commented Jan 15, 2019

Coverage Status

Coverage increased (+0.03%) to 46.983% when pulling c723b45 on peircej:mergeRichard into 105cc26 on psychopy:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 46.98% when pulling c723b45 on peircej:mergeRichard into 105cc26 on psychopy:master.

@codecov-io
Copy link

Codecov Report

Merging #2211 into master will increase coverage by 0.02%.
The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2211      +/-   ##
==========================================
+ Coverage   42.86%   42.88%   +0.02%     
==========================================
  Files         221      221              
  Lines       38232    38225       -7     
  Branches     6574     6572       -2     
==========================================
+ Hits        16387    16394       +7     
+ Misses      20284    20268      -16     
- Partials     1561     1563       +2
Impacted Files Coverage Δ
psychopy/experiment/_experiment.py 49.6% <0%> (+0.09%) ⬆️
psychopy/monitors/MonitorCenter.py 0% <0%> (ø) ⬆️
psychopy/app/builder/builder.py 52.27% <0%> (+0.03%) ⬆️
psychopy/app/coder/coder.py 28.58% <0%> (+0.1%) ⬆️
psychopy/info.py 49.09% <100%> (+0.11%) ⬆️
psychopy/tools/wizard.py 73.74% <100%> (-0.06%) ⬇️
psychopy/data/base.py 73.36% <100%> (+0.11%) ⬆️
psychopy/localization/__init__.py 77.33% <100%> (+0.3%) ⬆️
psychopy/app/_psychopyApp.py 38.19% <20%> (+0.2%) ⬆️
psychopy/visual/textbox/parsedtext.py 60.61% <33.33%> (+0.26%) ⬆️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 105cc26...c723b45. Read the comment docs.

@peircej peircej merged commit 6d38535 into psychopy:master Jan 15, 2019
@peircej peircej deleted the mergeRichard branch July 29, 2020 12:03
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.

None yet

4 participants