delocalizer / tutorial Goto Github PK
View Code? Open in Web Editor NEWThis project forked from scientific-software-reviewers/tutorial
Code review tutorial exercises
License: MIT License
This project forked from scientific-software-reviewers/tutorial
Code review tutorial exercises
License: MIT License
A python script vowel_counter.py
is supposed to print out the number of vowels and consonants in a string.
Several users have reported problems, and one user has put in a pull request to improve the script.
User reports:
Only vowels are getting printed out! This script is not working
This script is printing the number of consonants.
Why is `vowel_counter.py` even printing out the number of consonants?
Take a look at the python script vowel_counter.py
Take a look at the pull request.
A lab group is using a python script to calculate the number of hour-long
experiments between an initial and final time.
Some background: The goal is to run the NSF NCAR space weather model
TIEGCM and stop every
hour to update the model using observations.
Each experiment uses observations from +/- 30 minutes from when the model
is stopped. This +/- 30 minutes is known as the experiment window.
The class time_window.py is the initialized
with the start time, the final time, and the delta (the duration of a single
experiment). From these input the number of experiments needed, and the start
and stop for both the model and the window are calculated.
The script run_test.py provided by the lab group
can be used to demonstrate the bug: run_test.py initializes the class and prints
the window and model times.
The issue: For one set of experiments, the delta was accidentally entered
as negative. The number of windows was calculated correctly, but the times
for each of the windows were incorrect.
The lab group want to add some error checking to the python script to prevent
this error happening again.
Take a look at time_window.py:
Take a look at the pull request:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.