sci-visus / OpenVisus

Open Source distribution of the ViSUS capabilities
Other
27 stars 18 forks source link

Add initial stable API with tests #245

Closed klacansky closed 1 year ago

klacansky commented 1 year ago

Any progress on merging it? Thanks!

scrgiorgio commented 1 year ago

Sorry if I am late on this. My suggestions:

klacansky commented 1 year ago

I renamed the function and dataset, and also updated the test.

https://github.com/klacansky/OpenVisus/actions/runs/4370728503

scrgiorgio commented 1 year ago

All ok. Don't get the name "Dataset1" (usually I prefer self-describing names, what does "1" stands for?)

klacansky commented 1 year ago

Direct3D uses that for versioning, so when there are changes, you return Dataset2, Dataset3, ...

What name would you prefer?

klacansky commented 1 year ago

Can you push a new tag please? Thanks!

scrgiorgio commented 1 year ago

Just pushed.

I was thinking about adding a file "Libs/swig/stable_api" so people can do:

from OpenVisus.stable_api import Dataset,LoadDataset # etc...

this way we can have name overlapping. (could be stable_api_v<n> as well)

klacansky commented 1 year ago

Interesting. I would then make the experimental API like (so that most users have the simple import OpenVisus as ov).

from OpenVisus.experimental_api import Dataset,LoadDataset # etc...