Update dependencies and improve Python path handling
Updated several frontend dependencies including MUI packages and added new ones like `@mui/x-charts`. Adjusted the Python path setup in the CI configuration to correctly point to the `aaredb` backend, ensuring accurate module resolution.
This commit is contained in:
@ -186,7 +186,7 @@ const ResultGrid: React.FC<ResultGridProps> = ({ activePgroup }) => {
|
|||||||
|
|
||||||
setBasePath(`${OpenAPI.BASE}/`);
|
setBasePath(`${OpenAPI.BASE}/`);
|
||||||
|
|
||||||
SamplesService.getSampleResultsSamplesResultsGet(activePgroup)
|
SamplesService.getSampleResults(activePgroup)
|
||||||
.then((response: SampleResult[]) => {
|
.then((response: SampleResult[]) => {
|
||||||
const treeRows: TreeRow[] = [];
|
const treeRows: TreeRow[] = [];
|
||||||
|
|
||||||
|
@ -69,10 +69,11 @@ const RunDetails: React.FC<RunDetailsProps> = ({ run, onHeightChange, basePath,
|
|||||||
|
|
||||||
const fetchResults = async (sample_id: number, runId: number) => {
|
const fetchResults = async (sample_id: number, runId: number) => {
|
||||||
try {
|
try {
|
||||||
const results = await SamplesService.getResultsForRunAndSampleSamplesProcessingResultsSampleIdRunIdGet(sample_id, runId);
|
const results = await SamplesService.getResultsForRunAndSample(sample_id, runId);
|
||||||
|
|
||||||
// Explicitly handle nested results
|
// Explicitly handle nested results
|
||||||
const mappedResults: ProcessingResults[] = results.map((res): ProcessingResults => ({
|
const mappedResults: ProcessingResults[] = results.map((res): ProcessingResults => ({
|
||||||
|
id: res.id,
|
||||||
pipeline: res.result?.pipeline || 'N/A',
|
pipeline: res.result?.pipeline || 'N/A',
|
||||||
resolution: res.result.resolution ?? 0,
|
resolution: res.result.resolution ?? 0,
|
||||||
unit_cell: res.result?.unit_cell || 'N/A',
|
unit_cell: res.result?.unit_cell || 'N/A',
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
{
|
{
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2025-03-17T20:57:43.884083Z",
|
"end_time": "2025-03-19T11:01:53.035111Z",
|
||||||
"start_time": "2025-03-17T20:57:43.366257Z"
|
"start_time": "2025-03-19T11:01:52.510182Z"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
@ -699,7 +699,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
" try:\n",
|
" try:\n",
|
||||||
" # Call the endpoint. The endpoint path expects the sample_id.\n",
|
" # Call the endpoint. The endpoint path expects the sample_id.\n",
|
||||||
" api_response = api_instance.create_experiment_parameters_for_sample_samples_samples_sample_id_experiment_parameters_post(\n",
|
" api_response = api_instance.create_experiment_parameters_for_sample(\n",
|
||||||
" sample_id=experiment_params_payload.sample_id,\n",
|
" sample_id=experiment_params_payload.sample_id,\n",
|
||||||
" experiment_parameters_create=experiment_params_payload\n",
|
" experiment_parameters_create=experiment_params_payload\n",
|
||||||
")\n",
|
")\n",
|
||||||
@ -807,7 +807,7 @@
|
|||||||
" api_instance = aareDBclient.SamplesApi(api_client)\n",
|
" api_instance = aareDBclient.SamplesApi(api_client)\n",
|
||||||
"\n",
|
"\n",
|
||||||
" try:\n",
|
" try:\n",
|
||||||
" api_response = api_instance.create_result_samples_processing_results_post(\n",
|
" api_response = api_instance.create_result(\n",
|
||||||
" result_create=payload_dict\n",
|
" result_create=payload_dict\n",
|
||||||
" )\n",
|
" )\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
Reference in New Issue
Block a user