Skip to content

Stokes refactor - #137

Merged
ttricco merged 74 commits into
ttricco:2f-stokesfrom
FathimaCSgithub:stokes-refactor
Aug 20, 2026
Merged

ttricco merged 74 commits into
ttricco:2f-stokesfrom
FathimaCSgithub:stokes-refactor

Conversation

@FathimaCSgithub

@FathimaCSgithub FathimaCSgithub commented Dec 2, 2025 •

Copy link
Copy Markdown
Contributor
gas_and_dust_particles Sarracen dataframes for the unit tests were created based on this image.
  • The solid red circles represent gas particles.
  • The blue dots represent dust particles.
  • The pink circles represent the smoothing lengths of the gas particles
  • The blue circles represent the smoothing lengths of the dust particles
  • Gas particle 1 and dust particle 2 are neighbours of each other
  • Gas particle 0 is a neighbour of dust particle 1, but dust particle 1 is not a neighbour of gas particle 0
  • Gas particle 2 is not a neighbour of dust particle 0, but dust particle 0 is a neighbour of gas particle 1
image image

Testing on differing number of dust and gas particles
Same dataset with one more dust particle. Dust particle 4 is a neighbour of gas particle 2 but gas particle 2 is not a neighbour of dust particle 4

image image

@ttricco
ttricco changed the base branch from main to 2f-stokes December 5, 2025 02:20
@FathimaCSgithub

FathimaCSgithub commented Dec 8, 2025 •

Copy link
Copy Markdown
Contributor Author

Made a bare bones unit test based on the image in the PR description

ttricco added 29 commits July 12, 2026 12:57
Returned sigma might have a different length to bins
# Conflicts:
#	sarracen/disc/surface_density.py
modified surface_density function to compute surface densities of gas…
Update from np.trapz to np.trapezoid
# Conflicts:
#	sarracen/disc/surface_density.py
# Conflicts:
#	sarracen/sarracen_dataframe.py
@ttricco
ttricco merged commit c26264d into ttricco:2f-stokes Aug 20, 2026
1 check failed
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.

6 participants