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

object indexing #368

Open
2 of 4 tasks
panosatha opened this issue Jul 29, 2024 · 2 comments
Open
2 of 4 tasks

object indexing #368

panosatha opened this issue Jul 29, 2024 · 2 comments
Assignees
Labels
bug Something isn't working high priority This issue has a high priority

Comments

@panosatha
Copy link
Collaborator

hydomt_fiat version checks

  • I have checked that this issue has not already been reported.
  • I have checked that this bug exists on the latest version of hydomt_fiat.

Reproducible Example

It seems that for some of the methods with respect to applying changes (elevating, changing max damage etc.) the indexing was not implemented in a safe way, assuming that always exposure objects are in asceding order based on Object ID. Or reordering the objects.

Some of these parts were corrected in #365, but it is better to a general check of all these methods again to ensure that they are implemented correcty.

Current behaviour

Check above

Desired behaviour

Safe way of indexing FIAT objects.
The object ID should be always used for indexing since it is the unique identifier

Task list

  • go through all the methods using indexing and check implementation
  • apply general object base indexing and not a different approach in every method ( the object ID should be always used for indexing since it is the unique identifier)

Additional context

No response

@panosatha panosatha added bug Something isn't working high priority This issue has a high priority labels Jul 29, 2024
@Santonia27
Copy link
Collaborator

Santonia27 commented Aug 2, 2024

Can you please list which methods are used in Floodadapt;

  • Elevate homes = raise_ground_floor_height

    in def set_height_relative_to_reference - the Object ID is set to index already. Not sure if there is modification neccessary
    same in def raise_ground_floor_height line 1116, exposure_db index set to Object ID already

  • (Check update classification in MB GUI)

Anything else? Check in FIAT Adapter in Floodadapt

Object ID Indexing right at the beginning from the exposure df and geoms and then should be the same at all times.

Actions:

  • Create an inventory on where the indexing goes wrong/may go wrong

@Santonia27
Copy link
Collaborator

Santonia27 commented Aug 14, 2024

Here a little inventory of the functions in floodadapt and if they need indexing or not. Maybe also worth a discussion per function..

inventory.docx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority This issue has a high priority
Projects
None yet
Development

No branches or pull requests

2 participants