# Export OT Interval to 2-point Sample

**URL:** <https://openturns.discourse.group/t/export-ot-interval-to-2-point-sample/36>\
**Category:** Python usage\
**Tags:** feature-request, api\
**Created:** [October 3, 2020, 6:06pm UTC](https://openturns.discourse.group/t/export-ot-interval-to-2-point-sample/36 "2020-10-03T18:06:17Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![schueller](https://yyz2.discourse-cdn.com/free1/user_avatar/openturns.discourse.group/schueller/32/3_2.png) [@schueller](https://openturns.discourse.group/u/schueller)\
**Post date:** [October 8, 2020, 7:52am UTC](https://openturns.discourse.group/t/export-ot-interval-to-2-point-sample/36/7 "2020-10-08T07:52:20Z")

</div>

I dont agree we need a constructor from interval for 1 line:

```auto
sample = ot.Sample([interval.getLowerBound(), interval.getUpperBound()])

```

---

_[View the full topic](https://openturns.discourse.group/t/export-ot-interval-to-2-point-sample/36)._
