Skip to content

Commit

Permalink
chore: Text Update (#22)
Browse files Browse the repository at this point in the history
* Spelling fixes
* Grammar fixes
* Update units
  • Loading branch information
cbolles authored Jan 6, 2025
1 parent 745f458 commit 1b444d8
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export const GlobalParamsView: React.FC<GlobalParamsViewProps> = ({ params }) =>
<List>
<ListItem>Time Step: {params.timeStep} (h/cycle)</ListItem>
<ListItem>Log Frequency: {params.logFreq}</ListItem>
<ListItem>Nutrient Diffusivity: {params.defaultDiffConst} (cm^2/s)</ListItem>
<ListItem>
Nutrient Diffusivity: {params.defaultDiffConst} (cm<sup>2</sup>/s)
</ListItem>
<ListItem>Default VMax: {params.defaultVMax} (mmol/gh)</ListItem>
<ListItem>Default KM: {params.defaultKm} (M)</ListItem>
<ListItem>Max Cycles: {params.maxCycles}</ListItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const SingleModelParamsView: React.FC<{ params: ModelParametersInput }> = ({ par
<ListItem>Neutral Drift: {params.neutralDrift ? 'True' : 'False'}</ListItem>
<ListItem>Neutral Drift Amp: {params.neutralDriftAmp}</ListItem>
<ListItem>Death Rate: {params.deathRate}</ListItem>
<ListItem>Linear Diffusivity: {params.linearDiffusivity} (cm^2/s)</ListItem>
<ListItem>Nonlinear Diffusivity: {params.nonlinearDiffusivity} (cm^2/sg)</ListItem>
<ListItem>Linear Diffusivity: {params.linearDiffusivity} (cm²/s)</ListItem>
<ListItem>Nonlinear Diffusivity: {params.nonlinearDiffusivity} (cm²/sg)</ListItem>
</List>
</Paper>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/results/ImageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const ImageView: React.FC<ImageViewProps> = ({ src }) => {
component="img"
src={src}
sx={{
maxWidth: '75%'
maxWidth: '100%'
}}
/>
</Box>
Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/src/components/results/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export const LayoutVisualization: React.FC<LayoutVisualizationProps> = ({ reques
<Stack spacing={2}>
<Typography variant="h2">Layout Visualizations</Typography>
<FormControl>
<InputLabel>View Type</InputLabel>
<InputLabel shrink={true}>View Type</InputLabel>
<Select
sx={{ maxWidth: 150 }}
value={layoutView}
onChange={(event) => setLayoutView(event.target.value as LayoutViews)}
notched={true}
sx={{ maxWidth: 150 }}
onChange={(event) => setLayoutView(event.target.value as LayoutViews)}
>
<MenuItem value={'biomass'}>Biomass</MenuItem>
<MenuItem value={'metabolite'}>Metabolite</MenuItem>
Expand Down
9 changes: 9 additions & 0 deletions packages/frontend/src/contexts/Theme.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ export const CometsThemeProvider: React.FC<ThemeProviderProps> = ({ children })
backgroundColor: 'white'
}
}
},
MuiInputLabel: {
styleOverrides: {
root: {
backgroundColor: '#ffffff',
paddingLeft: '4px',
paddingRight: '4px'
}
}
}
}
});
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/helpers/names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export const getMetaboliteName = (type: MetaboliteType) => {
case MetaboliteType.Rich:
return 'Rich';
case MetaboliteType.Glucose:
return 'Glucose';
return 'Minimal Media with Glucose';
case MetaboliteType.Acetate:
return 'Acetate';
return 'Minimal Media with Acetate';
default:
throw Error(`Unknown metabolite type: ${type}`);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function DashboardPage() {
}}
>
Simulating the complex growth patterns of bacterial colonies takes a lot of computational power and time to
complete but COMETS Layout builder allows you to make lightweight simulations within the web application.
complete, but COMETS Layout builder allows you to make lightweight simulations within the web application.
</Typography>
</Grid>

Expand All @@ -90,7 +90,7 @@ export function DashboardPage() {
opacity: '45%'
}}
>
Just chose your Model, Setup, and Metabolites. Set Your parameters. Then, you are done!
Just choose your Model, Setup, and Metabolites. Set your parameters. Then, you are done!
</Typography>
</Grid>

Expand Down
8 changes: 4 additions & 4 deletions packages/frontend/src/pages/ExperimentForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ const getSchema = (metaboliteType: MetaboliteType | null) => {
linearDiffusivity: {
type: 'number',
default: 0.001,
title: 'Linear Diffusivity (cm^2/s)'
title: 'Linear Diffusivity (cm²/s)'
},
nonlinearDiffusivity: {
type: 'number',
default: 0.6,
title: 'Nonlinear Diffusivity (cm^2/sg)'
title: 'Nonlinear Diffusivity (cm²/sg)'
}
},
required: ['name', 'neutralDriftAmp', 'deathRate', 'linearDiffusivity', 'nonlinearDiffusivity']
Expand All @@ -145,7 +145,7 @@ const getSchema = (metaboliteType: MetaboliteType | null) => {
defaultDiffConst: {
type: 'number',
default: 0.000006,
title: 'Nutrient Diffusivity (cm^2/s)'
title: 'Nutrient Diffusivity (cm²/s)'
},
defaultVMax: {
type: 'number',
Expand Down Expand Up @@ -189,7 +189,7 @@ const getSchema = (metaboliteType: MetaboliteType | null) => {
},
{
type: 'Control',
scope: '#/properties/globalParams'
scope: '#/properties/globalParams/'
}
]
};
Expand Down

0 comments on commit 1b444d8

Please sign in to comment.