moleculemaker / digital-molecule-maker

Digital Molecule Maker web application for the Molecule Maker Lab Institute
MIT License
1 stars 0 forks source link

Precomputation (3/4) #166

Closed GalMunGral closed 7 months ago

GalMunGral commented 7 months ago

Precompute lookup tables for chemical properties. See src/assets/blocks/10x10x10palette/data.json and src/assets/blocks/opv/data.json for the output formats. E.g. "5:0:2" represents start block 5 + no middle block + end block 2. The JSON is mostly designed to be consumed by the frontend:

GalMunGral commented 7 months ago

LGTM 👍 Works as advertised! Thank you, @GalMunGral!

If these scripts run very quickly, we also have a Backend Python API if we want to turn any of these Python scripts into API endpoints that the frontend can call at runtime 😄

Thanks! I think eventually some of this (including the code on the frontend that's doing the lookups) will go to the backend.