Skip to content

Commit

Permalink
remove overwrite from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbrn committed Jan 31, 2024
1 parent 2f8cb16 commit a1c764b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/tutorials/working_with_the_ensemble.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@
"source": [
"### Sampling\n",
"\n",
"In addition to filtering by specific constraints, it's possible to select a subset of your data to work with. `Ensemble.sample` will randomly select a fraction of objects from the full object list. By default this will return a new ensemble."
"In addition to filtering by specific constraints, it's possible to select a subset of your data to work with. `Ensemble.sample` will randomly select a fraction of objects from the full object list. This will return a new\n",
"ensemble object to work with."
]
},
{
Expand All @@ -451,7 +452,7 @@
"metadata": {},
"outputs": [],
"source": [
"subset_ens = ens.sample_objects(frac=0.5, overwrite=False) # select ~half of the objects, don't overwrite ens\n",
"subset_ens = ens.sample_objects(frac=0.5) # select ~half of the objects\n",
"\n",
"print(\"Number of pre-sampled objects: \", len(ens.object))\n",
"print(\"Number of post-sampled objects: \", len(subset_ens.object))"
Expand Down

0 comments on commit a1c764b

Please sign in to comment.