Skip to content

Commit

Permalink
Fixed the import issue #317
Browse files Browse the repository at this point in the history
  • Loading branch information
itsgifnotjiff committed Feb 4, 2025
1 parent 0eb7f59 commit d2e9bf7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Here is a step-by-step example of how to use this software.
```Python
options = {"longitude": {"cyclic": [0, 360.0]}}

from polytope.polytope import Polytope
from polytope_feature.polytope import Polytope

p = Polytope(datacube=array, axis_options=options)
```
Expand All @@ -97,15 +97,15 @@ Here is a step-by-step example of how to use this software.
In this example, we want to extract a simple 2D box in latitude and longitude at step 0. We thus create the two relevant shapes we need to build this 3-dimensional object,
```Python
import numpy as np
from polytope.shapes import Box, Select
from polytope_feature.shapes import Box, Select

box = Box(["latitude", "longitude"], [0, 0], [1, 1])
step_point = Select("step", [np.timedelta64(0, "s")])
```

which we then incorporate into a Polytope request.
```Python
from polytope.polytope import Request
from polytope_feature.polytope import Request

request = Request(box, step_point)
```
Expand Down

0 comments on commit d2e9bf7

Please sign in to comment.