内容

いろいろ設定... 1

nibabelの導入と境界要素の表示... 1

位置合わせ(実行できず)... 1

信号源の位置決め... 1

導体モデルの作成... 1

分散行列の計算... 1

分散行列の表示... 1

分散行列の規則化... 1

 

 

MNE-Python tutorialの以下の部分を試しました。

MNE-Pythonでは完結せず、座標合わせなどMNE-Cでの処理が必要になりそうです。。

 

 

いろいろ設定

いろいろ設定します。

import mne

from mne.datasets import sample

data_path=sample.data_path()

raw_fname=data_path+'\\MEG\\sample\\sample_audvis_raw.fif'

subjects_dir=data_path+'\\subjects'

subject='sample'

 

nibabelの導入と境界要素の表示

事前にFreeSurferMRIデータから脳ボクセルを抽出し、三角メッシュ化まで終了していという前提です。

以下を実行します。

mne.viz.plot_bem(subject=subject,subjects_dir=subjects_dir,brain_surfaces='white',orientation='coronal')

エラーが出ます。

  File "C:\Users\akira\Anaconda3\lib\site-packages\mne\viz\misc.py", line 440, in plot_bem

    show)

  File "C:\Users\akira\Anaconda3\lib\site-packages\mne\viz\misc.py", line 268, in _plot_mri_contours

    import nibabel as nib

ImportError: No module named 'nibabel'

>>> Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

nibabelというmoduleがないと表示されてますので、インストールします。

pip install nibabel

再度挑戦です。

mne.viz.plot_bem(subject=subject,subjects_dir=subjects_dir,brain_surfaces='white',orientation='coronal')

mne.viz.plot_bem(subject=subject,subjects_dir=subjects_dir,brain_surfaces='white',orientation='sagittal')

今度は成功です。橙色が頭皮outer_skin、黄色が頭蓋内outer_skull、赤が脳inner_skull、緑が皮髄境界です。

 

位置合わせ(実行できず)

以下を実行します。

trans=data_path+'\\MEG\\sample\\sample_audvis_raw-trans.fif'

info=mne.io.read_info(raw_fname)

mne.viz.plot_trans(info,trans,subject=subject,dig=True,meg_sensors=True,subjects_dir=subjects_dir)

エラーが出ます。

>>>

  File "<string>", line 2, in plot_trans

  File "C:\Users\akira\Anaconda3\lib\site-packages\mne\utils.py", line 708, in verbose

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

 

    return function(*args, **kwargs)

  File "C:\Users\akira\Anaconda3\lib\site-packages\mne\viz\_3d.py", line 430, in plot_trans

    from mayavi import mlab

ImportError: No module named 'mayavi'

module mayaviがないといわれます。

mayavipip install mayaviでインストールできるらしいんですが、残念ながらPython 2.7用らしいです。

挑戦しました(結局)

Microsoft Windows [Version 10.0.14393]

(c) 2016 Microsoft Corporation. All rights reserved.

 

C:\Users\akira>pip install mayavi

Collecting mayavi

  Downloading mayavi-4.5.0.tar.bz2 (6.9MB)

    100% |################################| 6.9MB 125kB/s

Collecting apptools (from mayavi)

  Downloading apptools-4.4.0.zip (490kB)

    100% |################################| 491kB 402kB/s

Collecting traits (from mayavi)

  Downloading traits-4.6.0.zip (546kB)

    100% |################################| 552kB 377kB/s

Collecting traitsui (from mayavi)

  Downloading traitsui-5.1.0.zip (5.5MB)

    100% |################################| 5.5MB 152kB/s

Requirement already satisfied: configobj in c:\users\akira\anaconda3\lib\site-packages (from apptools->mayavi)

Collecting pyface (from traitsui->mayavi)

  Downloading pyface-5.1.0.tar.bz2 (5.0MB)

    100% |################################| 5.0MB 166kB/s

Requirement already satisfied: pygments in c:\users\akira\anaconda3\lib\site-packages (from pyface->traitsui->mayavi)

Building wheels for collected packages: mayavi, apptools, traits, traitsui, pyface

  Running setup.py bdist_wheel for mayavi ... error

  Complete output from command c:\users\akira\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\akira\\AppData\\Local\\Temp\\pip-build-qpyfzmx2\\mayavi\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\akira\AppData\Local\Temp\tmpmsc7tr7fpip-wheel- --python-tag cp35:

  running bdist_wheel

  running build

  Traceback (most recent call last):

    File "<string>", line 1, in <module>

    File "C:\Users\akira\AppData\Local\Temp\pip-build-qpyfzmx2\mayavi\setup.py", line 499, in <module>

      **config

    File "c:\users\akira\anaconda3\lib\site-packages\numpy\distutils\core.py", line 169, in setup

      return old_setup(**new_attr)

    File "c:\users\akira\anaconda3\lib\distutils\core.py", line 148, in setup

      dist.run_commands()

    File "c:\users\akira\anaconda3\lib\distutils\dist.py", line 955, in run_commands

      self.run_command(cmd)

    File "c:\users\akira\anaconda3\lib\distutils\dist.py", line 974, in run_command

      cmd_obj.run()

    File "c:\users\akira\anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 179, in run

      self.run_command('build')

    File "c:\users\akira\anaconda3\lib\distutils\cmd.py", line 313, in run_command

      self.distribution.run_command(command)

    File "c:\users\akira\anaconda3\lib\distutils\dist.py", line 974, in run_command

      cmd_obj.run()

    File "C:\Users\akira\AppData\Local\Temp\pip-build-qpyfzmx2\mayavi\setup.py", line 311, in run

      build_tvtk_classes_zip()

    File "C:\Users\akira\AppData\Local\Temp\pip-build-qpyfzmx2\mayavi\setup.py", line 297, in build_tvtk_classes_zip

      gen_tvtk_classes_zip()

    File "tvtk\setup.py", line 50, in gen_tvtk_classes_zip

      from tvtk.code_gen import TVTKGenerator

    File "C:\Users\akira\AppData\Local\Temp\pip-build-qpyfzmx2\mayavi\tvtk\code_gen.py", line 10, in <module>

      import vtk

  ImportError: No module named 'vtk'

 

  ----------------------------------------

  Failed building wheel for mayavi

  Running setup.py clean for mayavi

  Running setup.py bdist_wheel for apptools ... done

  Stored in directory: C:\Users\akira\AppData\Local\pip\Cache\wheels\14\19\82\1f2cd3a67ddda52da01232a26d33736ca77d0ece6bcfa1e184

  Running setup.py bdist_wheel for traits ... error

  Complete output from command c:\users\akira\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\akira\\AppData\\Local\\Temp\\pip-build-qpyfzmx2\\traits\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\akira\AppData\Local\Temp\tmpyiw9bh3ypip-wheel- --python-tag cp35:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build\lib.win-amd64-3.5

  creating build\lib.win-amd64-3.5\traits

  copying traits\adapter.py -> build\lib.win-amd64-3.5\traits

  copying traits\api.py -> build\lib.win-amd64-3.5\traits

  copying traits\category.py -> build\lib.win-amd64-3.5\traits

  copying traits\has_dynamic_views.py -> build\lib.win-amd64-3.5\traits

  copying traits\has_traits.py -> build\lib.win-amd64-3.5\traits

  copying traits\interface_checker.py -> build\lib.win-amd64-3.5\traits

  copying traits\traits.py -> build\lib.win-amd64-3.5\traits

  copying traits\traits_listener.py -> build\lib.win-amd64-3.5\traits

  copying traits\trait_base.py -> build\lib.win-amd64-3.5\traits

  copying traits\trait_errors.py -> build\lib.win-amd64-3.5\traits

  copying traits\trait_handlers.py -> build\lib.win-amd64-3.5\traits

  copying traits\trait_notifiers.py -> build\lib.win-amd64-3.5\traits

  copying traits\trait_numeric.py -> build\lib.win-amd64-3.5\traits

  copying traits\trait_types.py -> build\lib.win-amd64-3.5\traits

  copying traits\trait_value.py -> build\lib.win-amd64-3.5\traits

  copying traits\ustr_trait.py -> build\lib.win-amd64-3.5\traits

  copying traits\_py2to3.py -> build\lib.win-amd64-3.5\traits

  copying traits\_version.py -> build\lib.win-amd64-3.5\traits

  copying traits\__init__.py -> build\lib.win-amd64-3.5\traits

  creating build\lib.win-amd64-3.5\traits\adaptation

  copying traits\adaptation\adaptation_error.py -> build\lib.win-amd64-3.5\traits\adaptation

  copying traits\adaptation\adaptation_manager.py -> build\lib.win-amd64-3.5\traits\adaptation

  copying traits\adaptation\adaptation_offer.py -> build\lib.win-amd64-3.5\traits\adaptation

  copying traits\adaptation\adapter.py -> build\lib.win-amd64-3.5\traits\adaptation

  copying traits\adaptation\api.py -> build\lib.win-amd64-3.5\traits\adaptation

  copying traits\adaptation\cached_adapter_factory.py -> build\lib.win-amd64-3.5\traits\adaptation

  copying traits\adaptation\__init__.py -> build\lib.win-amd64-3.5\traits\adaptation

  creating build\lib.win-amd64-3.5\traits\etsconfig

  copying traits\etsconfig\api.py -> build\lib.win-amd64-3.5\traits\etsconfig

  copying traits\etsconfig\etsconfig.py -> build\lib.win-amd64-3.5\traits\etsconfig

  copying traits\etsconfig\__init__.py -> build\lib.win-amd64-3.5\traits\etsconfig

  creating build\lib.win-amd64-3.5\traits\protocols

  copying traits\protocols\advice.py -> build\lib.win-amd64-3.5\traits\protocols

  copying traits\protocols\api.py -> build\lib.win-amd64-3.5\traits\protocols

  copying traits\protocols\__init__.py -> build\lib.win-amd64-3.5\traits\protocols

  creating build\lib.win-amd64-3.5\traits\testing

  copying traits\testing\api.py -> build\lib.win-amd64-3.5\traits\testing

  copying traits\testing\doctest_tools.py -> build\lib.win-amd64-3.5\traits\testing

  copying traits\testing\nose_tools.py -> build\lib.win-amd64-3.5\traits\testing

  copying traits\testing\unittest_tools.py -> build\lib.win-amd64-3.5\traits\testing

  copying traits\testing\__init__.py -> build\lib.win-amd64-3.5\traits\testing

  creating build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\check_timing.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_abc.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_anytrait_static_notifiers.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_array.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_array_or_none.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_automatic_adaptation.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_bool.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_category.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_class_traits.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_clone.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_container_events.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_copyable_trait_names.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_copy_traits.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_cythonized_traits.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_delegate.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_dict.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_dynamic_notifiers.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_dynamic_trait_definition.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_enum.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_event_order.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_extended_notifiers.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_extended_trait_change.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_float.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_get_traits.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_integer.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_interfaces.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_interfaces_with_implements.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_interface_checker.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_int_range_long.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_keyword_args.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_list.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_listeners.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_list_events.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_new_notifiers.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_pickle_validated_dict.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_property_delete.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_property_notifications.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_protocols_usage.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_range.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_regression.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_rich_compare.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_special_event_handlers.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_static_notifiers.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_string.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_str_handler.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_sync_traits.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_target.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_traits.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_trait_change_event_tracer.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_trait_cycle.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_trait_default_initializer.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_trait_exceptions.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_trait_get_set.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_trait_list_dict.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_trait_types.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_tuple.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_ui_notifiers.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_undefined.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_validated_tuple.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\test_weak_ref.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\tuple_test_mixin.py -> build\lib.win-amd64-3.5\traits\tests

  copying traits\tests\__init__.py -> build\lib.win-amd64-3.5\traits\tests

  creating build\lib.win-amd64-3.5\traits\util

  copying traits\util\api.py -> build\lib.win-amd64-3.5\traits\util

  copying traits\util\async_trait_wait.py -> build\lib.win-amd64-3.5\traits\util

  copying traits\util\camel_case.py -> build\lib.win-amd64-3.5\traits\util

  copying traits\util\clean_strings.py -> build\lib.win-amd64-3.5\traits\util

  copying traits\util\deprecated.py -> build\lib.win-amd64-3.5\traits\util

  copying traits\util\event_tracer.py -> build\lib.win-amd64-3.5\traits\util

  copying traits\util\home_directory.py -> build\lib.win-amd64-3.5\traits\util

  copying traits\util\import_symbol.py -> build\lib.win-amd64-3.5\traits\util

  copying traits\util\resource.py -> build\lib.win-amd64-3.5\traits\util

  copying traits\util\toposort.py -> build\lib.win-amd64-3.5\traits\util

  copying traits\util\trait_documenter.py -> build\lib.win-amd64-3.5\traits\util

  copying traits\util\__init__.py -> build\lib.win-amd64-3.5\traits\util

  creating build\lib.win-amd64-3.5\traits\adaptation\tests

  copying traits\adaptation\tests\abc_examples.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

  copying traits\adaptation\tests\benchmark.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

  copying traits\adaptation\tests\interface_examples.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

  copying traits\adaptation\tests\lazy_examples.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

  copying traits\adaptation\tests\test_adaptation_manager.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

  copying traits\adaptation\tests\test_adaptation_offer.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

  copying traits\adaptation\tests\test_adapter.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

  copying traits\adaptation\tests\test_cached_adapter_factory.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

  copying traits\adaptation\tests\test_global_adaptation_manager.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

  copying traits\adaptation\tests\__init__.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

  creating build\lib.win-amd64-3.5\traits\etsconfig\tests

  copying traits\etsconfig\tests\test_etsconfig.py -> build\lib.win-amd64-3.5\traits\etsconfig\tests

  copying traits\etsconfig\tests\__init__.py -> build\lib.win-amd64-3.5\traits\etsconfig\tests

  creating build\lib.win-amd64-3.5\traits\testing\tests

  copying traits\testing\tests\test_unittest_tools.py -> build\lib.win-amd64-3.5\traits\testing\tests

  copying traits\testing\tests\__init__.py -> build\lib.win-amd64-3.5\traits\testing\tests

  creating build\lib.win-amd64-3.5\traits\util\tests

  copying traits\util\tests\test_async_trait_wait.py -> build\lib.win-amd64-3.5\traits\util\tests

  copying traits\util\tests\test_camel_case.py -> build\lib.win-amd64-3.5\traits\util\tests

  copying traits\util\tests\test_deprecated.py -> build\lib.win-amd64-3.5\traits\util\tests

  copying traits\util\tests\test_import_symbol.py -> build\lib.win-amd64-3.5\traits\util\tests

  copying traits\util\tests\test_message_records.py -> build\lib.win-amd64-3.5\traits\util\tests

  copying traits\util\tests\test_record_containers.py -> build\lib.win-amd64-3.5\traits\util\tests

  copying traits\util\tests\test_record_events.py -> build\lib.win-amd64-3.5\traits\util\tests

  copying traits\util\tests\test_trait_documenter.py -> build\lib.win-amd64-3.5\traits\util\tests

  copying traits\util\tests\__init__.py -> build\lib.win-amd64-3.5\traits\util\tests

  Fixing build\lib.win-amd64-3.5\traits\adapter.py build\lib.win-amd64-3.5\traits\api.py build\lib.win-amd64-3.5\traits\category.py build\lib.win-amd64-3.5\traits\has_dynamic_views.py build\lib.win-amd64-3.5\traits\has_traits.py build\lib.win-amd64-3.5\traits\interface_checker.py build\lib.win-amd64-3.5\traits\traits.py build\lib.win-amd64-3.5\traits\traits_listener.py build\lib.win-amd64-3.5\traits\trait_base.py build\lib.win-amd64-3.5\traits\trait_errors.py build\lib.win-amd64-3.5\traits\trait_handlers.py build\lib.win-amd64-3.5\traits\trait_notifiers.py build\lib.win-amd64-3.5\traits\trait_numeric.py build\lib.win-amd64-3.5\traits\trait_types.py build\lib.win-amd64-3.5\traits\trait_value.py build\lib.win-amd64-3.5\traits\ustr_trait.py build\lib.win-amd64-3.5\traits\_py2to3.py build\lib.win-amd64-3.5\traits\_version.py build\lib.win-amd64-3.5\traits\__init__.py build\lib.win-amd64-3.5\traits\adaptation\adaptation_error.py build\lib.win-amd64-3.5\traits\adaptation\adaptation_manager.py build\lib.win-amd64-3.5\traits\adaptation\adaptation_offer.py build\lib.win-amd64-3.5\traits\adaptation\adapter.py build\lib.win-amd64-3.5\traits\adaptation\api.py build\lib.win-amd64-3.5\traits\adaptation\cached_adapter_factory.py build\lib.win-amd64-3.5\traits\adaptation\__init__.py build\lib.win-amd64-3.5\traits\etsconfig\api.py build\lib.win-amd64-3.5\traits\etsconfig\etsconfig.py build\lib.win-amd64-3.5\traits\etsconfig\__init__.py build\lib.win-amd64-3.5\traits\protocols\advice.py build\lib.win-amd64-3.5\traits\protocols\api.py build\lib.win-amd64-3.5\traits\protocols\__init__.py build\lib.win-amd64-3.5\traits\testing\api.py build\lib.win-amd64-3.5\traits\testing\doctest_tools.py build\lib.win-amd64-3.5\traits\testing\nose_tools.py build\lib.win-amd64-3.5\traits\testing\unittest_tools.py build\lib.win-amd64-3.5\traits\testing\__init__.py build\lib.win-amd64-3.5\traits\tests\check_timing.py build\lib.win-amd64-3.5\traits\tests\test_abc.py build\lib.win-amd64-3.5\traits\tests\test_anytrait_static_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_array.py build\lib.win-amd64-3.5\traits\tests\test_array_or_none.py build\lib.win-amd64-3.5\traits\tests\test_automatic_adaptation.py build\lib.win-amd64-3.5\traits\tests\test_bool.py build\lib.win-amd64-3.5\traits\tests\test_category.py build\lib.win-amd64-3.5\traits\tests\test_class_traits.py build\lib.win-amd64-3.5\traits\tests\test_clone.py build\lib.win-amd64-3.5\traits\tests\test_container_events.py build\lib.win-amd64-3.5\traits\tests\test_copyable_trait_names.py build\lib.win-amd64-3.5\traits\tests\test_copy_traits.py build\lib.win-amd64-3.5\traits\tests\test_cythonized_traits.py build\lib.win-amd64-3.5\traits\tests\test_delegate.py build\lib.win-amd64-3.5\traits\tests\test_dict.py build\lib.win-amd64-3.5\traits\tests\test_dynamic_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_dynamic_trait_definition.py build\lib.win-amd64-3.5\traits\tests\test_enum.py build\lib.win-amd64-3.5\traits\tests\test_event_order.py build\lib.win-amd64-3.5\traits\tests\test_extended_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_extended_trait_change.py build\lib.win-amd64-3.5\traits\tests\test_float.py build\lib.win-amd64-3.5\traits\tests\test_get_traits.py build\lib.win-amd64-3.5\traits\tests\test_integer.py build\lib.win-amd64-3.5\traits\tests\test_interfaces.py build\lib.win-amd64-3.5\traits\tests\test_interfaces_with_implements.py build\lib.win-amd64-3.5\traits\tests\test_interface_checker.py build\lib.win-amd64-3.5\traits\tests\test_int_range_long.py build\lib.win-amd64-3.5\traits\tests\test_keyword_args.py build\lib.win-amd64-3.5\traits\tests\test_list.py build\lib.win-amd64-3.5\traits\tests\test_listeners.py build\lib.win-amd64-3.5\traits\tests\test_list_events.py build\lib.win-amd64-3.5\traits\tests\test_new_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_pickle_validated_dict.py build\lib.win-amd64-3.5\traits\tests\test_property_delete.py build\lib.win-amd64-3.5\traits\tests\test_property_notifications.py build\lib.win-amd64-3.5\traits\tests\test_protocols_usage.py build\lib.win-amd64-3.5\traits\tests\test_range.py build\lib.win-amd64-3.5\traits\tests\test_regression.py build\lib.win-amd64-3.5\traits\tests\test_rich_compare.py build\lib.win-amd64-3.5\traits\tests\test_special_event_handlers.py build\lib.win-amd64-3.5\traits\tests\test_static_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_string.py build\lib.win-amd64-3.5\traits\tests\test_str_handler.py build\lib.win-amd64-3.5\traits\tests\test_sync_traits.py build\lib.win-amd64-3.5\traits\tests\test_target.py build\lib.win-amd64-3.5\traits\tests\test_traits.py build\lib.win-amd64-3.5\traits\tests\test_trait_change_event_tracer.py build\lib.win-amd64-3.5\traits\tests\test_trait_cycle.py build\lib.win-amd64-3.5\traits\tests\test_trait_default_initializer.py build\lib.win-amd64-3.5\traits\tests\test_trait_exceptions.py build\lib.win-amd64-3.5\traits\tests\test_trait_get_set.py build\lib.win-amd64-3.5\traits\tests\test_trait_list_dict.py build\lib.win-amd64-3.5\traits\tests\test_trait_types.py build\lib.win-amd64-3.5\traits\tests\test_tuple.py build\lib.win-amd64-3.5\traits\tests\test_ui_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_undefined.py build\lib.win-amd64-3.5\traits\tests\test_validated_tuple.py build\lib.win-amd64-3.5\traits\tests\test_weak_ref.py build\lib.win-amd64-3.5\traits\tests\tuple_test_mixin.py build\lib.win-amd64-3.5\traits\tests\__init__.py build\lib.win-amd64-3.5\traits\util\api.py build\lib.win-amd64-3.5\traits\util\async_trait_wait.py build\lib.win-amd64-3.5\traits\util\camel_case.py build\lib.win-amd64-3.5\traits\util\clean_strings.py build\lib.win-amd64-3.5\traits\util\deprecated.py build\lib.win-amd64-3.5\traits\util\event_tracer.py build\lib.win-amd64-3.5\traits\util\home_directory.py build\lib.win-amd64-3.5\traits\util\import_symbol.py build\lib.win-amd64-3.5\traits\util\resource.py build\lib.win-amd64-3.5\traits\util\toposort.py build\lib.win-amd64-3.5\traits\util\trait_documenter.py build\lib.win-amd64-3.5\traits\util\__init__.py build\lib.win-amd64-3.5\traits\adaptation\tests\abc_examples.py build\lib.win-amd64-3.5\traits\adaptation\tests\benchmark.py build\lib.win-amd64-3.5\traits\adaptation\tests\interface_examples.py build\lib.win-amd64-3.5\traits\adaptation\tests\lazy_examples.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_adaptation_manager.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_adaptation_offer.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_adapter.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_cached_adapter_factory.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_global_adaptation_manager.py build\lib.win-amd64-3.5\traits\adaptation\tests\__init__.py build\lib.win-amd64-3.5\traits\etsconfig\tests\test_etsconfig.py build\lib.win-amd64-3.5\traits\etsconfig\tests\__init__.py build\lib.win-amd64-3.5\traits\testing\tests\test_unittest_tools.py build\lib.win-amd64-3.5\traits\testing\tests\__init__.py build\lib.win-amd64-3.5\traits\util\tests\test_async_trait_wait.py build\lib.win-amd64-3.5\traits\util\tests\test_camel_case.py build\lib.win-amd64-3.5\traits\util\tests\test_deprecated.py build\lib.win-amd64-3.5\traits\util\tests\test_import_symbol.py build\lib.win-amd64-3.5\traits\util\tests\test_message_records.py build\lib.win-amd64-3.5\traits\util\tests\test_record_containers.py build\lib.win-amd64-3.5\traits\util\tests\test_record_events.py build\lib.win-amd64-3.5\traits\util\tests\test_trait_documenter.py build\lib.win-amd64-3.5\traits\util\tests\__init__.py

  Skipping optional fixer: buffer

  Skipping optional fixer: idioms

  Skipping optional fixer: set_literal

  Skipping optional fixer: ws_comma

  Fixing build\lib.win-amd64-3.5\traits\adapter.py build\lib.win-amd64-3.5\traits\api.py build\lib.win-amd64-3.5\traits\category.py build\lib.win-amd64-3.5\traits\has_dynamic_views.py build\lib.win-amd64-3.5\traits\has_traits.py build\lib.win-amd64-3.5\traits\interface_checker.py build\lib.win-amd64-3.5\traits\traits.py build\lib.win-amd64-3.5\traits\traits_listener.py build\lib.win-amd64-3.5\traits\trait_base.py build\lib.win-amd64-3.5\traits\trait_errors.py build\lib.win-amd64-3.5\traits\trait_handlers.py build\lib.win-amd64-3.5\traits\trait_notifiers.py build\lib.win-amd64-3.5\traits\trait_numeric.py build\lib.win-amd64-3.5\traits\trait_types.py build\lib.win-amd64-3.5\traits\trait_value.py build\lib.win-amd64-3.5\traits\ustr_trait.py build\lib.win-amd64-3.5\traits\_py2to3.py build\lib.win-amd64-3.5\traits\_version.py build\lib.win-amd64-3.5\traits\__init__.py build\lib.win-amd64-3.5\traits\adaptation\adaptation_error.py build\lib.win-amd64-3.5\traits\adaptation\adaptation_manager.py build\lib.win-amd64-3.5\traits\adaptation\adaptation_offer.py build\lib.win-amd64-3.5\traits\adaptation\adapter.py build\lib.win-amd64-3.5\traits\adaptation\api.py build\lib.win-amd64-3.5\traits\adaptation\cached_adapter_factory.py build\lib.win-amd64-3.5\traits\adaptation\__init__.py build\lib.win-amd64-3.5\traits\etsconfig\api.py build\lib.win-amd64-3.5\traits\etsconfig\etsconfig.py build\lib.win-amd64-3.5\traits\etsconfig\__init__.py build\lib.win-amd64-3.5\traits\protocols\advice.py build\lib.win-amd64-3.5\traits\protocols\api.py build\lib.win-amd64-3.5\traits\protocols\__init__.py build\lib.win-amd64-3.5\traits\testing\api.py build\lib.win-amd64-3.5\traits\testing\doctest_tools.py build\lib.win-amd64-3.5\traits\testing\nose_tools.py build\lib.win-amd64-3.5\traits\testing\unittest_tools.py build\lib.win-amd64-3.5\traits\testing\__init__.py build\lib.win-amd64-3.5\traits\tests\check_timing.py build\lib.win-amd64-3.5\traits\tests\test_abc.py build\lib.win-amd64-3.5\traits\tests\test_anytrait_static_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_array.py build\lib.win-amd64-3.5\traits\tests\test_array_or_none.py build\lib.win-amd64-3.5\traits\tests\test_automatic_adaptation.py build\lib.win-amd64-3.5\traits\tests\test_bool.py build\lib.win-amd64-3.5\traits\tests\test_category.py build\lib.win-amd64-3.5\traits\tests\test_class_traits.py build\lib.win-amd64-3.5\traits\tests\test_clone.py build\lib.win-amd64-3.5\traits\tests\test_container_events.py build\lib.win-amd64-3.5\traits\tests\test_copyable_trait_names.py build\lib.win-amd64-3.5\traits\tests\test_copy_traits.py build\lib.win-amd64-3.5\traits\tests\test_cythonized_traits.py build\lib.win-amd64-3.5\traits\tests\test_delegate.py build\lib.win-amd64-3.5\traits\tests\test_dict.py build\lib.win-amd64-3.5\traits\tests\test_dynamic_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_dynamic_trait_definition.py build\lib.win-amd64-3.5\traits\tests\test_enum.py build\lib.win-amd64-3.5\traits\tests\test_event_order.py build\lib.win-amd64-3.5\traits\tests\test_extended_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_extended_trait_change.py build\lib.win-amd64-3.5\traits\tests\test_float.py build\lib.win-amd64-3.5\traits\tests\test_get_traits.py build\lib.win-amd64-3.5\traits\tests\test_integer.py build\lib.win-amd64-3.5\traits\tests\test_interfaces.py build\lib.win-amd64-3.5\traits\tests\test_interfaces_with_implements.py build\lib.win-amd64-3.5\traits\tests\test_interface_checker.py build\lib.win-amd64-3.5\traits\tests\test_int_range_long.py build\lib.win-amd64-3.5\traits\tests\test_keyword_args.py build\lib.win-amd64-3.5\traits\tests\test_list.py build\lib.win-amd64-3.5\traits\tests\test_listeners.py build\lib.win-amd64-3.5\traits\tests\test_list_events.py build\lib.win-amd64-3.5\traits\tests\test_new_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_pickle_validated_dict.py build\lib.win-amd64-3.5\traits\tests\test_property_delete.py build\lib.win-amd64-3.5\traits\tests\test_property_notifications.py build\lib.win-amd64-3.5\traits\tests\test_protocols_usage.py build\lib.win-amd64-3.5\traits\tests\test_range.py build\lib.win-amd64-3.5\traits\tests\test_regression.py build\lib.win-amd64-3.5\traits\tests\test_rich_compare.py build\lib.win-amd64-3.5\traits\tests\test_special_event_handlers.py build\lib.win-amd64-3.5\traits\tests\test_static_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_string.py build\lib.win-amd64-3.5\traits\tests\test_str_handler.py build\lib.win-amd64-3.5\traits\tests\test_sync_traits.py build\lib.win-amd64-3.5\traits\tests\test_target.py build\lib.win-amd64-3.5\traits\tests\test_traits.py build\lib.win-amd64-3.5\traits\tests\test_trait_change_event_tracer.py build\lib.win-amd64-3.5\traits\tests\test_trait_cycle.py build\lib.win-amd64-3.5\traits\tests\test_trait_default_initializer.py build\lib.win-amd64-3.5\traits\tests\test_trait_exceptions.py build\lib.win-amd64-3.5\traits\tests\test_trait_get_set.py build\lib.win-amd64-3.5\traits\tests\test_trait_list_dict.py build\lib.win-amd64-3.5\traits\tests\test_trait_types.py build\lib.win-amd64-3.5\traits\tests\test_tuple.py build\lib.win-amd64-3.5\traits\tests\test_ui_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_undefined.py build\lib.win-amd64-3.5\traits\tests\test_validated_tuple.py build\lib.win-amd64-3.5\traits\tests\test_weak_ref.py build\lib.win-amd64-3.5\traits\tests\tuple_test_mixin.py build\lib.win-amd64-3.5\traits\tests\__init__.py build\lib.win-amd64-3.5\traits\util\api.py build\lib.win-amd64-3.5\traits\util\async_trait_wait.py build\lib.win-amd64-3.5\traits\util\camel_case.py build\lib.win-amd64-3.5\traits\util\clean_strings.py build\lib.win-amd64-3.5\traits\util\deprecated.py build\lib.win-amd64-3.5\traits\util\event_tracer.py build\lib.win-amd64-3.5\traits\util\home_directory.py build\lib.win-amd64-3.5\traits\util\import_symbol.py build\lib.win-amd64-3.5\traits\util\resource.py build\lib.win-amd64-3.5\traits\util\toposort.py build\lib.win-amd64-3.5\traits\util\trait_documenter.py build\lib.win-amd64-3.5\traits\util\__init__.py build\lib.win-amd64-3.5\traits\adaptation\tests\abc_examples.py build\lib.win-amd64-3.5\traits\adaptation\tests\benchmark.py build\lib.win-amd64-3.5\traits\adaptation\tests\interface_examples.py build\lib.win-amd64-3.5\traits\adaptation\tests\lazy_examples.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_adaptation_manager.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_adaptation_offer.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_adapter.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_cached_adapter_factory.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_global_adaptation_manager.py build\lib.win-amd64-3.5\traits\adaptation\tests\__init__.py build\lib.win-amd64-3.5\traits\etsconfig\tests\test_etsconfig.py build\lib.win-amd64-3.5\traits\etsconfig\tests\__init__.py build\lib.win-amd64-3.5\traits\testing\tests\test_unittest_tools.py build\lib.win-amd64-3.5\traits\testing\tests\__init__.py build\lib.win-amd64-3.5\traits\util\tests\test_async_trait_wait.py build\lib.win-amd64-3.5\traits\util\tests\test_camel_case.py build\lib.win-amd64-3.5\traits\util\tests\test_deprecated.py build\lib.win-amd64-3.5\traits\util\tests\test_import_symbol.py build\lib.win-amd64-3.5\traits\util\tests\test_message_records.py build\lib.win-amd64-3.5\traits\util\tests\test_record_containers.py build\lib.win-amd64-3.5\traits\util\tests\test_record_events.py build\lib.win-amd64-3.5\traits\util\tests\test_trait_documenter.py build\lib.win-amd64-3.5\traits\util\tests\__init__.py

  Skipping optional fixer: buffer

  Skipping optional fixer: idioms

  Skipping optional fixer: set_literal

  Skipping optional fixer: ws_comma

  running build_ext

  building 'traits.ctraits' extension

  error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

 

  ----------------------------------------

  Failed building wheel for traits

  Running setup.py clean for traits

  Running setup.py bdist_wheel for traitsui ... done

  Stored in directory: C:\Users\akira\AppData\Local\pip\Cache\wheels\aa\6d\6a\00f49f3d8b5358988f000c1bf9cc3b9bb5ef59784ed761ce6a

  Running setup.py bdist_wheel for pyface ... done

  Stored in directory: C:\Users\akira\AppData\Local\pip\Cache\wheels\bf\91\a9\d0d76b2216ff4bbe93e0a558f3a89e20b0b5434349fb445d5a

Successfully built apptools traitsui pyface

Failed to build mayavi traits

Installing collected packages: traits, pyface, traitsui, apptools, mayavi

  Running setup.py install for traits ... error

    Complete output from command c:\users\akira\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\akira\\AppData\\Local\\Temp\\pip-build-qpyfzmx2\\traits\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\akira\AppData\Local\Temp\pip-pcp7obcc-record\install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build\lib.win-amd64-3.5

    creating build\lib.win-amd64-3.5\traits

    copying traits\adapter.py -> build\lib.win-amd64-3.5\traits

    copying traits\api.py -> build\lib.win-amd64-3.5\traits

    copying traits\category.py -> build\lib.win-amd64-3.5\traits

    copying traits\has_dynamic_views.py -> build\lib.win-amd64-3.5\traits

    copying traits\has_traits.py -> build\lib.win-amd64-3.5\traits

    copying traits\interface_checker.py -> build\lib.win-amd64-3.5\traits

    copying traits\traits.py -> build\lib.win-amd64-3.5\traits

    copying traits\traits_listener.py -> build\lib.win-amd64-3.5\traits

    copying traits\trait_base.py -> build\lib.win-amd64-3.5\traits

    copying traits\trait_errors.py -> build\lib.win-amd64-3.5\traits

    copying traits\trait_handlers.py -> build\lib.win-amd64-3.5\traits

    copying traits\trait_notifiers.py -> build\lib.win-amd64-3.5\traits

    copying traits\trait_numeric.py -> build\lib.win-amd64-3.5\traits

    copying traits\trait_types.py -> build\lib.win-amd64-3.5\traits

    copying traits\trait_value.py -> build\lib.win-amd64-3.5\traits

    copying traits\ustr_trait.py -> build\lib.win-amd64-3.5\traits

    copying traits\_py2to3.py -> build\lib.win-amd64-3.5\traits

    copying traits\_version.py -> build\lib.win-amd64-3.5\traits

    copying traits\__init__.py -> build\lib.win-amd64-3.5\traits

    creating build\lib.win-amd64-3.5\traits\adaptation

    copying traits\adaptation\adaptation_error.py -> build\lib.win-amd64-3.5\traits\adaptation

    copying traits\adaptation\adaptation_manager.py -> build\lib.win-amd64-3.5\traits\adaptation

    copying traits\adaptation\adaptation_offer.py -> build\lib.win-amd64-3.5\traits\adaptation

    copying traits\adaptation\adapter.py -> build\lib.win-amd64-3.5\traits\adaptation

    copying traits\adaptation\api.py -> build\lib.win-amd64-3.5\traits\adaptation

    copying traits\adaptation\cached_adapter_factory.py -> build\lib.win-amd64-3.5\traits\adaptation

    copying traits\adaptation\__init__.py -> build\lib.win-amd64-3.5\traits\adaptation

    creating build\lib.win-amd64-3.5\traits\etsconfig

    copying traits\etsconfig\api.py -> build\lib.win-amd64-3.5\traits\etsconfig

    copying traits\etsconfig\etsconfig.py -> build\lib.win-amd64-3.5\traits\etsconfig

    copying traits\etsconfig\__init__.py -> build\lib.win-amd64-3.5\traits\etsconfig

    creating build\lib.win-amd64-3.5\traits\protocols

    copying traits\protocols\advice.py -> build\lib.win-amd64-3.5\traits\protocols

    copying traits\protocols\api.py -> build\lib.win-amd64-3.5\traits\protocols

    copying traits\protocols\__init__.py -> build\lib.win-amd64-3.5\traits\protocols

    creating build\lib.win-amd64-3.5\traits\testing

    copying traits\testing\api.py -> build\lib.win-amd64-3.5\traits\testing

    copying traits\testing\doctest_tools.py -> build\lib.win-amd64-3.5\traits\testing

    copying traits\testing\nose_tools.py -> build\lib.win-amd64-3.5\traits\testing

    copying traits\testing\unittest_tools.py -> build\lib.win-amd64-3.5\traits\testing

    copying traits\testing\__init__.py -> build\lib.win-amd64-3.5\traits\testing

    creating build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\check_timing.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_abc.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_anytrait_static_notifiers.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_array.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_array_or_none.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_automatic_adaptation.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_bool.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_category.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_class_traits.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_clone.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_container_events.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_copyable_trait_names.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_copy_traits.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_cythonized_traits.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_delegate.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_dict.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_dynamic_notifiers.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_dynamic_trait_definition.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_enum.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_event_order.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_extended_notifiers.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_extended_trait_change.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_float.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_get_traits.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_integer.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_interfaces.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_interfaces_with_implements.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_interface_checker.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_int_range_long.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_keyword_args.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_list.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_listeners.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_list_events.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_new_notifiers.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_pickle_validated_dict.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_property_delete.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_property_notifications.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_protocols_usage.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_range.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_regression.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_rich_compare.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_special_event_handlers.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_static_notifiers.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_string.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_str_handler.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_sync_traits.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_target.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_traits.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_trait_change_event_tracer.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_trait_cycle.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_trait_default_initializer.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_trait_exceptions.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_trait_get_set.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_trait_list_dict.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_trait_types.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_tuple.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_ui_notifiers.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_undefined.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_validated_tuple.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\test_weak_ref.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\tuple_test_mixin.py -> build\lib.win-amd64-3.5\traits\tests

    copying traits\tests\__init__.py -> build\lib.win-amd64-3.5\traits\tests

    creating build\lib.win-amd64-3.5\traits\util

    copying traits\util\api.py -> build\lib.win-amd64-3.5\traits\util

    copying traits\util\async_trait_wait.py -> build\lib.win-amd64-3.5\traits\util

    copying traits\util\camel_case.py -> build\lib.win-amd64-3.5\traits\util

    copying traits\util\clean_strings.py -> build\lib.win-amd64-3.5\traits\util

    copying traits\util\deprecated.py -> build\lib.win-amd64-3.5\traits\util

    copying traits\util\event_tracer.py -> build\lib.win-amd64-3.5\traits\util

    copying traits\util\home_directory.py -> build\lib.win-amd64-3.5\traits\util

    copying traits\util\import_symbol.py -> build\lib.win-amd64-3.5\traits\util

    copying traits\util\resource.py -> build\lib.win-amd64-3.5\traits\util

    copying traits\util\toposort.py -> build\lib.win-amd64-3.5\traits\util

    copying traits\util\trait_documenter.py -> build\lib.win-amd64-3.5\traits\util

    copying traits\util\__init__.py -> build\lib.win-amd64-3.5\traits\util

    creating build\lib.win-amd64-3.5\traits\adaptation\tests

    copying traits\adaptation\tests\abc_examples.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

    copying traits\adaptation\tests\benchmark.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

    copying traits\adaptation\tests\interface_examples.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

    copying traits\adaptation\tests\lazy_examples.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

    copying traits\adaptation\tests\test_adaptation_manager.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

    copying traits\adaptation\tests\test_adaptation_offer.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

    copying traits\adaptation\tests\test_adapter.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

    copying traits\adaptation\tests\test_cached_adapter_factory.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

    copying traits\adaptation\tests\test_global_adaptation_manager.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

    copying traits\adaptation\tests\__init__.py -> build\lib.win-amd64-3.5\traits\adaptation\tests

    creating build\lib.win-amd64-3.5\traits\etsconfig\tests

    copying traits\etsconfig\tests\test_etsconfig.py -> build\lib.win-amd64-3.5\traits\etsconfig\tests

    copying traits\etsconfig\tests\__init__.py -> build\lib.win-amd64-3.5\traits\etsconfig\tests

    creating build\lib.win-amd64-3.5\traits\testing\tests

    copying traits\testing\tests\test_unittest_tools.py -> build\lib.win-amd64-3.5\traits\testing\tests

    copying traits\testing\tests\__init__.py -> build\lib.win-amd64-3.5\traits\testing\tests

    creating build\lib.win-amd64-3.5\traits\util\tests

    copying traits\util\tests\test_async_trait_wait.py -> build\lib.win-amd64-3.5\traits\util\tests

    copying traits\util\tests\test_camel_case.py -> build\lib.win-amd64-3.5\traits\util\tests

    copying traits\util\tests\test_deprecated.py -> build\lib.win-amd64-3.5\traits\util\tests

    copying traits\util\tests\test_import_symbol.py -> build\lib.win-amd64-3.5\traits\util\tests

    copying traits\util\tests\test_message_records.py -> build\lib.win-amd64-3.5\traits\util\tests

    copying traits\util\tests\test_record_containers.py -> build\lib.win-amd64-3.5\traits\util\tests

    copying traits\util\tests\test_record_events.py -> build\lib.win-amd64-3.5\traits\util\tests

    copying traits\util\tests\test_trait_documenter.py -> build\lib.win-amd64-3.5\traits\util\tests

    copying traits\util\tests\__init__.py -> build\lib.win-amd64-3.5\traits\util\tests

    Fixing build\lib.win-amd64-3.5\traits\adapter.py build\lib.win-amd64-3.5\traits\api.py build\lib.win-amd64-3.5\traits\category.py build\lib.win-amd64-3.5\traits\has_dynamic_views.py build\lib.win-amd64-3.5\traits\has_traits.py build\lib.win-amd64-3.5\traits\interface_checker.py build\lib.win-amd64-3.5\traits\traits.py build\lib.win-amd64-3.5\traits\traits_listener.py build\lib.win-amd64-3.5\traits\trait_base.py build\lib.win-amd64-3.5\traits\trait_errors.py build\lib.win-amd64-3.5\traits\trait_handlers.py build\lib.win-amd64-3.5\traits\trait_notifiers.py build\lib.win-amd64-3.5\traits\trait_numeric.py build\lib.win-amd64-3.5\traits\trait_types.py build\lib.win-amd64-3.5\traits\trait_value.py build\lib.win-amd64-3.5\traits\ustr_trait.py build\lib.win-amd64-3.5\traits\_py2to3.py build\lib.win-amd64-3.5\traits\_version.py build\lib.win-amd64-3.5\traits\__init__.py build\lib.win-amd64-3.5\traits\adaptation\adaptation_error.py build\lib.win-amd64-3.5\traits\adaptation\adaptation_manager.py build\lib.win-amd64-3.5\traits\adaptation\adaptation_offer.py build\lib.win-amd64-3.5\traits\adaptation\adapter.py build\lib.win-amd64-3.5\traits\adaptation\api.py build\lib.win-amd64-3.5\traits\adaptation\cached_adapter_factory.py build\lib.win-amd64-3.5\traits\adaptation\__init__.py build\lib.win-amd64-3.5\traits\etsconfig\api.py build\lib.win-amd64-3.5\traits\etsconfig\etsconfig.py build\lib.win-amd64-3.5\traits\etsconfig\__init__.py build\lib.win-amd64-3.5\traits\protocols\advice.py build\lib.win-amd64-3.5\traits\protocols\api.py build\lib.win-amd64-3.5\traits\protocols\__init__.py build\lib.win-amd64-3.5\traits\testing\api.py build\lib.win-amd64-3.5\traits\testing\doctest_tools.py build\lib.win-amd64-3.5\traits\testing\nose_tools.py build\lib.win-amd64-3.5\traits\testing\unittest_tools.py build\lib.win-amd64-3.5\traits\testing\__init__.py build\lib.win-amd64-3.5\traits\tests\check_timing.py build\lib.win-amd64-3.5\traits\tests\test_abc.py build\lib.win-amd64-3.5\traits\tests\test_anytrait_static_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_array.py build\lib.win-amd64-3.5\traits\tests\test_array_or_none.py build\lib.win-amd64-3.5\traits\tests\test_automatic_adaptation.py build\lib.win-amd64-3.5\traits\tests\test_bool.py build\lib.win-amd64-3.5\traits\tests\test_category.py build\lib.win-amd64-3.5\traits\tests\test_class_traits.py build\lib.win-amd64-3.5\traits\tests\test_clone.py build\lib.win-amd64-3.5\traits\tests\test_container_events.py build\lib.win-amd64-3.5\traits\tests\test_copyable_trait_names.py build\lib.win-amd64-3.5\traits\tests\test_copy_traits.py build\lib.win-amd64-3.5\traits\tests\test_cythonized_traits.py build\lib.win-amd64-3.5\traits\tests\test_delegate.py build\lib.win-amd64-3.5\traits\tests\test_dict.py build\lib.win-amd64-3.5\traits\tests\test_dynamic_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_dynamic_trait_definition.py build\lib.win-amd64-3.5\traits\tests\test_enum.py build\lib.win-amd64-3.5\traits\tests\test_event_order.py build\lib.win-amd64-3.5\traits\tests\test_extended_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_extended_trait_change.py build\lib.win-amd64-3.5\traits\tests\test_float.py build\lib.win-amd64-3.5\traits\tests\test_get_traits.py build\lib.win-amd64-3.5\traits\tests\test_integer.py build\lib.win-amd64-3.5\traits\tests\test_interfaces.py build\lib.win-amd64-3.5\traits\tests\test_interfaces_with_implements.py build\lib.win-amd64-3.5\traits\tests\test_interface_checker.py build\lib.win-amd64-3.5\traits\tests\test_int_range_long.py build\lib.win-amd64-3.5\traits\tests\test_keyword_args.py build\lib.win-amd64-3.5\traits\tests\test_list.py build\lib.win-amd64-3.5\traits\tests\test_listeners.py build\lib.win-amd64-3.5\traits\tests\test_list_events.py build\lib.win-amd64-3.5\traits\tests\test_new_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_pickle_validated_dict.py build\lib.win-amd64-3.5\traits\tests\test_property_delete.py build\lib.win-amd64-3.5\traits\tests\test_property_notifications.py build\lib.win-amd64-3.5\traits\tests\test_protocols_usage.py build\lib.win-amd64-3.5\traits\tests\test_range.py build\lib.win-amd64-3.5\traits\tests\test_regression.py build\lib.win-amd64-3.5\traits\tests\test_rich_compare.py build\lib.win-amd64-3.5\traits\tests\test_special_event_handlers.py build\lib.win-amd64-3.5\traits\tests\test_static_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_string.py build\lib.win-amd64-3.5\traits\tests\test_str_handler.py build\lib.win-amd64-3.5\traits\tests\test_sync_traits.py build\lib.win-amd64-3.5\traits\tests\test_target.py build\lib.win-amd64-3.5\traits\tests\test_traits.py build\lib.win-amd64-3.5\traits\tests\test_trait_change_event_tracer.py build\lib.win-amd64-3.5\traits\tests\test_trait_cycle.py build\lib.win-amd64-3.5\traits\tests\test_trait_default_initializer.py build\lib.win-amd64-3.5\traits\tests\test_trait_exceptions.py build\lib.win-amd64-3.5\traits\tests\test_trait_get_set.py build\lib.win-amd64-3.5\traits\tests\test_trait_list_dict.py build\lib.win-amd64-3.5\traits\tests\test_trait_types.py build\lib.win-amd64-3.5\traits\tests\test_tuple.py build\lib.win-amd64-3.5\traits\tests\test_ui_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_undefined.py build\lib.win-amd64-3.5\traits\tests\test_validated_tuple.py build\lib.win-amd64-3.5\traits\tests\test_weak_ref.py build\lib.win-amd64-3.5\traits\tests\tuple_test_mixin.py build\lib.win-amd64-3.5\traits\tests\__init__.py build\lib.win-amd64-3.5\traits\util\api.py build\lib.win-amd64-3.5\traits\util\async_trait_wait.py build\lib.win-amd64-3.5\traits\util\camel_case.py build\lib.win-amd64-3.5\traits\util\clean_strings.py build\lib.win-amd64-3.5\traits\util\deprecated.py build\lib.win-amd64-3.5\traits\util\event_tracer.py build\lib.win-amd64-3.5\traits\util\home_directory.py build\lib.win-amd64-3.5\traits\util\import_symbol.py build\lib.win-amd64-3.5\traits\util\resource.py build\lib.win-amd64-3.5\traits\util\toposort.py build\lib.win-amd64-3.5\traits\util\trait_documenter.py build\lib.win-amd64-3.5\traits\util\__init__.py build\lib.win-amd64-3.5\traits\adaptation\tests\abc_examples.py build\lib.win-amd64-3.5\traits\adaptation\tests\benchmark.py build\lib.win-amd64-3.5\traits\adaptation\tests\interface_examples.py build\lib.win-amd64-3.5\traits\adaptation\tests\lazy_examples.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_adaptation_manager.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_adaptation_offer.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_adapter.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_cached_adapter_factory.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_global_adaptation_manager.py build\lib.win-amd64-3.5\traits\adaptation\tests\__init__.py build\lib.win-amd64-3.5\traits\etsconfig\tests\test_etsconfig.py build\lib.win-amd64-3.5\traits\etsconfig\tests\__init__.py build\lib.win-amd64-3.5\traits\testing\tests\test_unittest_tools.py build\lib.win-amd64-3.5\traits\testing\tests\__init__.py build\lib.win-amd64-3.5\traits\util\tests\test_async_trait_wait.py build\lib.win-amd64-3.5\traits\util\tests\test_camel_case.py build\lib.win-amd64-3.5\traits\util\tests\test_deprecated.py build\lib.win-amd64-3.5\traits\util\tests\test_import_symbol.py build\lib.win-amd64-3.5\traits\util\tests\test_message_records.py build\lib.win-amd64-3.5\traits\util\tests\test_record_containers.py build\lib.win-amd64-3.5\traits\util\tests\test_record_events.py build\lib.win-amd64-3.5\traits\util\tests\test_trait_documenter.py build\lib.win-amd64-3.5\traits\util\tests\__init__.py

    Skipping optional fixer: buffer

    Skipping optional fixer: idioms

    Skipping optional fixer: set_literal

    Skipping optional fixer: ws_comma

    Fixing build\lib.win-amd64-3.5\traits\adapter.py build\lib.win-amd64-3.5\traits\api.py build\lib.win-amd64-3.5\traits\category.py build\lib.win-amd64-3.5\traits\has_dynamic_views.py build\lib.win-amd64-3.5\traits\has_traits.py build\lib.win-amd64-3.5\traits\interface_checker.py build\lib.win-amd64-3.5\traits\traits.py build\lib.win-amd64-3.5\traits\traits_listener.py build\lib.win-amd64-3.5\traits\trait_base.py build\lib.win-amd64-3.5\traits\trait_errors.py build\lib.win-amd64-3.5\traits\trait_handlers.py build\lib.win-amd64-3.5\traits\trait_notifiers.py build\lib.win-amd64-3.5\traits\trait_numeric.py build\lib.win-amd64-3.5\traits\trait_types.py build\lib.win-amd64-3.5\traits\trait_value.py build\lib.win-amd64-3.5\traits\ustr_trait.py build\lib.win-amd64-3.5\traits\_py2to3.py build\lib.win-amd64-3.5\traits\_version.py build\lib.win-amd64-3.5\traits\__init__.py build\lib.win-amd64-3.5\traits\adaptation\adaptation_error.py build\lib.win-amd64-3.5\traits\adaptation\adaptation_manager.py build\lib.win-amd64-3.5\traits\adaptation\adaptation_offer.py build\lib.win-amd64-3.5\traits\adaptation\adapter.py build\lib.win-amd64-3.5\traits\adaptation\api.py build\lib.win-amd64-3.5\traits\adaptation\cached_adapter_factory.py build\lib.win-amd64-3.5\traits\adaptation\__init__.py build\lib.win-amd64-3.5\traits\etsconfig\api.py build\lib.win-amd64-3.5\traits\etsconfig\etsconfig.py build\lib.win-amd64-3.5\traits\etsconfig\__init__.py build\lib.win-amd64-3.5\traits\protocols\advice.py build\lib.win-amd64-3.5\traits\protocols\api.py build\lib.win-amd64-3.5\traits\protocols\__init__.py build\lib.win-amd64-3.5\traits\testing\api.py build\lib.win-amd64-3.5\traits\testing\doctest_tools.py build\lib.win-amd64-3.5\traits\testing\nose_tools.py build\lib.win-amd64-3.5\traits\testing\unittest_tools.py build\lib.win-amd64-3.5\traits\testing\__init__.py build\lib.win-amd64-3.5\traits\tests\check_timing.py build\lib.win-amd64-3.5\traits\tests\test_abc.py build\lib.win-amd64-3.5\traits\tests\test_anytrait_static_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_array.py build\lib.win-amd64-3.5\traits\tests\test_array_or_none.py build\lib.win-amd64-3.5\traits\tests\test_automatic_adaptation.py build\lib.win-amd64-3.5\traits\tests\test_bool.py build\lib.win-amd64-3.5\traits\tests\test_category.py build\lib.win-amd64-3.5\traits\tests\test_class_traits.py build\lib.win-amd64-3.5\traits\tests\test_clone.py build\lib.win-amd64-3.5\traits\tests\test_container_events.py build\lib.win-amd64-3.5\traits\tests\test_copyable_trait_names.py build\lib.win-amd64-3.5\traits\tests\test_copy_traits.py build\lib.win-amd64-3.5\traits\tests\test_cythonized_traits.py build\lib.win-amd64-3.5\traits\tests\test_delegate.py build\lib.win-amd64-3.5\traits\tests\test_dict.py build\lib.win-amd64-3.5\traits\tests\test_dynamic_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_dynamic_trait_definition.py build\lib.win-amd64-3.5\traits\tests\test_enum.py build\lib.win-amd64-3.5\traits\tests\test_event_order.py build\lib.win-amd64-3.5\traits\tests\test_extended_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_extended_trait_change.py build\lib.win-amd64-3.5\traits\tests\test_float.py build\lib.win-amd64-3.5\traits\tests\test_get_traits.py build\lib.win-amd64-3.5\traits\tests\test_integer.py build\lib.win-amd64-3.5\traits\tests\test_interfaces.py build\lib.win-amd64-3.5\traits\tests\test_interfaces_with_implements.py build\lib.win-amd64-3.5\traits\tests\test_interface_checker.py build\lib.win-amd64-3.5\traits\tests\test_int_range_long.py build\lib.win-amd64-3.5\traits\tests\test_keyword_args.py build\lib.win-amd64-3.5\traits\tests\test_list.py build\lib.win-amd64-3.5\traits\tests\test_listeners.py build\lib.win-amd64-3.5\traits\tests\test_list_events.py build\lib.win-amd64-3.5\traits\tests\test_new_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_pickle_validated_dict.py build\lib.win-amd64-3.5\traits\tests\test_property_delete.py build\lib.win-amd64-3.5\traits\tests\test_property_notifications.py build\lib.win-amd64-3.5\traits\tests\test_protocols_usage.py build\lib.win-amd64-3.5\traits\tests\test_range.py build\lib.win-amd64-3.5\traits\tests\test_regression.py build\lib.win-amd64-3.5\traits\tests\test_rich_compare.py build\lib.win-amd64-3.5\traits\tests\test_special_event_handlers.py build\lib.win-amd64-3.5\traits\tests\test_static_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_string.py build\lib.win-amd64-3.5\traits\tests\test_str_handler.py build\lib.win-amd64-3.5\traits\tests\test_sync_traits.py build\lib.win-amd64-3.5\traits\tests\test_target.py build\lib.win-amd64-3.5\traits\tests\test_traits.py build\lib.win-amd64-3.5\traits\tests\test_trait_change_event_tracer.py build\lib.win-amd64-3.5\traits\tests\test_trait_cycle.py build\lib.win-amd64-3.5\traits\tests\test_trait_default_initializer.py build\lib.win-amd64-3.5\traits\tests\test_trait_exceptions.py build\lib.win-amd64-3.5\traits\tests\test_trait_get_set.py build\lib.win-amd64-3.5\traits\tests\test_trait_list_dict.py build\lib.win-amd64-3.5\traits\tests\test_trait_types.py build\lib.win-amd64-3.5\traits\tests\test_tuple.py build\lib.win-amd64-3.5\traits\tests\test_ui_notifiers.py build\lib.win-amd64-3.5\traits\tests\test_undefined.py build\lib.win-amd64-3.5\traits\tests\test_validated_tuple.py build\lib.win-amd64-3.5\traits\tests\test_weak_ref.py build\lib.win-amd64-3.5\traits\tests\tuple_test_mixin.py build\lib.win-amd64-3.5\traits\tests\__init__.py build\lib.win-amd64-3.5\traits\util\api.py build\lib.win-amd64-3.5\traits\util\async_trait_wait.py build\lib.win-amd64-3.5\traits\util\camel_case.py build\lib.win-amd64-3.5\traits\util\clean_strings.py build\lib.win-amd64-3.5\traits\util\deprecated.py build\lib.win-amd64-3.5\traits\util\event_tracer.py build\lib.win-amd64-3.5\traits\util\home_directory.py build\lib.win-amd64-3.5\traits\util\import_symbol.py build\lib.win-amd64-3.5\traits\util\resource.py build\lib.win-amd64-3.5\traits\util\toposort.py build\lib.win-amd64-3.5\traits\util\trait_documenter.py build\lib.win-amd64-3.5\traits\util\__init__.py build\lib.win-amd64-3.5\traits\adaptation\tests\abc_examples.py build\lib.win-amd64-3.5\traits\adaptation\tests\benchmark.py build\lib.win-amd64-3.5\traits\adaptation\tests\interface_examples.py build\lib.win-amd64-3.5\traits\adaptation\tests\lazy_examples.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_adaptation_manager.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_adaptation_offer.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_adapter.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_cached_adapter_factory.py build\lib.win-amd64-3.5\traits\adaptation\tests\test_global_adaptation_manager.py build\lib.win-amd64-3.5\traits\adaptation\tests\__init__.py build\lib.win-amd64-3.5\traits\etsconfig\tests\test_etsconfig.py build\lib.win-amd64-3.5\traits\etsconfig\tests\__init__.py build\lib.win-amd64-3.5\traits\testing\tests\test_unittest_tools.py build\lib.win-amd64-3.5\traits\testing\tests\__init__.py build\lib.win-amd64-3.5\traits\util\tests\test_async_trait_wait.py build\lib.win-amd64-3.5\traits\util\tests\test_camel_case.py build\lib.win-amd64-3.5\traits\util\tests\test_deprecated.py build\lib.win-amd64-3.5\traits\util\tests\test_import_symbol.py build\lib.win-amd64-3.5\traits\util\tests\test_message_records.py build\lib.win-amd64-3.5\traits\util\tests\test_record_containers.py build\lib.win-amd64-3.5\traits\util\tests\test_record_events.py build\lib.win-amd64-3.5\traits\util\tests\test_trait_documenter.py build\lib.win-amd64-3.5\traits\util\tests\__init__.py

    Skipping optional fixer: buffer

    Skipping optional fixer: idioms

    Skipping optional fixer: set_literal

    Skipping optional fixer: ws_comma

    running build_ext

    building 'traits.ctraits' extension

    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

 

    ----------------------------------------

Command "c:\users\akira\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\akira\\AppData\\Local\\Temp\\pip-build-qpyfzmx2\\traits\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\akira\AppData\Local\Temp\pip-pcp7obcc-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\akira\AppData\Local\Temp\pip-build-qpyfzmx2\traits\

 

C:\Users\akira>

 

ちゃんとインストールできたかも、と思って、これで試したのですが、結局実行できませんでした。

 

信号源の位置決め

信号源の場所を設定し、表示させます。

src=mne.setup_source_space(subject,spacing='oct6',subjects_dir=subjects_dir,add_dist=False,overwrite=True)

print(src)

mne.viz.plot_bem(subject=subject,subjects_dir=subjects_dir,brain_surfaces='white',src=src,orientation='coronal')

mne.viz.plot_bem(subject=subject,subjects_dir=subjects_dir,brain_surfaces='white',src=src,orientation='axial')

<SourceSpaces: [<surface (lh), n_vertices=155407, n_used=4098, coordinate_frame=MRI (surface RAS)>, <surface (rh), n_vertices=156866, n_used=4098, coordinate_frame=MRI (surface RAS)>]>

よくみると緑の線に点々があります。そこが電流源の場所です。

以下はmayaviが使えないので実行できません

import numpy as np  # noqa

from mayavi import mlab  # noqa

from surfer import Brain  # noqa

brain = Brain('sample', 'lh', 'inflated', subjects_dir=subjects_dir)

surf = brain._geo

vertidx = np.where(src[0]['inuse'])[0]

mlab.points3d(surf.x[vertidx], surf.y[vertidx],surf.z[vertidx], color=(1, 1, 0), scale_factor=1.5)

 

導体モデルの作成

境界要素モデルを作成します。

conductivity=(0.3,)

model=mne.make_bem_model(subject='sample',ico=4,conductivity=conductivity,subjects_dir=subjects_dir)

bem=mne.make_bem_solution(model)

print(bem)

<ConductorModel  |  BEM (1 layer)>

順問題を解きます。数分かかると思います。

fwd=mne.make_forward_solution(raw_fname,trans=trans,src=src,bem=bem,fname=None,meg=True,eeg=False,mindist=5.0,n_jobs=2)

print(fwd)

<Forward | MEG channels: 306 | EEG channels: 0 | Source space: Surface with 7498 vertices | Source orientation: Free>

leadfield=fwd['sol']['data']

print('leadfield size : %d sensors x %d dipoles' % leadfield.shape)

leadfield size : 306 sensors x 22494 dipoles

ウインドウを閉じます。

import matplotlib.pyplot as plt

plt.close('all')

 

