Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rr186@spectre2.le.ac.uk's password:
- Last login: Thu Mar 23 15:37:13 2017 from host-53-211.ph.le.ac.uk
- Welcome to the SPECTRE2 service
- ===============================
- SPECTRE2 documentation can be found at:
- http://www2.le.ac.uk/offices/itservices/resources/is/rcs/hpc/spectre
- This documentation is currently being updated for SPECTRE2
- Contact rcs.support@le.ac.uk to report problems.
- Please mention SPECTRE2 in your email.
- *** Upcoming Service Days ***
- Wed 29 March 2017
- Wed 17 May 2017
- Wed 28 June 2017
- Wed 26 July 2017
- Wed 30 August 2017
- *********************************************
- Default SCRATCHDIR is /scratch/spectre/r/rr186
- Default TMPDIR is /scratch/spectre/r/rr186
- *********************************************
- [rr186@spectre12 ~]$ cd finalproject1/
- [rr186@spectre12 finalproject1]$ cd 1M_pre_ms_to_wd/
- [rr186@spectre12 1M_pre_ms_to_wd]$ ls
- checks.md5 final_profile.data inlist mesa_dir.rb plot.py rn
- ck get-pip.py inlist_1.0 mk plotters src
- clean grid6.mp4 LOGS photos png star
- final.mod hr.mp4 make plot_data re
- [rr186@spectre12 1M_pre_ms_to_wd]$ display png/grid6_00
- grid6_000015.png grid6_000375.png grid6_000735.png grid6_001095.png
- grid6_000030.png grid6_000390.png grid6_000750.png grid6_001110.png
- grid6_000045.png grid6_000405.png grid6_000765.png grid6_001125.png
- grid6_000060.png grid6_000420.png grid6_000780.png grid6_001140.png
- grid6_000075.png grid6_000435.png grid6_000795.png grid6_001155.png
- grid6_000090.png grid6_000450.png grid6_000810.png grid6_001170.png
- grid6_000105.png grid6_000465.png grid6_000825.png grid6_001185.png
- grid6_000120.png grid6_000480.png grid6_000840.png grid6_001200.png
- grid6_000135.png grid6_000495.png grid6_000855.png grid6_001215.png
- grid6_000150.png grid6_000510.png grid6_000870.png grid6_001230.png
- grid6_000165.png grid6_000525.png grid6_000885.png grid6_001245.png
- grid6_000180.png grid6_000540.png grid6_000900.png grid6_001260.png
- grid6_000195.png grid6_000555.png grid6_000915.png grid6_001275.png
- grid6_000210.png grid6_000570.png grid6_000930.png grid6_001290.png
- grid6_000225.png grid6_000585.png grid6_000945.png grid6_001305.png
- grid6_000240.png grid6_000600.png grid6_000960.png grid6_001320.png
- grid6_000255.png grid6_000615.png grid6_000975.png grid6_001335.png
- grid6_000270.png grid6_000630.png grid6_000990.png grid6_001350.png
- grid6_000285.png grid6_000645.png grid6_001005.png grid6_001365.png
- grid6_000300.png grid6_000660.png grid6_001020.png grid6_001380.png
- grid6_000315.png grid6_000675.png grid6_001035.png grid6_001395.png
- grid6_000330.png grid6_000690.png grid6_001050.png grid6_001410.png
- grid6_000345.png grid6_000705.png grid6_001065.png grid6_001425.png
- [rr186@spectre12 1M_pre_ms_to_wd]$ display png/grid6_0003
- grid6_000300.png grid6_000330.png grid6_000360.png grid6_000390.png
- grid6_000315.png grid6_000345.png grid6_000375.png
- [rr186@spectre12 1M_pre_ms_to_wd]$ display png/grid6_000360.png
- [rr186@spectre12 1M_pre_ms_to_wd]$ nano plot.py
- [rr186@spectre12 1M_pre_ms_to_wd]$ python plot.py
- 35 in profiles.index file ...
- Found and load nearest profile for cycle 800
- reading LOGS/profile22.data ...
- reading ...100%
- failed to get the current screen resources
- Closing profile tool ...
- [rr186@spectre12 1M_pre_ms_to_wd]$ ^C
- [rr186@spectre12 1M_pre_ms_to_wd]$ failed to get the current screen resources
- -bash: failed: command not found
- [rr186@spectre12 1M_pre_ms_to_wd]$ ^C
- [rr186@spectre12 1M_pre_ms_to_wd]$ python
- Python 2.7.13 |Anaconda 4.3.1 (64-bit)| (default, Dec 20 2016, 23:09:15)
- [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- Anaconda is brought to you by Continuum Analytics.
- Please check out: http://continuum.io/thanks and https://anaconda.org
- >>> d = mesa.mesa_profile("LOGS", 001440)
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- NameError: name 'mesa' is not defined
- >>> import mesa
- >>> d = mesa.mesa_profile("LOGS", 001440)
- 35 in profiles.index file ...
- Found and load nearest profile for cycle 800
- reading LOGS/profile22.data ...
- reading ...100%
- >>> help(d.density_profile)
- >>> import mesa_reader as mr
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- ImportError: No module named mesa_reader
- >>> exit()
- Closing profile tool ...
- [rr186@spectre12 1M_pre_ms_to_wd]$ ls
- checks.md5 final_profile.data inlist mesa_dir.rb plot.py rn
- ck get-pip.py inlist_1.0 mk plotters src
- clean grid6.mp4 LOGS photos png star
- final.mod hr.mp4 make plot_data re
- [rr186@spectre12 1M_pre_ms_to_wd]$ ls ../..
- 2nd year file.txt NuGridpy-0.1.6401-py2.7.egg
- anaconda2 finalproject1 pair
- Anaconda2-4.3.1-Linux-x86_64.sh include pgplot
- Assess learning py
- bin lib py_mesa_reader
- core.11526 lib64 README
- core.11701 libexec share
- cwork __MACOSX site.py
- Desktop man site.pyc
- Downloads matplotlib tutorial
- easy-install.pth mesa
- extern MesaWorkshop
- [rr186@spectre12 1M_pre_ms_to_wd]$ ls ../../mesa/s
- sample/ star/ svnup
- [rr186@spectre12 1M_pre_ms_to_wd]$ ls ~
- 2nd year file.txt NuGridpy-0.1.6401-py2.7.egg
- anaconda2 finalproject1 pair
- Anaconda2-4.3.1-Linux-x86_64.sh include pgplot
- Assess learning py
- bin lib py_mesa_reader
- core.11526 lib64 README
- core.11701 libexec share
- cwork __MACOSX site.py
- Desktop man site.pyc
- Downloads matplotlib tutorial
- easy-install.pth mesa
- extern MesaWorkshop
- [rr186@spectre12 1M_pre_ms_to_wd]$ ls ~/py_mesa_reader/
- .git/ mesa_reader/ README.md setup.py
- [rr186@spectre12 1M_pre_ms_to_wd]$ cp -R ~/py_mesa_reader/mesa_reader/ .
- [rr186@spectre12 1M_pre_ms_to_wd]$ ls
- checks.md5 final_profile.data inlist mesa_dir.rb plot_data re
- ck get-pip.py inlist_1.0 mesa_reader plot.py rn
- clean grid6.mp4 LOGS mk plotters src
- final.mod hr.mp4 make photos png star
- [rr186@spectre12 1M_pre_ms_to_wd]$ python
- Python 2.7.13 |Anaconda 4.3.1 (64-bit)| (default, Dec 20 2016, 23:09:15)
- [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- Anaconda is brought to you by Continuum Analytics.
- Please check out: http://continuum.io/thanks and https://anaconda.org
- >>> import mesa_reader
- >>> p = profile_data()
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- NameError: name 'profile_data' is not defined
- >>> l = MesaLogDir("./LOGS")
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- NameError: name 'MesaLogDir' is not defined
- >>> l = mesa_reader.MesaLogDir("./LOGS")
- >>> p = l.profile.data()
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- AttributeError: MesaLogDir instance has no attribute 'profile'
- >>> p = l.profile_data()
- >>> xlabel("Radius")
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- NameError: name 'xlabel' is not defined
- >>> %pylab
- File "<stdin>", line 1
- %pylab
- ^
- SyntaxError: invalid syntax
- >>> exit
- Use exit() or Ctrl-D (i.e. EOF) to exit
- >>>
- [rr186@spectre12 1M_pre_ms_to_wd]$ ipython
- Python 2.7.13 |Anaconda 4.3.1 (64-bit)| (default, Dec 20 2016, 23:09:15)
- Type "copyright", "credits" or "license" for more information.
- IPython 5.1.0 -- An enhanced Interactive Python.
- ? -> Introduction and overview of IPython's features.
- %quickref -> Quick reference.
- help -> Python's own help system.
- object? -> Details about 'object', use 'object??' for extra details.
- In [1]: %pylab
- Using matplotlib backend: Qt5Agg
- Populating the interactive namespace from numpy and matplotlib
- In [2]: failed to get the current screen resources
- QXcbConnection: XCB error: 170 (Unknown), sequence: 164, resource id: 90, major0
- In [2]:
- In [2]: import mesa_reader as mr
- In [3]: l = MesaLogDir("./LOGS")
- ---------------------------------------------------------------------------
- NameError Traceback (most recent call last)
- <ipython-input-3-8d3e882c1434> in <module>()
- ----> 1 l = MesaLogDir("./LOGS")
- NameError: name 'MesaLogDir' is not defined
- In [4]: l = mr.MesaLogDir("./LOGS")
- In [5]: p = l.profile_data()
- In [6]: p
- Out[6]: <mesa_reader.MesaData instance at 0x2aaad646b758>
- In [7]: p.Rho
- Out[7]:
- array([ 2.13518742e-09, 2.13518742e-09, 2.13518743e-09, ...,
- 3.65829961e+06, 3.65843063e+06, 3.65854067e+06])
- In [8]: import matplotlib
- In [9]: plot(p.Rho)
- Out[9]: [<matplotlib.lines.Line2D at 0x2aaad64d98d0>]
- In [10]:
- In [10]: plot.loglog(p.Rho)
- ---------------------------------------------------------------------------
- AttributeError Traceback (most recent call last)
- <ipython-input-10-6c19130d10c9> in <module>()
- ----> 1 plot.loglog(p.Rho)
- AttributeError: 'function' object has no attribute 'loglog'
- In [11]: plt.yscale('log')
- In [12]: plt.xscale('log')
- In [13]: plot(p.Rho)
- Out[13]: [<matplotlib.lines.Line2D at 0x2aaadf4c8f50>]
- In [14]:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement