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

Postprocessing fails when there is only one datapoint. #261

Closed
rajeee opened this issue Jan 29, 2022 · 0 comments · Fixed by #263
Closed

Postprocessing fails when there is only one datapoint. #261

rajeee opened this issue Jan 29, 2022 · 0 comments · Fixed by #263
Labels
bug Something isn't working

Comments

@rajeee
Copy link
Contributor

rajeee commented Jan 29, 2022

Describe the bug
Postprocessing crashes when there is only 1 datapoint.

To Reproduce
Set n_datapoints: 1

Expected behavior
It shouldn't fail.

Logs

Please copy pertinent sections of log files here (e.g. sampling.out, job.out-*, postprocessing.out, sinularity-output.log, etc.)

Traceback (most recent call last):
  File "/Users/radhikar/opt/anaconda3/envs/bsb22/bin/buildstock_docker", line 33, in <module>
    sys.exit(load_entry_point('buildstockbatch', 'console_scripts', 'buildstock_docker')())
  File "/Users/radhikar/Documents/resstock/buildstockbatch2022/buildstockbatch/buildstockbatch/utils.py", line 98, in run_with_error_capture
    return func(*args, **kwargs)
  File "/Users/radhikar/Documents/resstock/buildstockbatch2022/buildstockbatch/buildstockbatch/localdocker.py", line 299, in main
    batch.process_results()
  File "/Users/radhikar/Documents/resstock/buildstockbatch2022/buildstockbatch/buildstockbatch/base.py", line 549, in process_results
    postprocessing.combine_results(fs, self.results_dir, self.cfg, do_timeseries=do_timeseries)
  File "/Users/radhikar/Documents/resstock/buildstockbatch2022/buildstockbatch/buildstockbatch/postprocessing.py", line 280, in combine_results
    all_ts_cols.difference_update(all_ts_cols_sorted)
AttributeError: 'list' object has no attribute 'difference_update'

Platform (please complete the following information):

  • Simulation platform: All
  • BuildStockBatch version, branch, or sha: develop
  • resstock or comstock repo version, branch, or sha: NA
  • Local Desktop OS: all

Additional context
Add any other context about the problem here.

@rajeee rajeee added the bug Something isn't working label Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant