Skip to content

Bump to GMT 6.2.0rc2 #1289

Closed
Closed

Description

@weiji14

The second release candidate for GMT 6.2.0 has been released (https://github.com/GenericMappingTools/gmt/releases/tag/6.2.0rc2) on 25 May 2021 and is installable from the conda-forge devel channel using the following command:

conda install -c conda-forge/label/dev gmt=6.2.0rc2

TODO:

Supersedes #1217

Are you willing to help implement and maintain this feature? Yes

Activity

  1. added
    help wanted
    maintenance
    on May 25, 2021
  2. added this to the 0.4.0 milestone on May 25, 2021
  3. pinned this issue on May 25, 2021
  4. weiji14 commented on May 25, 2021

    @weiji14
    MemberAuthor
    • Fix failing tests, mostly those documented in #1242 (comment)

      • test_basemap.py (1)
      • test_subplot.py (4)
      • test_text.py (18)
      • test_wiggle.py (1)

    Instead of opening 4 separate PRs for each of these, how about making just 2? I.e. one for basemap/subplot/wiggle, and one for text? Do people have any preference?

  5. seisman commented on May 25, 2021

    @seisman
    Member
    • Fix failing tests, mostly those documented in #1242 (comment)

      • test_basemap.py (1)
      • test_subplot.py (4)
      • test_text.py (18)
      • test_wiggle.py (1)

    Instead of opening 4 separate PRs for each of these, how about making just 2? I.e. one for basemap/subplot/wiggle, and one for text? Do people have any preference?

    Sounds good to me.

  6. seisman commented on May 28, 2021

    @seisman
    Member

    Here is a minimal example to reproduce the flaky tests in test_makecpt.py. In this example, three figures are generated. The 1st and the 3rd figure uses the same code, so we expect makecpt1.eps and makecpt2.eps are the same, but actually these two images are slightly different. However, if we remove the code for the 2nd figure, makecpt1.eps and makecpt2.eps are the same again.

    I think it may mean that the settings for each "figure" are not fully isolated and it looks an upstream GMT issue.

    import pygmt
    
    # 1st image
    fig = pygmt.Figure()
    pygmt.makecpt(cmap="categorical", categorical=True)
    fig.colorbar(cmap=True, region=[10, 70, -5, 10], frame=True, position="JBC", V=True)
    fig.savefig("makecpt1.eps")
    
    # 2nd image
    fig = pygmt.Figure()
    fig.coast(region=[0, 10, -20, -10], projection="M6i",  frame=True, land="black")
    fig.savefig("other.eps")
    
    # 3rd image (same as the 1st image)
    fig = pygmt.Figure()
    pygmt.makecpt(cmap="categorical", categorical=True)
    fig.colorbar(cmap=True, region=[10, 70, -5, 10], frame=True, position="JBC", V=True)
    fig.savefig("makecpt2.eps")

    @PaulWessel @meghanrjones Please see if the above example can help you debug GMT 6.2.0rc2.

  7. seisman commented on May 29, 2021

    @seisman
    Member

    A bash version to reproduce the issue:

    gmt begin
    
    gmt figure makecpt1 pdf
    gmt makecpt -Ccategorical -W
    gmt colorbar -C -R10/70/-5/10 -B -DJBC
    
    gmt figure other pdf
    gmt coast -R0/10/-20/-10 -JM6i -B -Gblack
    
    gmt figure makecpt2 pdf
    gmt makecpt -Ccategorical -W
    gmt colorbar -C -R10/70/-5/10 -B -DJBC
    
    gmt end
    

    EDIT: I opened an upstream issue GenericMappingTools/gmt#5279 to better track it.

  8. seisman commented on May 29, 2021

    @seisman
    Member

    The "makecpt" flaky tests will be fixed in GenericMappingTools/gmt#5280 and available in GMT 6.2.0.

  9. self-assigned this
    on Jun 2, 2021
  10. weiji14 commented on Jun 2, 2021

    @weiji14
    MemberAuthor

    Ok, I'm closing this issue. There's a few more PyGMT tests we'll need to update since there have been bugfixes in upstraem GMT (to be released in GMT 6.2.0 GenericMappingTools/gmt#5290!), but that can be tracked in a separate 'Bump to GMT 6.2.0' issue 😁

  11. unpinned this issue on Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

help wantedmaintenance

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions