Skip to content

Commit 8b992b7

Browse files
committed
cAmEL to sssssnake case
1 parent 400f3e5 commit 8b992b7

3 files changed

Lines changed: 27 additions & 27 deletions

File tree

DP1/300_Science_Demos/305_Galactic_variables_and_transients/305_1_Variable_star_light_curves.ipynb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@
333333
"outputs": [],
334334
"source": [
335335
"assert job.phase == 'COMPLETED'\n",
336-
"FrcdSrc = job.fetch_result().to_table()\n",
337-
"print(len(FrcdSrc))"
336+
"forced_source = job.fetch_result().to_table()\n",
337+
"print(len(forced_source))"
338338
]
339339
},
340340
{
@@ -352,7 +352,7 @@
352352
"metadata": {},
353353
"outputs": [],
354354
"source": [
355-
"# FrcdSrc"
355+
"# forced_source"
356356
]
357357
},
358358
{
@@ -371,7 +371,7 @@
371371
"outputs": [],
372372
"source": [
373373
"for band in filter_names:\n",
374-
" print(f\"{band}: {np.sum((FrcdSrc['band'] == band))} visits\")"
374+
" print(f\"{band}: {np.sum((forced_source['band'] == band))} visits\")"
375375
]
376376
},
377377
{
@@ -397,11 +397,11 @@
397397
"fig.subplots_adjust(wspace=0, hspace=0)\n",
398398
"\n",
399399
"for band in filter_names:\n",
400-
" pickband = np.where(FrcdSrc['band'] == band)\n",
401-
" ax1.plot(FrcdSrc[pickband]['expMidptMJD'], FrcdSrc[pickband]['psfDiffFlux'],\n",
400+
" pickband = np.where(forced_source['band'] == band)\n",
401+
" ax1.plot(forced_source[pickband]['expMidptMJD'], forced_source[pickband]['psfDiffFlux'],\n",
402402
" marker=filter_symbols[band], color=filter_colors[band],\n",
403403
" label=f\"{band}\", markersize=7, linestyle='none', fillstyle='none')\n",
404-
" ax2.plot(FrcdSrc[pickband]['expMidptMJD'], FrcdSrc[pickband]['psfFlux'],\n",
404+
" ax2.plot(forced_source[pickband]['expMidptMJD'], forced_source[pickband]['psfFlux'],\n",
405405
" marker=filter_symbols[band], color=filter_colors[band], linestyle='none',\n",
406406
" markersize=7, fillstyle='none')\n",
407407
"\n",
@@ -459,10 +459,10 @@
459459
"metadata": {},
460460
"outputs": [],
461461
"source": [
462-
"pickr = np.where(FrcdSrc['band'] == 'r')\n",
463-
"ind_max = np.argmax(FrcdSrc['psfFlux'][pickr])\n",
464-
"t0 = FrcdSrc['expMidptMJD'][pickr][ind_max]\n",
465-
"mjd_norm = (FrcdSrc['expMidptMJD'] - t0) / period\n",
462+
"pickr = np.where(forced_source['band'] == 'r')\n",
463+
"ind_max = np.argmax(forced_source['psfFlux'][pickr])\n",
464+
"t0 = forced_source['expMidptMJD'][pickr][ind_max]\n",
465+
"mjd_norm = (forced_source['expMidptMJD'] - t0) / period\n",
466466
"phase = np.mod(mjd_norm, 1.0)"
467467
]
468468
},
@@ -485,12 +485,12 @@
485485
"fig.subplots_adjust(wspace=0, hspace=0)\n",
486486
"\n",
487487
"for band in filter_names:\n",
488-
" pickband = np.where((FrcdSrc['band'] == band)\n",
489-
" & (FrcdSrc['psfDiffFlux'] > -50000))\n",
490-
" ax1.plot(phase[pickband], FrcdSrc[pickband]['psfDiffFlux'],\n",
488+
" pickband = np.where((forced_source['band'] == band)\n",
489+
" & (forced_source['psfDiffFlux'] > -50000))\n",
490+
" ax1.plot(phase[pickband], forced_source[pickband]['psfDiffFlux'],\n",
491491
" marker=filter_symbols[band], color=filter_colors[band],\n",
492492
" label=f\"{band}\", markersize=7, linestyle='none', fillstyle='none')\n",
493-
" ax2.plot(phase[pickband], FrcdSrc[pickband]['psfFlux'],\n",
493+
" ax2.plot(phase[pickband], forced_source[pickband]['psfFlux'],\n",
494494
" marker=filter_symbols[band], color=filter_colors[band], linestyle='none',\n",
495495
" markersize=7, fillstyle='none')\n",
496496
"\n",
@@ -528,7 +528,7 @@
528528
"metadata": {},
529529
"outputs": [],
530530
"source": [
531-
"mag = FrcdSrc['psfFlux'].to(u.ABmag).value"
531+
"mag = forced_source['psfFlux'].to(u.ABmag).value"
532532
]
533533
},
534534
{
@@ -541,7 +541,7 @@
541541
"fig, ax = plt.subplots(1, 1, figsize=(7, 5))\n",
542542
"\n",
543543
"for band in filter_names:\n",
544-
" pickband = np.where(FrcdSrc['band'] == band)\n",
544+
" pickband = np.where(forced_source['band'] == band)\n",
545545
" ax.plot(phase[pickband], mag[pickband],\n",
546546
" marker=filter_symbols[band], color=filter_colors[band],\n",
547547
" label=f\"{band}\", markersize=7, linestyle='none', fillstyle='none')\n",

DP1/300_Science_Demos/306_Extragalactic_transients/306_1_Transient_light_curves.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@
340340
"outputs": [],
341341
"source": [
342342
"assert job.phase == 'COMPLETED'\n",
343-
"FrcdSrc = job.fetch_result().to_table()\n",
344-
"print(len(FrcdSrc))"
343+
"forced_source = job.fetch_result().to_table()\n",
344+
"print(len(forced_source))"
345345
]
346346
},
347347
{
@@ -359,7 +359,7 @@
359359
"metadata": {},
360360
"outputs": [],
361361
"source": [
362-
"# FrcdSrc"
362+
"# forced_source"
363363
]
364364
},
365365
{
@@ -388,11 +388,11 @@
388388
"fig, ax = plt.subplots(1, 1, figsize=(10, 6), sharey=True, sharex=False)\n",
389389
"\n",
390390
"for f, filt in enumerate(filter_names):\n",
391-
" fx = np.where(FrcdSrc['band'] == filt)[0]\n",
391+
" fx = np.where(forced_source['band'] == filt)[0]\n",
392392
" ax.errorbar(\n",
393-
" FrcdSrc['expMidptMJD'][fx],\n",
394-
" FrcdSrc['psfDiffFlux'][fx],\n",
395-
" yerr=FrcdSrc['psfDiffFluxErr'][fx],\n",
393+
" forced_source['expMidptMJD'][fx],\n",
394+
" forced_source['psfDiffFlux'][fx],\n",
395+
" yerr=forced_source['psfDiffFluxErr'][fx],\n",
396396
" fmt=filter_symbols[filt],\n",
397397
" ms=10,\n",
398398
" mew=2,\n",

DP1/300_Science_Demos/307_AGN/307_1_AGN_Light_Curves.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@
314314
"outputs": [],
315315
"source": [
316316
"assert job.phase == 'COMPLETED'\n",
317-
"DiaObj = job.fetch_result().to_table()\n",
318-
"print(np.unique(DiaObj['diaObjectId']))"
317+
"dia_object = job.fetch_result().to_table()\n",
318+
"print(np.unique(dia_object['diaObjectId']))"
319319
]
320320
},
321321
{
@@ -335,7 +335,7 @@
335335
"metadata": {},
336336
"outputs": [],
337337
"source": [
338-
"DiaObjID = DiaObj['diaObjectId'][0]"
338+
"DiaObjID = dia_object['diaObjectId'][0]"
339339
]
340340
},
341341
{

0 commit comments

Comments
 (0)