-
Notifications
You must be signed in to change notification settings - Fork 0
/
installation.html
140 lines (119 loc) · 4.51 KB
/
installation.html
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE HTML>
<!--
Phantom by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Installation</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript>
<link rel="stylesheet" href="assets/css/noscript.css" />
</noscript>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/themes/prism.css">
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<div class="inner">
<!-- Logo -->
<!-- <a href="index.html" class="logo">
<span class="symbol"><img src="images/logo.svg" alt="" /></span><span class="title">Phantom</span>
</a> -->
<!-- Nav -->
<!-- <nav>
<ul>
<li><a href="#menu">Menu</a></li>
</ul>
</nav> -->
</div>
</header>
<!-- Menu -->
<!-- <nav id="menu">
<h2>Menu</h2>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="generic.html">Ipsum veroeros</a></li>
<li><a href="generic.html">Tempus etiam</a></li>
<li><a href="generic.html">Consequat dolor</a></li>
<li><a href="elements.html">Elements</a></li>
</ul>
</nav> -->
<!-- Main -->
<div id="main">
<div class="inner">
<h1 style=";color: rgb(54, 48, 48);">Getting started with AMPEL
<a href="mailto:jnordin@physik.hu-berlin.de?subject=from AMPEL project website" target="_blank"
class="icon solid fa-envelope" style="font-size: 0.8em;float: right;"> <span
class="label"></span></a>
<a href="https://github.com/AmpelProject" target="_blank" class="icon brands fa-github"
style="font-size: 0.8em;float: right;"> <span class="label"></span></a>
</h1>
<hr>
<h2>Installation:</h2>
<ul style="color: black; font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif "
align="justify">
<li>Make sure you have poetry installed. If not, see the install instructions
<a href="https://python-poetry.org/docs/ ">here</a>.
</li>
<li> Create a new conda environment with python 3.10+, then activate it. </li>
<code>
conda create --name ampel_env python=3.10
</code><br>
<code>
conda activate ampel_env
</code>
<li> In this environment, run each of these lines: </li>
<code>git clone https://github.com/AmpelProject/Ampel-HU-astro.git
</code><br>
<code>cd Ampel-HU-astro/
</code><br>
<code>poetry install -E "ztf sncosmo extcats notebook"
</code><br>
<code>poetry run ampel config build -out ampel_conf.yaml >& ampel_conf.log
</code><br>
</ul>
<h2>Getting started:</h2>
<ul style="color: black; font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif "
align="justify">
<li> AMPEL assumes a local MongoDB instance running with default connections. Install instructions
for MongoDB can be found
<a href="https://www.mongodb.com/docs/manual/installation/ ">here</a>.
</li>
<li>It can be useful to have a desktop graphical user interface for your MongoDB, such as
<a href="https://robomongo.org ">Studio 3T</a>.
</li>
<li>Using AMPEL means creating a channel for a specific science goal, which comes down to generating
a
job file (.yml) with the desired units and configuring them.
</li>
<li>
To add new units to AMPEL for your analysis:
</li>
<ul>
<li>Add your script locally to your install of <code>Ampel-HU-astro.</code></li>
<li>Register the script under <code>\Ampel-HU-astro\conf\ampel-hu-astro</code> in the format
you'll find
there.</li>
<li>Rebuild ampel:</li>
<code>cd Ampel-HU-astro</code><br>
<code>poetry run ampel config build -out ampel_conf.yaml >& ampel_conf.log
</code>
</ul>
</ul>
</div>
</div>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>