Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: structure for openquake hazard configs #100

Open
chrisbc opened this issue Apr 20, 2022 · 2 comments
Open

Feature: structure for openquake hazard configs #100

chrisbc opened this issue Apr 20, 2022 · 2 comments
Assignees

Comments

@chrisbc
Copy link
Member

chrisbc commented Apr 20, 2022

Current structure is a bit limiting. We want ability to add more detail (metadata) without have to impact JSON consumers (runzi code etc),

so (suggested)...

permutations = [
    {
        "tag" : "my branches",
        "permute" : [
            { "group": "CR",
              "members" :   [
                    {"tag": "CR_N2.3_b0.807_C4.2_s1", "toshi_id": "SW52ZXJzaW9uU29sdXRpb25Ocm1sOjEwMjE4MA=="},
                    {"tag": "CR_N2.3_b0.807_C4.2_s1", "toshi_id": "SW52ZXJzaW9uU29sdXRpb25Ocm1sOjEwMjE4NQ=="}
                    ]
            }, 
            { "group": "HK", "members" :   []}
        ]
    }
]

Because within lists each object is complete this is much easier to enrich and add attribute without affecting consumers

vs this (current) ...

    permutations = [
        {
            "CR": {
                "CR_N2.3_b0.807_C4.2_s1": "SW52ZXJzaW9uU29sdXRpb25Ocm1sOjEwMjE4MA=="
                "CR_N8.0_b1.115_C4.2_s1": "SW52ZXJzaW9uU29sdXRpb25Ocm1sOjEwMjE4NQ=="
                },
            "HK": {
                "HTC_b1.112_N22.6_C4_s1": "SW52ZXJzaW9uU29sdXRpb25Ocm1sOjEwMjE2NA==",
                "HTL_b1.3_N49.4_C4_s1": "SW52ZXJzaW9uU29sdXRpb25Ocm1sOjEwMjE3Mg=="
            },
            "BG": {
                "BG_floor_addtot346ave": "RmlsZToxMDIyMzA="
            },
            "PY": {
                "PY_b0.75_N3.4_C3.9_s1": "SW52ZXJzaW9uU29sdXRpb25Ocm1sOjEwMjE3Ng=="
            }
        },

@chrisbc
Copy link
Member Author

chrisbc commented Apr 21, 2022

@chrisdicaprio it'd be super helpful if you could produce a version of this config using TEST IDs. Doesn't have to have a full set (eg CRU + HIK + . But if it follows the final structure and contains IDs that are valid I can test all the OQ/AWS/Runzi integration much more readily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants