-
Notifications
You must be signed in to change notification settings - Fork 5
/
cgb_interactive.py
executable file
·44 lines (37 loc) · 1.14 KB
/
cgb_interactive.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python -i
#####################################################
# This file is a component of ClusterGB #
# Copyright (c) 2018 Liam Huber #
# Released under the MIT License (see distribution) #
#####################################################
"""
Launches an interactive python session with useful libraries loaded, e.g. the clustergb package. Great for exploring
your results, for example:
.. code-block:: bash
cd ~/my_cgb_project
cgb_interactive.py
>>> proj = cgb.osio.load_project()
>>> for cn in proj.child_names:
... job = cgb.osio.load_job(cn)
... print(cn, job.gb.gb_energy)
...
(gb1, 503.248)
(gb2, 397.274)
(gb3, 440.119)
"""
from __future__ import absolute_import
import numpy as np
#from . import clustergb as cgb
import clustergb as cgb
import readline
import rlcompleter
import os
import matplotlib.pyplot as plt
import seaborn as sns
__author__ = "Liam Huber"
__copyright__ = "Copyright 2018, Liam Huber"
__license__ = "MIT"
__maintainer__ = "Liam Huber"
__email__ = "huber@mpie.de"
__status__ = "Production"
readline.parse_and_bind("tab: complete")