Skip to content

Commit c6c809b

Browse files
author
Laura Toribio San Cipriano
committed
Put in a separate cell the main function
1 parent 877f936 commit c6c809b

File tree

1 file changed

+33
-18
lines changed

1 file changed

+33
-18
lines changed

sst/mtm1m3/M1M3_Force_actuator_following_errors_FFT.ipynb

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,30 @@
5151
"import numpy as np\n",
5252
"import os\n",
5353
"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"
5559
]
5660
},
5761
{
5862
"cell_type": "code",
5963
"execution_count": null,
60-
"id": "e1e1d9b1-997f-4c35-91f3-b295026633c9",
64+
"id": "472a35d1-7b0a-4186-876b-15ed65478bd0",
6165
"metadata": {},
6266
"outputs": [],
6367
"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+
" "
6778
]
6879
},
6980
{
@@ -143,20 +154,24 @@
143154
" #if \"primary\" in topic:\n",
144155
" # plt.savefig(f\"{plot_directory}PA_{FATable[fa].actuator_id}.png\")\n",
145156
" #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"
159158
]
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": []
160175
}
161176
],
162177
"metadata": {

0 commit comments

Comments
 (0)