wrench-project / eduwrench

eduWRENCH Pedagogic Modules - Parallel and Distributed Computing Courseware
https://eduwrench.org
GNU General Public License v3.0
6 stars 3 forks source link

Dynamic image label bug in MultiCore::DataParallelism #44

Closed henricasanova closed 3 years ago

henricasanova commented 4 years ago

Some code refactoring in multi_core_data_parallelism.js was done to improve code modularity, namely, the use of function validateFieldInRange(). But for the #mcdp-oil-radius field, it has introduced a bug. When that field changes, x, the label in the image should be set to x, but to 100 * x^2. This can be fixed by passing a lambda to validateFieldInRange() for transforming the value, for instance?