Skip to content

Batch_Run begins, performs no iterations, no errors, writes empty .csv file. Help? #2105

Answered by clarkpetri
clarkpetri asked this question in Q&A
Discussion options

You must be logged in to vote

The issue was initializing params for the batch_run with "loaded_ids": []. In the model I initialize an empty list to track IDs loaded from network structures. I built my initial params based on the mesa.Model init:

class FairfaxABM(mesa.Model):
    """
    Model class for the BEV adoption model.
    """
    def __init__(self, width=30, height=30, age_array=None, rand_or_gis=0.0, num_chargers=1, bev_percent=0.05, bev_thresh=1, reg_percent=0, total_agents=0, tick=1, loaded_ids=[]):

However, loading the empty list in params caused the error I initially posted about. The manner in which the terminal closed out, seemingly starting the iterations but not running, nor providing any python erro…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@clarkpetri
Comment options

@clarkpetri
Comment options

Answer selected by clarkpetri
@rht
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants