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

now the cube algorithm counts all the possible combinations between the pairs #55

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

giovannifacchinetti99
Copy link
Contributor

Added the list "combination" in the cube algorithm function. In case of >2 particles in the same cube, it computes the combination between all the particles.
At the end I ran another time, and because of the noise, results are different from before.

@@ -167,7 +168,8 @@
" a list containing lists of satelites idx occupying the same cube\n",
" \"\"\"\n",
" # init\n",
" retval = []\n",
" collision = []\n",
" combination = []\n",
Copy link
Member

Choose a reason for hiding this comment

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

I would call this variable pairs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -167,7 +168,8 @@
" a list containing lists of satelites idx occupying the same cube\n",
" \"\"\"\n",
" # init\n",
" retval = []\n",
" collision = []\n",
Copy link
Member

Choose a reason for hiding this comment

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

I would call this variable in_same_cube

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@darioizzo
Copy link
Member

@bluescarni This is good to go, its a small PR improving on one of the utilities notebooks. Will merge when the CI passes.

@darioizzo darioizzo merged commit b9946d9 into esa:main Nov 1, 2023
11 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