Skip to content

limit number of galaxies to 1000, configured in gal_catalog_config.ini#10

Open
moira-andrews wants to merge 2 commits intomasterfrom
reduce_num_of_galaxies
Open

limit number of galaxies to 1000, configured in gal_catalog_config.ini#10
moira-andrews wants to merge 2 commits intomasterfrom
reduce_num_of_galaxies

Conversation

@moira-andrews
Copy link
Copy Markdown
Contributor

Helps with large localization regions so the database doesn't ingest all the galaxies and cause page loading issues. Can be reduced further.

@moira-andrews moira-andrews self-assigned this Nov 12, 2025
Copy link
Copy Markdown
Collaborator

@swyatt7 swyatt7 left a comment

Choose a reason for hiding this comment

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

Just some small variable name changes then should be good to go.

Comment on lines +181 to +184
if len(ii) > ngalaxtoshow:
n = ngalaxtoshow
else:
n = len(ii)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's name n something more meaningful.

Also can you name ii something more meaningful as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Alright, updated in most recent commit!

Copy link
Copy Markdown
Collaborator

@swyatt7 swyatt7 left a comment

Choose a reason for hiding this comment

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

lgtm

Barring anything from @cmccully, feel free to merge.

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