Skip to content

bug: Calculate rel_increase_comp independently of plotting #136

Description

@mszell

Describe the bug
rel_increase_comp is calculated only when plots are made. This seems illogical/unintuitive, because why would the calculation of a metric depend on whether a plot is made.

To Reproduce
Run sb with make_plots=False

Expected behavior
rel_increase_comp should be calculated?

Screenshots
n/a

Desktop (please complete the following information):
n/a

You have a solution? (optional)
Please always calculate rel_increase_comp

Additional context
We just noticed after a big batch export that this metric was not included.

PS there is no urgency to this, but probably something that could be fixed eventually.

Activity

  1. added theissue type on Sep 15, 2026
  2. cbueth commented on Sep 16, 2026

    @cbueth
    Member

    Hey @mszell, thanks for raising. The calculate_all with make_plots=False does compute the edge-wise rel_increase with write_relative_increase_to_edges, but not the component-wise one. I think this number was motivated through plotting and initially not for such batch export with save_to_gpkg.
    The needed code to make the conversion is in plot_component_wise_travel_increase itself, but should be moved over.
    I am working on this in feat/calculate-rel-increase-comp-independently and will push it soon, then you could test it.

  3. cbueth commented on Oct 1, 2026

    @cbueth
    Member

    If you test this again on #137 and it works, @mszell, we can merge that PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions