Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
Make enemble's object and source fields public
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonbb committed Sep 18, 2023
1 parent 7561df3 commit 5621a0b
Show file tree
Hide file tree
Showing 5 changed files with 1,501 additions and 204 deletions.
14 changes: 7 additions & 7 deletions docs/tutorials/binning_slowly_changing_sources.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"outputs": [],
"source": [
"fig, ax = plt.subplots(1, 1)\n",
"_ = ax.hist(ens._source[\"midPointTai\"].compute().tolist(), 500)\n",
"_ = ax.hist(ens.source[\"midPointTai\"].compute().tolist(), 500)\n",
"_ = ax.set_xlabel(\"Time (MJD)\")\n",
"_ = ax.set_ylabel(\"Source Count\")"
]
Expand Down Expand Up @@ -90,7 +90,7 @@
"source": [
"ens.bin_sources(time_window=7.0, offset=0.0)\n",
"fig, ax = plt.subplots(1, 1)\n",
"_ = ax.hist(ens._source[\"midPointTai\"].compute().tolist(), 500)\n",
"_ = ax.hist(ens.source[\"midPointTai\"].compute().tolist(), 500)\n",
"_ = ax.set_xlabel(\"Time (MJD)\")\n",
"_ = ax.set_ylabel(\"Source Count\")"
]
Expand Down Expand Up @@ -120,7 +120,7 @@
"source": [
"ens.bin_sources(time_window=28.0, offset=0.0, custom_aggr={\"midPointTai\": \"min\"})\n",
"fig, ax = plt.subplots(1, 1)\n",
"_ = ax.hist(ens._source[\"midPointTai\"].compute().tolist(), 500)\n",
"_ = ax.hist(ens.source[\"midPointTai\"].compute().tolist(), 500)\n",
"_ = ax.set_xlabel(\"Time (MJD)\")\n",
"_ = ax.set_ylabel(\"Source Count\")"
]
Expand Down Expand Up @@ -150,7 +150,7 @@
"ens.from_source_dict(rows, column_mapper=cmap)\n",
"\n",
"fig, ax = plt.subplots(1, 1)\n",
"_ = ax.hist(ens._source[\"midPointTai\"].compute().tolist(), 60)\n",
"_ = ax.hist(ens.source[\"midPointTai\"].compute().tolist(), 60)\n",
"_ = ax.set_xlabel(\"Time (MJD)\")\n",
"_ = ax.set_ylabel(\"Source Count\")"
]
Expand Down Expand Up @@ -179,7 +179,7 @@
"ens.bin_sources(time_window=1.0, offset=0.0)\n",
"\n",
"fig, ax = plt.subplots(1, 1)\n",
"_ = ax.hist(ens._source[\"midPointTai\"].compute().tolist(), 60)\n",
"_ = ax.hist(ens.source[\"midPointTai\"].compute().tolist(), 60)\n",
"_ = ax.set_xlabel(\"Time (MJD)\")\n",
"_ = ax.set_ylabel(\"Source Count\")"
]
Expand Down Expand Up @@ -209,7 +209,7 @@
"ens.bin_sources(time_window=1.0, offset=0.5)\n",
"\n",
"fig, ax = plt.subplots(1, 1)\n",
"_ = ax.hist(ens._source[\"midPointTai\"].compute().tolist(), 60)\n",
"_ = ax.hist(ens.source[\"midPointTai\"].compute().tolist(), 60)\n",
"_ = ax.set_xlabel(\"Time (MJD)\")\n",
"_ = ax.set_ylabel(\"Source Count\")"
]
Expand Down Expand Up @@ -259,7 +259,7 @@
"ens.bin_sources(time_window=1.0, offset=0.5)\n",
"\n",
"fig, ax = plt.subplots(1, 1)\n",
"_ = ax.hist(ens._source[\"midPointTai\"].compute().tolist(), 60)\n",
"_ = ax.hist(ens.source[\"midPointTai\"].compute().tolist(), 60)\n",
"_ = ax.set_xlabel(\"Time (MJD)\")\n",
"_ = ax.set_ylabel(\"Source Count\")"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/scaling_to_large_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
"\n",
"print(\"number of lightcurve results in mapres: \", len(mapres))\n",
"print(\"number of lightcurve results in groupres: \", len(groupres))\n",
"print(\"True number of lightcurves in the dataset:\", len(np.unique(ens._source.index)))"
"print(\"True number of lightcurves in the dataset:\", len(np.unique(ens.source.index)))"
]
},
{
Expand Down
Loading

0 comments on commit 5621a0b

Please sign in to comment.