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

Batch run can't see local cache #16

Closed
github-actions bot opened this issue Jan 9, 2025 · 4 comments
Closed

Batch run can't see local cache #16

github-actions bot opened this issue Jan 9, 2025 · 4 comments

Comments

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2025

# TODO: Batch run can't see local cache
# Issue URL: https://github.com/SchmidtDSE/mesa_abm_poc/issues/16

from mesa.batchrunner import batch_run
from vegetation.patch.model import Vegetation
from numpy import arange
from vegetation.config.paths import (
    LOCAL_STAC_CACHE_FSTRING,
    SAVE_LOCAL_STAC_CACHE,
    DEM_STAC_PATH,
)

# TODO: Batch run can't see local cache
# Issue URL: https://github.com/SchmidtDSE/mesa_abm_poc/issues/16

# TODO: Implement early stopping when all the JOTR die off
# Issue URL: https://github.com/SchmidtDSE/mesa_abm_poc/issues/18

TST_JOTR_BOUNDS = [-116.326332, 33.975823, -116.289768, 34.004147]

model_params = {
    "num_steps": [100],
    "management_planting_density": arange(0, 1, 0.05),
    "export_data": [False],
    "bounds": [TST_JOTR_BOUNDS],
}

if __name__ == "__main__":
    results = batch_run(
        Vegetation,
        parameters=model_params,
        iterations=5,
        max_steps=100,
        number_processes=1,
        data_collection_period=1,
        display_progress=True,
    )
@GondekNP
Copy link
Contributor

closed with #17

@GondekNP
Copy link
Contributor

closed with #17

Copy link
Contributor Author

Closed in fb0287e.

Copy link
Contributor Author

Closed in 198a2ba.

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

1 participant