Skip to content

Conversation

jorgesicachanr
Copy link
Collaborator

No description provided.

@jorgesicachanr jorgesicachanr changed the title Ccs 361 CCS-361: Redefinition of migration time maps Sep 23, 2025
@jorgesicachanr jorgesicachanr marked this pull request as ready for review September 23, 2025 11:35
@AudunSektnanNR AudunSektnanNR changed the base branch from develop_old_BU250923 to develop September 23, 2025 12:46
Comment on lines 27 to 31
co2_props[1:],
time_since_start[1:],
):
above_threshold = co2.values > co2_threshold
diff_prop = co2.values - co2_props[0].values
above_threshold = np.abs(diff_prop) > co2_threshold
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good! Can probably change the docstring above ("Migration time is ...").

Do we want np.abs(diff_prop) or just diff_prop? With absolute value we will see all changes, positive and negative. With only diff_prop we will observe only positive changes. Which kind of aligns with the name of the script "migration time", that something has migrated somewhere (=> increased some property that shows this). But I think using np.abs() is fine. Pros and cons.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Only positive changes it is! Also, docstring is changed

Copy link
Collaborator

@AudunSektnanNR AudunSektnanNR left a comment

Choose a reason for hiding this comment

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

Great!

@jorgesicachanr jorgesicachanr merged commit 5f41fbc into develop Sep 25, 2025
5 checks passed
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.

2 participants