分散行列の計算

いろいろ読み込みます。

import os.path as op

import mne

from mne.datasets import sample

data_path=sample.data_path()

raw_empty_room_fname=op.join(data_path,'MEG','sample','ernoise_raw.fif')

raw_empty_room=mne.io.read_raw_fif(raw_empty_room_fname,add_eeg_ref=False)

raw_fname=op.join(data_path,'MEG','sample','sample_audvis_raw.fif')

raw=mne.io.read_raw_fif(raw_fname,add_eeg_ref=False)

raw.set_eeg_reference()

raw.info['bads']+=['EEG 053']

<Raw  |  sample_audvis_raw.fif, n_channels x n_times : 376 x 166800 (277.7 sec), ~3.6 MB, data not loaded>

分散行列を計算します。

noise_cov=mne.compute_raw_covariance(raw_empty_room,tmin=0,tmax=None)

events=mne.find_events(raw)

epochs=mne.Epochs(raw,events,event_id=1,tmin=-0.2,tmax=0.0,baseline=(-0.2,0.0))

noise_cov_baseline=mne.compute_covariance(epochs)

分散行列の表示

noise_cov.plot(raw_empty_room.info,proj=True)

noise_cov_baseline.plot(epochs.info)

分散行列の規則化

以下を実行します。結構計算に時間がかかります。

cov=mne.compute_covariance(epochs,tmax=0.,method='auto')

print(cov)

<Covariance  |  size : 364 x 364, n_samples : 8712, data : [[  3.35292188e-23   6.61706868e-24   4.09099163e-25 ...,   0.00000000e+00

    0.00000000e+00   0.00000000e+00]

 [  6.61706868e-24   1.64690291e-23   6.73949405e-26 ...,   0.00000000e+00

    0.00000000e+00   0.00000000e+00]

 [  4.09099163e-25   6.73949405e-26   5.39338250e-26 ...,   0.00000000e+00

    0.00000000e+00   0.00000000e+00]

 ...,

 [  0.00000000e+00   0.00000000e+00   0.00000000e+00 ...,   1.80924436e-11

    1.58826530e-11   1.55698596e-11]

 [  0.00000000e+00   0.00000000e+00   0.00000000e+00 ...,   1.58826530e-11

    1.83064335e-11   1.29844169e-11]

 [  0.00000000e+00   0.00000000e+00   0.00000000e+00 ...,   1.55698596e-11

    1.29844169e-11   2.07557814e-11]]>

エポックの加算平均をして分散行列を表示させます。

evoked=epochs.average()

evoked.plot_white(cov)

covs=mne.compute_covariance(epochs,tmax=0.,method=('empirical','shrunk'),return_estimators=True)

evoked=epochs.average()

evoked.plot_white(covs)

No average EEG reference present in info["projs"], covariance may be adversely affected. Consider recomputing covariance using a raw file with an average eeg reference projector added.

<stdin>:1: RuntimeWarning: No average EEG reference present in info["projs"], covariance may be adversely affected. Consider recomputing covariance using a raw file with an average eeg reference projector added.

No average EEG reference present in info["projs"], covariance may be adversely affected. Consider recomputing covariance using a raw file with an average eeg reference projector added.

<stdin>:1: RuntimeWarning: No average EEG reference present in info["projs"], covariance may be adversely affected. Consider recomputing covariance using a raw file with an average eeg reference projector added.