Difference between revisions of "BPM Summer 2016 preview"

From Phonlab
Jump to navigationJump to search
Line 1: Line 1:
 
The Summer 2016 BPM machine image contains many updated packages. The current machine is a *preview* for testing functionality, not for research or instruction.
 
The Summer 2016 BPM machine image contains many updated packages. The current machine is a *preview* for testing functionality, not for research or instruction.
   
You can [https://berkeley.box.com/s/cemddudd6o6578kr4go9t1k7wh5yj5gc download the 2-preview machine image from Box].
+
You can [https://berkeley.box.com/s/cemddudd6o6578kr4go9t1k7wh5yj download the 2-preview machine image from Box].
   
 
== Staying up-to-date with the preview ==
 
== Staying up-to-date with the preview ==

Revision as of 13:09, 18 August 2016

The Summer 2016 BPM machine image contains many updated packages. The current machine is a *preview* for testing functionality, not for research or instruction.

You can download the 2-preview machine image from Box.

Staying up-to-date with the preview

Currently no updates are required with the 2-preview image.

Some errors in the 1-preview image were been corrected. For reference, the errors corrected in that image were installed with:

 cd src
 rm -rf klsyn
 rm -rf ultratils
 rm -rf audiolabel
 sudo bpm-update klsyn
 sudo bpm-update ultratils
 sudo bpm-update audiolabel
 sudo wget --output-document=/usr/local/bin/bpm-update-2016-summer https://raw.githubusercontent.com/rsprouse/bpm-bce/master/scripts/bpm-update-2016-summer
 pip install pygame

Some notable changes from Spring 2015:

Default username

The default user is no longer 'oski'. It has changed to 'ubuntu'. As before, commands that require elevated privileges can be executed via sudo and without a password.

Python

Python 3.5 is now the default Python (from 2.7). The 3.x series has some backwards-incompatible changes, and existing Python 2 scripts might require updating. See major changes introduced by Python 3. The 'print' and 'text vs. data' sections are probably the most important to read and understand.

Python 2.7 is also installed as a conda environment. To activate this version in a terminal session:

 source activate py27

This command will make Python 2.7 the active Python in that terminal window. Other terminal windows remain at 3.5.

Jupyter notebooks

The ipython notebook has been replaced with the jupyter notebook, which means you can now create notebooks using Python (3.5 or 2.7) or R. To start:

 jupyter notebook

Opensesame

The version of Opensesame is now 3.1 (formerly 0.27). Inline scripts use Python 3.5, and the expyriment and psychopy backends are not available. Look for it under Applications > Programming or run 'opensesame' at the command line.

PyCharm

For those interested in an IDE for Python, you can try PyCharm.

version.txt

The BPM version is stored as a string in the BPM_VERSION environment variable. The version.txt file on the default user's desktop has been removed from the BPM.

New packages

New install targets for bpm-update include:

 sudo bpm-update phon
 sudo bpm-update autovot

These packages are not installed in the preview image.

The phon target installs the Phon database for doing phonetics and phonology (https://www.phon.ca/phontrac).

The autovot target installs AutoVOT package for automatic measurements of VOT (https://github.com/mlml/autovot). If you use this software you can find the tutorial experiments in /home/ubuntu/src/autovot. Also, it is not necessary to modify $PATH as described in the AutoVOT instructions.

display_acq

The display_acq utility is little-used and has been removed as an installable bpm-update target.

How to enable the IPA keyboard

A keyboard for use with the SIL Charis/Doulos fonts is installed. If you want to use this keyboard, first enable the Keyboard Input Methods:

 Applications > Settings Manager > IBus Preferences (under Other)

Answer 'Yes' to start the Keyboard Input Methods (IBus Daemon). The IBus Prefences setup window will show that an IPA keyboard is available on the Input Methods tab. You can close the preferences window after the daemon has been started.

To switch between keyboards, click on the input method switcher in the top right corner of the desktop, on the menu bar near the clock applet. Select the keyboard you wish to use. US English and IPA are already installed, and you can add others with IBus Preferences.