2018-01-01から1年間の記事一覧

Installing haply

Binary installation with conda (RECOMMENDED) $ conda config --add channels conda-forge$ conda install healpy

Python matplotlib figure size

matplotlib におけるサイズ(inch, dpi)を調べる方法。 fig = pyplot.gcf()size = fig.get_size_inches()*fig.dpiprint(fig.dpi)print(fig.get_size_inches()) --- 72.0[ 6. 4.] ++++++ 逆にこれらを設定したいときは pyplot.rcParams['figure.dpi'] = 72 #…

情報理論

情報理論(エントロピーなど)の有益な講義資料 -- by 井上 純一 先生 https://ocw.hokudai.ac.jp/wp-content/uploads/2016/01/InformationTheory-2005-Note-11.pdf https://ocw.hokudai.ac.jp/wp-content/uploads/2016/01/InformationTheory-2005-Note-12.pdf…

symbolic linkをはる

$ ps2pdf 20171123_paper.psdyld: Library not loaded: /opt/local/lib/libgs.9.22.dylib Referenced from: /opt/local/bin/gs Reason: image not foundAbort trap: 6 と突然ライブラリが使えなくなった。調べると、ライブラリがアップデートされている。 $ …

tensorflow installation

Following https://www.tensorflow.org/install/install_mac and some advice on pip written at https://github.com/certbot/certbot/issues/2850 I installed tensorflow: $ pip uninstall virtualenv$ conda install virtualenv Here I use " ~/tensorflo…

schwimmbad インストール

$ conda install -c conda-forge schwimmbadSolving environment: done ==> WARNING: A newer version of conda exists. <== current version: 4.4.8 latest version: 4.4.10 Please update conda by running $ conda update -n base conda ## Package Plan …

install mpi4py on MacPro

Anacondaを使って、Mac Pro にmpi4pyをインストール。 $ conda install -c anaconda mpi4py Fetching package metadata ...............Solving package specifications: . Package plan for installation in environment /Users/_my_username_/anaconda: Th…