Skip to content

running_parallel_chains.ipynb #3

Description

@wsubber

Describe the bug
UnboundLocalError Traceback (most recent call last)
in
----> 1 pres = load_parallel_simulation_results(savedir)
2 combined_chains, index = CP.generate_combined_chain_with_index(pres)
3
4 settings = dict(sns={'axis.grid': True},
5 pairgrid=dict(height=3.75, hue='index', despine=False),

~/anaconda2/envs/genx/lib/python3.7/site-packages/pymcmcstat/ParallelMCMC.py in load_parallel_simulation_results(savedir, extension, chainfile, sschainfile, s2chainfile, covchainfile)
403 warnings.warn('WARNING: No chains found in saved results.', UserWarning)
404 for ii, pr in enumerate(pres):
--> 405 pr['chain'] = out[ii]['chain']
406 pr['sschain'] = out[ii]['sschain']
407 pr['s2chain'] = out[ii]['s2chain']

UnboundLocalError: local variable 'out' referenced before assignment

To Reproduce
Steps to reproduce the behavior:
run running_parallel_chains.ipynb from the tutorial

out actually is not needed as pres is returned

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions