You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the enhance-schema branch I am working on generalizing the schema such that it supports different data types. This will of course also include potential data. Once this work has been finished, different aspects of the platform need to be updated to be able to work with the potential data.
Move the data selection page from scat-cs to a more general path, e.g. data. This is also a great opportunity to port this page from pages to the new app directory.
Add the option for the user to select the type of data they are interested in (e.g. cross section, potential, or rate coefficient). The user should be able to select multiple data types, perhaps a MultiSelect component would be most suitable.
The relevant API routes need to be updated to support this extra parameter. They can be found at app/src/pages/api/reactions.
An extra API route needs to be added for the additional parameters, e.g. /api/data_type.
Make sure to update the preloaded SWR cache. This is done by updating the generateCachePairs function located in app/src/pages/scat-cs/index.tsx.
Different types of plots/representations need to be added for the different types of data, this can for example be done using a Tabs component. Note that additionally to table-based data, we now also need to support a host of model potentials. It would be nice to both show the equation for the model potential, the provided model parameters, and a plot of the evaluated expression.
Integration of MagnumPI. It would be nice to host some tools that can consume the potential data, similar to the Boltzmann solvers for cross section data. MagnumPI is an open-source potential integrator that allows the user to compute e.g. elastic cross sections based on a provided potential. It is written in C++, but already provides a WebAssembly build.
Think of the best way to serve WebAssembly tools as part of LXCat. Preferably, different tools should act as plugins that can be enabled and disabled (this would probably require more work regarding input/output schemas and automatic creation of interfaces, but this is a nice start).
Update MagnumPI to support the latest version of the potential schemas.
Integrate MagnumPI and build the web interface (input form and plots). This page can be similar to the BOLSIG+ page, see app/src/app/scat-cs/compute/page.tsx.
Currently, the compute page immediately navigates to the BOLSIG+ interface, it makes sense to provide an intermediate stage where the user can select the tool they want to use. This can be done in multiple ways, e.g. by providing the selection interface on the inspect page, by providing an intermediate page that provides a tool selection interface, or by updating the compute page to supply the different tools (e.g. using tabs or a sidebar).
The text was updated successfully, but these errors were encountered:
In the enhance-schema branch I am working on generalizing the schema such that it supports different data types. This will of course also include potential data. Once this work has been finished, different aspects of the platform need to be updated to be able to work with the potential data.
The main data selection page needs to be updated: app/src/pages/scat-cs/index.tsx.
scat-cs
to a more general path, e.g.data
. This is also a great opportunity to port this page frompages
to the newapp
directory.MultiSelect
component would be most suitable./api/data_type
.generateCachePairs
function located in app/src/pages/scat-cs/index.tsx.The data inspection page needs to be updated: app/src/app/scat-cs/bag/page.tsx.
Tabs
component. Note that additionally to table-based data, we now also need to support a host of model potentials. It would be nice to both show the equation for the model potential, the provided model parameters, and a plot of the evaluated expression.Integration of MagnumPI. It would be nice to host some tools that can consume the potential data, similar to the Boltzmann solvers for cross section data. MagnumPI is an open-source potential integrator that allows the user to compute e.g. elastic cross sections based on a provided potential. It is written in C++, but already provides a WebAssembly build.
The data compute page needs to be updated: app/src/app/scat-cs/compute/page.tsx
The text was updated successfully, but these errors were encountered: