insarlab / PySolid

A Python wrapper for solid Earth tides
GNU General Public License v3.0
61 stars 7 forks source link

update `solid.for` to return arrays instead of using text file #56

Closed scottstanie closed 1 year ago

scottstanie commented 1 year ago

Returns the arrays to numpy rather than writing to a text file.

To compare, I ran the two examples in the readme for point and grid, and i saved the fc variable in a .npy file.

Also, not super important, but it looks like the point example in the readme

%timeit pysolid.calc_solid_earth_tides_point(lat, lon, dt0, dt1, display=False, verbose=False)

which takes 4 seconds on the main branch takes about 1.5 seconds now

scottstanie commented 1 year ago

Awesome. Any reason not to do a pypi release for this update?

yunjunz commented 1 year ago

We should cut for version 0.3.0 for this. Would you like to do it? I just added you to the maintainer role of this repo, which should give you the permission to cut releases, let me know if it did not work please.

Here (https://github.com/insarlab/MintPy/wiki/Check-list-for-code-release) is a checklist I use before cutting for a new release, FYI.

scottstanie commented 1 year ago

hmm I made the release on github, which I thought would trigger the upload to pypi workflow (I made a new tag when creating a release... I thought that should "push a tag starting with 'v'" and trigger the workflow?). But it appears to have not triggered, so I'll upload it to pypi using twine.

scottstanie commented 1 year ago

spoke too soon- looks like it's running now 👍 https://github.com/insarlab/PySolid/actions/runs/4733570882

yunjunz commented 1 year ago

Great, thank you @scottstanie. The conda-forge feedstock should be also triggered automatically within 12 hours.

Update: conda is triggered in about one hour, that PR just got merged.