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

fix diversity question wording #919

Merged
merged 2 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions react/src/data/quiz_names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ export default [
null,
null,
null,
'higher racial homogeneity!TOOLTIP We define racial homogeneity as the average probability a person selecting a random person in a 250m radius will select someone of the same race',
'higher increase (or smaller decrease) in racial homogeneity from 2000 to 2020!TOOLTIP We define racial homogeneity as the average probability a person selecting a random person in a 250m radius will select someone of the same race',
'higher increase (or smaller decrease) in racial homogeneity from 2010 to 2020!TOOLTIP We define racial homogeneity as the average probability a person selecting a random person in a 250m radius will select someone of the same race',
'lower racial diversity!TOOLTIP We define racial diversity as the average probability a person selecting a random person in a 250m radius will select someone of a different race',
'!FULL Which diversified less between 2000 and 2020?!TOOLTIP We define racial diversity as the average probability a person selecting a random person in a 250m radius will select someone of a different race',
'!FULL Which diversified less between 2010 and 2020?!TOOLTIP We define racial diversity as the average probability a person selecting a random person in a 250m radius will select someone of a different race',
'!FULL Which has more hours of sun per day on average? (population weighted)!TOOLTIP Population weighted weather statistics are calculated by computing the weather statistic for each person in the region and then averaging the results.',
null,
null,
Expand Down
4 changes: 2 additions & 2 deletions react/src/page_template/template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ function TemplateFooter(): ReactNode {
}

function Version(): ReactNode {
return <span id="current-version">23.6.2</span>
return <span id="current-version">23.6.3</span>
}

function LastUpdated(): ReactNode {
return <span id="last-updated">2025-02-01</span>
return <span id="last-updated">2025-02-02</span>
}

function MainCredits(): ReactNode {
Expand Down
18 changes: 9 additions & 9 deletions urbanstats/statistics/collections/segregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from urbanstats.geometry.segregation import compute_homogenity_statistics
from urbanstats.statistics.statistic_collection import USAStatistics

homogeneity_explanation = (
"!TOOLTIP We define racial homogeneity as the average probability a person selecting "
"a random person in a 250m radius will select someone of the same race"
diversity_explanation = (
"!TOOLTIP We define racial diversity as the average probability a person selecting "
"a random person in a 250m radius will select someone of a different race"
)


Expand Down Expand Up @@ -39,12 +39,12 @@ def quiz_question_descriptors(self):
**QuizQuestionDescriptor.several(
SEGREGATION,
{
"homogeneity_250_2020": "higher racial homogeneity"
+ homogeneity_explanation,
"homogeneity_250_diff_2010": "higher increase (or smaller decrease) in racial homogeneity from 2010 to 2020"
+ homogeneity_explanation,
"homogeneity_250_diff_2000": "higher increase (or smaller decrease) in racial homogeneity from 2000 to 2020"
+ homogeneity_explanation,
"homogeneity_250_2020": "lower racial diversity"
+ diversity_explanation,
"homogeneity_250_diff_2010": "!FULL Which diversified less between 2010 and 2020?"
+ diversity_explanation,
"homogeneity_250_diff_2000": "!FULL Which diversified less between 2000 and 2020?"
+ diversity_explanation,
},
),
**QuizQuestionSkip.several(
Expand Down
Loading