Skip to content

Conversation

ecsmyth
Copy link
Collaborator

@ecsmyth ecsmyth commented Mar 27, 2020

All changes in ./src/penn_chime/
Fixes for issue 269

  • presentation.py Updated min value and step for most number inputs.
  • presentation.py Updated format for float inputs to display as float instead of as int.
  • defaults.py Change Constants type for doubling_time and relative_contact_rate from int to float
  • settings.pyChange default doubling_time from int to float

Cleanup

  • Removed unused imports in presentation.py

Fixes #269

Eric Smyth added 3 commits March 26, 2020 23:01
* Updated min value and step for most number inputs.
* Updated format for float inputs to display as float instead of as int.
Cleanup
* Removed unused imports
@jlubken
Copy link
Collaborator

jlubken commented Mar 27, 2020

This looks good. I really like the float inputs. doubling_time float is useful.

I assume we're stuck with the less useful +/- steps for some of the controls, and there might not be a way to suppress the +/- buttons.

I don't know what cypress is doing, otherwise I'd approve.

@jlubken
Copy link
Collaborator

jlubken commented Mar 27, 2020

Ops says that all cypress tests are failing right now, so the PR isn't breaking anything that we can tell.

@ecsmyth
Copy link
Collaborator Author

ecsmyth commented Mar 27, 2020

I haven't looked into the +/- controls. I'll do that today.

Cypress is failing since the step for regional population changed the post-click value isn't what is expected. I'll fix that today, too.

@ecsmyth
Copy link
Collaborator Author

ecsmyth commented Mar 27, 2020

PR now also Fixes #286, and #287

@jlubken jlubken changed the title WIP: Updates to number input step, min val, and types Updates to number input step, min val, and types Mar 27, 2020
@jlubken jlubken merged commit 62ffe34 into develop Mar 27, 2020
@jlubken jlubken deleted the issue_269 branch March 27, 2020 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

["bug"] Market share no longer divided by 100 before creating Parameters object ["bug"] Improve Dockerfile layer caching Fix hover text in inputs
2 participants