|
51 | 51 | "import numpy as np\n",
|
52 | 52 | "import os\n",
|
53 | 53 | "import argparse\n",
|
54 |
| - "from astropy.time import Time, TimeDelta" |
| 54 | + "from astropy.time import Time, TimeDelta\n", |
| 55 | + "\n", |
| 56 | + "from lsst.summit.utils.tmaUtils import TMAEventMaker\n", |
| 57 | + "from lsst.summit.utils.efdUtils import EfdClient, getEfdData, makeEfdClient, getDayObsEndTime, getDayObsStartTime\n", |
| 58 | + "from lsst.ts.xml.tables.m1m3 import FATable" |
55 | 59 | ]
|
56 | 60 | },
|
57 | 61 | {
|
58 | 62 | "cell_type": "code",
|
59 | 63 | "execution_count": null,
|
60 |
| - "id": "e1e1d9b1-997f-4c35-91f3-b295026633c9", |
| 64 | + "id": "472a35d1-7b0a-4186-876b-15ed65478bd0", |
61 | 65 | "metadata": {},
|
62 | 66 | "outputs": [],
|
63 | 67 | "source": [
|
64 |
| - "from lsst.summit.utils.tmaUtils import TMAEventMaker\n", |
65 |
| - "from lsst.summit.utils.efdUtils import EfdClient, getEfdData, makeEfdClient, getDayObsEndTime, getDayObsStartTime\n", |
66 |
| - "from lsst.ts.xml.tables.m1m3 import FATable" |
| 68 | + "def main(t_start, t_end):\n", |
| 69 | + "\n", |
| 70 | + " loop_over_actuators(\n", |
| 71 | + " client, \"primaryCylinderFollowingError\", len(FATable), t_start, t_end\n", |
| 72 | + " )\n", |
| 73 | + "\n", |
| 74 | + " loop_over_actuators(\n", |
| 75 | + " client, \"secondaryCylinderFollowingError\", 112, t_start, t_end\n", |
| 76 | + " )\n", |
| 77 | + " " |
67 | 78 | ]
|
68 | 79 | },
|
69 | 80 | {
|
|
143 | 154 | " #if \"primary\" in topic:\n",
|
144 | 155 | " # plt.savefig(f\"{plot_directory}PA_{FATable[fa].actuator_id}.png\")\n",
|
145 | 156 | " #else:\n",
|
146 |
| - " # plt.savefig(f\"{plot_directory}SA_{secondary_actuator_id[fa]}.png\")\n", |
147 |
| - "\n", |
148 |
| - " \n", |
149 |
| - "def main(t_start, t_end):\n", |
150 |
| - "\n", |
151 |
| - " loop_over_actuators(\n", |
152 |
| - " client, \"primaryCylinderFollowingError\", len(FATable), t_start, t_end\n", |
153 |
| - " )\n", |
154 |
| - "\n", |
155 |
| - " loop_over_actuators(\n", |
156 |
| - " client, \"secondaryCylinderFollowingError\", 112, t_start, t_end\n", |
157 |
| - " )\n", |
158 |
| - " " |
| 157 | + " # plt.savefig(f\"{plot_directory}SA_{secondary_actuator_id[fa]}.png\")\n" |
159 | 158 | ]
|
| 159 | + }, |
| 160 | + { |
| 161 | + "cell_type": "code", |
| 162 | + "execution_count": null, |
| 163 | + "id": "d10083f7-cea9-4399-824b-eb3747a5341a", |
| 164 | + "metadata": {}, |
| 165 | + "outputs": [], |
| 166 | + "source": [] |
| 167 | + }, |
| 168 | + { |
| 169 | + "cell_type": "code", |
| 170 | + "execution_count": null, |
| 171 | + "id": "2f85d5c4-1c18-4fea-8e8f-65d5bb0846e5", |
| 172 | + "metadata": {}, |
| 173 | + "outputs": [], |
| 174 | + "source": [] |
160 | 175 | }
|
161 | 176 | ],
|
162 | 177 | "metadata": {
|
|
0 commit comments