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

Julia calibrate initial UI refactor #2364

Merged
merged 11 commits into from
Dec 7, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,13 @@ header {
.output-dropdown:deep(.pi) {
font-size: var(--font-body-small);
}

main {
display: flex;
flex-direction: column;
flex-grow: 1;
overflow-y: auto;
gap: 1.5rem;
padding: 1.5rem 1.5rem 1.5rem 1rem;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ export const setupModelInput = async (modelConfigId: string | undefined) => {
const modelConfiguration: ModelConfiguration = await getModelConfigurationById(modelConfigId);
// modelColumnNames.value = modelConfig.value.configuration.model.states.map((state) => state.name);
const modelColumnNameOptions: string[] = modelConfiguration.configuration.model.states.map(
(state) => state.id
(state) => state.id.trim()
);

// add observables
if (modelConfiguration.configuration.semantics?.ode?.observables) {
modelConfiguration.configuration.semantics.ode.observables.forEach((o) => {
modelColumnNameOptions.push(o.id);
modelColumnNameOptions.push(o.id.trim());
});
}

Expand All @@ -41,6 +41,11 @@ export const setupDatasetInput = async (datasetId: string | undefined) => {
// We are assuming here there is only a single csv file. This may change in the future as the API allows for it.
const csv = (await downloadRawFile(datasetId, filename, limit)) as CsvAsset;
// datasetValue.value = csvAsset.value?.csv.map((row) => row.join(',')).join('\n');

if (csv?.headers) {
csv.headers = csv.headers.map((header) => header.trim());
}

return { filename, csv };
}
return {};
Expand Down
Loading