-
-
Notifications
You must be signed in to change notification settings - Fork 7
How to update GR.rb
kojix2 edited this page Feb 19, 2023
·
8 revisions
The following workflow is written so that you can maintain GR.rb even if you are sleepy.
-
New version of sciapp/gr is released.
-
Update packages (optional)
- Homebrew: Send pull request to homebrew-core to update
libgr
package (optional). - Windows: Update the MINGW package.
- Homebrew: Send pull request to homebrew-core to update
-
Update
lib/ffi.rb
in GR, GR3, GRM. -
Update
gr.rb
andgr3.rb
. (gr/plot) -
Add some tests if possible.
-
Leave it for a few days to check if sciapp team does not release a minor update.
-
Release a new version of the gem.
- Ruby's
Integer
andFloat
are automatically converted to C types:int
,float
, anddouble
. - You do not need to convert the
String
. - Be careful if you want to pass an array or a pointer as an argument.
- Arrays are converted to the default type.
- If the argument type is not the default type, you must convert it manually.
- You can use GRCommonUtils methods such as
int
,float
,double
, anduint
for this purpose.
-
inquiry
methods are provided for passing a pointer as an argument. - If you need a "pointer of pointer", you have to handle it yourself.
- The CI of Github Actions takes about 20 minutes.
- If you put [skip ci] in the commit message, you can skip ci.
User's Guide
Simple, matlab-style API
- Plotting functions
- Plot attributes
- Multiple plots
- Multiple subplots
- Save Plot to a file
- Jupyter Notebook
GR Native functions
For developers