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

Chore/315 indirect analyses implement the same interface #320

Merged

Conversation

ArdtK
Copy link
Contributor

@ArdtK ArdtK commented Mar 11, 2024

Outline of change

  • add a protocol analysis_indirect_protocol for the indirect analyses
  • extend/improve the analysis_factory for the indirect analyses
  • break down indirect_analyses in files per analysis type and remove it finally
    • existing losses is expanded with an execute() to comply with analysis_indirect_protocol
    • refactor origin_closest_destination analyzer to match the input that an analysis provides
    • tests are refactored accordingly
  • class HazardNames is added to better manage the hazard names
  • expanded HazardFiles with a classmethod

@ArdtK ArdtK linked an issue Mar 11, 2024 that may be closed by this pull request
15 tasks
@ArdtK ArdtK requested a review from Carsopre March 13, 2024 15:00
Copy link
Collaborator

@Carsopre Carsopre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general awesome work, let's try to adding icing to the cake 👍

ra2ce/analysis/analysis_factory.py Outdated Show resolved Hide resolved
ra2ce/analysis/analysis_collection.py Outdated Show resolved Hide resolved
ra2ce/analysis/analysis_factory.py Show resolved Hide resolved
ra2ce/analysis/analysis_factory.py Outdated Show resolved Hide resolved
ra2ce/analysis/direct/__init__.py Outdated Show resolved Hide resolved
tests/analysis/indirect/test_losses.py Show resolved Hide resolved
tests/analysis/test_analysis_collection.py Outdated Show resolved Hide resolved
tests/analysis/test_analysis_collection.py Outdated Show resolved Hide resolved
tests/analysis/test_analysis_factory.py Outdated Show resolved Hide resolved
tests/network/hazard/test_hazard_files.py Outdated Show resolved Hide resolved
@ArdtK ArdtK marked this pull request as ready for review March 14, 2024 08:38
@Carsopre Carsopre merged commit a274fa5 into master Mar 14, 2024
3 checks passed
@Carsopre Carsopre deleted the chore/315-indirect-analyses-implement-the-same-interface branch March 14, 2024 10:40
Carsopre added a commit that referenced this pull request Apr 12, 2024
…lement-the-same-interface

Chore/315 indirect analyses implement the same interface
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

Successfully merging this pull request may close these issues.

Indirect analyses implement the same interface
2 participants