Wei Ji

Results 343 comments of Wei Ji

Need to add `@earth_gebco_01d` to the cache too at `pygmt/helpers/testing.py` right?

Thanks Meghan for getting the `grdhisteq` function done. I'll refactor the `triangulate` implementation in #731 to use a similar "Two methods in a single Python class" style to be consistent.

@dr-glenn, do you want to try this branch using `pip install https://github.com/GenericMappingTools/pygmt/archive/stringio_input.zip` and see if it works for your StringIO legend? Documentation (beta) is at https://pygmt-git-stringioinput.gmt.vercel.app/api/generated/pygmt.Figure.legend.html#pygmt.Figure.legend. Happy to receive any...

> `io.StringIO` is something new to me. Some googling gives the impression that `io.StringIO` is one of the [file-like objects](https://docs.python.org/3/glossary.html#term-file-object). Perhaps we should generalize the function to support all file-like...

> Yes, that's another point. Without this PR, users just need to add a few lines of codes (maybe two or three) to write strings into a temporary file, and...

> @weiji14 I think it's time to refactor this PR, so that all functions can accept `io.StringIO` input. Ok, but we really should make the input types tutorial at #1268...

Twitter thread from @ocefpaf and @leouieda at https://twitter.com/leouieda/status/1570302518927785985 on potentially using the conda-forge feedstock (i.e. https://github.com/conda-forge/pygmt-feedstock) to build PyGMT wheels with libgmt. See examples at - https://github.com/ocefpaf/netcdf4-win-wheels, wheels at https://github.com/ocefpaf/netcdf4-win-wheels/releases/tag/v1.6.1...

> Does the former links and builds against the latter or it calls the CLI commands? If the it builds against then the approach above is the best one at...

> > PyGMT calls GMT C modules via ctypes, so I'm guessing the former? > > Not exactly. You don't need GMT to build pygmt then, right? Only to run...

Cool, thanks for the pointers! I haven't got a Windows machine to try this out, but can probably figure my way around the shell script parts (once I find some...