equinor / fmu-sumo

Interaction with Sumo in the FMU context
https://fmu-sumo.readthedocs.io/en/latest/
Apache License 2.0
0 stars 6 forks source link

implement __iter__ and __aiter__ in DocumentCollection #231

Closed adnejacobsen closed 12 months ago

adnejacobsen commented 12 months ago

DocumentCollection can now be treated as an iterator and async iterator, enabling async iteration with the async for .. in .. syntax.

Some improvements in pit functionality:

We are not deleting the pit, which is recommended. This is currently not possible because SumoClient.delete does not take params which is needed to call the DELETE /api/v1/pit endpoint.

Closes #228