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

Prefill components from url ? #203

Open
erwanp opened this issue Jan 17, 2021 · 9 comments
Open

Prefill components from url ? #203

erwanp opened this issue Jan 17, 2021 · 9 comments
Labels
🚀 enhancement New feature or request

Comments

@erwanp
Copy link
Collaborator

erwanp commented Jan 17, 2021

Do you think something like https://www.radis.app/?molecule=CO&Tgas=500, that would prefill the molecule component with CO, and the gas temperature with 500 K, is doable ? I'm thinking of how it could be used to "share" spectra.

@erwanp erwanp changed the title Prefill components from url Prefill components from url ? Jan 17, 2021
@erwanp
Copy link
Collaborator Author

erwanp commented Apr 6, 2021

Hello @suzil , I thought about doing this today to share a spectrum with another researcher. Do you think it's doable ? I could ask on the Radis Slack for help to implement it !

@erwanp erwanp added the 🚀 enhancement New feature or request label Apr 6, 2021
@suzil
Copy link
Collaborator

suzil commented Apr 7, 2021

I did a small experiment yesterday to see how it could work with specifying the molecule in the URL and having that populate the form. So it works! I need to figure out now how to integrate it with the existing code, also with validation.

@erwanp
Copy link
Collaborator Author

erwanp commented Apr 7, 2021

Amazing ! Then it actually becomes an App, where you can share your spectra ! Use case was with @minouHub :

"which spectral region should I be looking at ? "
"- well, for CO2, this spectral region is particularly interesting, see here : https://radis.app?molecule=CO2&wavenumber_min=2000&wavenumber_max=2300&Tgas=300"

@suzil
Copy link
Collaborator

suzil commented Apr 10, 2021

Screen Shot 2021-04-10 at 10 59 19 AM

Making some progress on this! (Some of the UI is temporarily commented-out as I'm migrating to saving the form state in the URL.)

@erwanp
Copy link
Collaborator Author

erwanp commented Apr 10, 2021

Great, this will be super useful ! @minouHub, have a look !

@minouHub
Copy link
Collaborator

that's super nice wow

@erwanp
Copy link
Collaborator Author

erwanp commented Aug 2, 2022

@suzil @arunavabasu-03 is this still doable after #347?

@erwanp
Copy link
Collaborator Author

erwanp commented Oct 18, 2022

@arunavabasu-03 if you think this is doable, it would be a great addition to Share spectra . I just encountered a new use-case few minutes ago

@arunavabasucom
Copy link
Owner

Ok @erwanp !! Great reminder , i gonna do that 😀 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants