-
Notifications
You must be signed in to change notification settings - Fork 29
Update to Python=3.9 and update Django #298
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
base: main
Are you sure you want to change the base?
Conversation
|
Roel has very kindly released a binary of |
|
To-fix:
|
|
Unrelated note, but the entryEdit functionality seems kind of suspicious and maybe we shouldn't allow users to actually use those (I don't think anyone is, and they don't even work on the main site.) We may want to just remove it. |
|
Some Solute (tdep, soluteML) functionalities may be present in SolProp and thereby maybe we don't need chemprop_solvation. |
- update descriptastorus old pin (was causing issues/outdated) - update solprop mix to new repo - add cantera pin because of weird glitch?
|
This will almost be ready. It looks like the new environment is working fine now. |
|
The main remaining issue is that using reference solubility data is not yet available. Here is my correspondence w/ Simona:
In the meantime, I think a link/header to fastsolv will instead be better. |
Note, reference solubility data is not yet available. This will require changes to SolProp
Solprop still has some issues so fastsolv might be a good alternative in the interim. Also we just recommend it because it's a good model.
|
This PR is now ready for review. If you want to toy around with it, it's active on the dev site: https://rmg.mit.edu:888/ There's a quirk to the installation process. Sometimes a pip version of Please let me know if you have any questions or want to chat about any of this |
|
I've confirmed that SoluteML is returning unphysical values in the current development version. This is the same issue described in fhvermei/chemprop_solvation#3, caused by changes in newer What issues did keeping the older pin of |
|
Old versions of descriptastorus use This renders the website inoperable. So we need to use a more recent version of descriptastorus. Maybe 2.5.1 will work? I'll give it a try... |
|
Another option could be to not use This would require some changes to the code though. |
We observed non-physical SoluteML values due presumably to a new version of descripastorus. However, old versions use the old name of "gilbrat" instead of "gibrat", a name that was removed in scipy 1.11.0. And at the same time RMG requires scipy >=1.9.0 for MILP functionality.
|
Testing other versions of
I see we can get descripastorus=2.5.0 by pinning the scipy version (which isn't a tenable long-term solution, but the env can at least be solved.) Unfortunately, it looks like this still results in non-physical answers. Even trying |
SoluteML package seems busted. We might need to rely on the newly retrained version instead.
The new soluteML version code can process a batch of inputs, so the code is rewritten to accommodate this.
Gsolv model was called instead of Hsolv
This PR seeks to update
RMG-websiteto be compatible with Python 3.9 so that it can leverage the newest version ofRMG-Pyand other packages.To do this, a number of things need to be updated simultaneously (avoid dependency hell):
solpropusing the py3.9 compatible version, or turn it into an API service so that it can be queried separately. Updatingsolpropwould for now be the most straightforward option. Although an API service would be the best solution technologically, it would take the most technical load to learn and implement sustainably. Another way is to call it via a subprocess in its own separatecondaordockerenvironment, which would also require some rewriting of the backend. Key concern is whether it's fast enough. In the future, probably we want to move toward one of the two latter options, especially if we want to deploy more ML models on the site.There's also an opportunity to make the
condaenvironment leaner (which should make solving for it more straightforward in general).