Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Week6 - Fix bugs in average squares #138

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9e16337
Add skeleton of earthquakes solution
ageorgou Oct 23, 2020
e1194cc
create plots
kinianlo Oct 29, 2020
3cb8304
add bar for tick centering
kinianlo Oct 31, 2020
cdd65ce
Merge commit '9e1633747457d2168c0064433960de150d451bdf' into main
kinianlo Oct 31, 2020
31eca3d
add times Answers UCL-RITS/rse-classwork-2020#61
kinianlo Oct 31, 2020
c8ce7cd
Add test for times UCL-RITS/rse-classwork-2020#61
kinianlo Nov 1, 2020
86c3261
Add more tests
kinianlo Nov 9, 2020
9884d30
init travis CI
kinianlo Nov 9, 2020
a97001a
fix requirments.txt
kinianlo Nov 9, 2020
456f93f
remove python2.7 from .travis.yml
kinianlo Nov 9, 2020
3207e63
fix requiements
kinianlo Nov 9, 2020
d28de57
update pytest version in requirements.txt
kinianlo Nov 9, 2020
2f3ce2b
update requirements
kinianlo Nov 9, 2020
b6dc388
fix bugs
kinianlo Nov 9, 2020
3c4ee5e
empty requirements.txt
kinianlo Nov 9, 2020
d4e8023
add travis CI status to README
kinianlo Nov 9, 2020
17e9cc9
change status icon to week5 branch
kinianlo Nov 9, 2020
0827a24
update .traivs.yml to include coverage
kinianlo Nov 9, 2020
296435f
add codecov
kinianlo Nov 9, 2020
df84938
fix travis yaml
kinianlo Nov 9, 2020
79dfe29
fix tarvis yaml
kinianlo Nov 9, 2020
eb88676
fix testing bugs
kinianlo Nov 9, 2020
fddf219
Merge commit 'eb886763794cde62eb794e827c815900011b32ac' into testing
kinianlo Nov 9, 2020
6009d1a
Merge branch 'testing' into main
kinianlo Nov 9, 2020
abd688c
change travis badge to main
kinianlo Nov 9, 2020
607f860
delete requirements_conda.txt
kinianlo Nov 9, 2020
90483e1
add codecov badge
kinianlo Nov 9, 2020
9ed24ad
Code and structure for week06 docs exercises
HChughtai Nov 10, 2020
8423020
add gitignore
kinianlo Nov 10, 2020
65870ad
update gitignore
kinianlo Nov 10, 2020
a2e3db0
add iss passes
kinianlo Nov 10, 2020
a86c1f7
remove python 2.7 from travis
kinianlo Nov 10, 2020
b3dbde3
update fixture
kinianlo Nov 19, 2020
492f123
Merge commit '9ed24ad70267877f4e851de7080e6eb3941a17e2' into main
kinianlo Nov 19, 2020
3f813dc
fix doctest bugs
kinianlo Nov 19, 2020
cdafac6
Add docs
kinianlo Nov 19, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cache/v/cache/lastfailed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Binary file added .coverage
Binary file not shown.
142 changes: 142 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

.idea/
week05-testing/__pycache__/test_times.cpython-37-pytest-6.1.1.pyc
week05-testing/__pycache__/times.cpython-37.pyc
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: python
python:
- 3.6
- 3.7
- 3.8
install:
- pip install -r requirements.txt
script:
- pytest --cov="week05-testing" --cov-report=term
- pytest week05-testing/
after_success:
- codecov # submit coverage
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
}
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# rse-classwork-2020
[![Build Status](https://travis-ci.com/kinianlo/rse-classwork-2020.svg?branch=main)](https://travis-ci.com/kinianlo/rse-classwork-2020)
[![codecov](https://codecov.io/gh/kinianlo/rse-classwork-2020/branch/main/graph/badge.svg?token=S1TNP89E2Z)](https://codecov.io/gh/kinianlo/rse-classwork-2020)

We will use this repository to follow up and review all the exercises done in class for the
[MPHY0021: Research Software Engineering With Python course](http://github-pages.ucl.ac.uk/rsd-engineeringcourse/).
47 changes: 47 additions & 0 deletions coverage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" ?>
<coverage branch-rate="0" branches-covered="0" branches-valid="0" complexity="0" line-rate="0.8929" lines-covered="25" lines-valid="28" timestamp="1604962369942" version="5.3">
<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
<source>/home/kin/ucl/MRes/python_course/rse-classwork-2020</source>
</sources>
<packages>
<package branch-rate="0" complexity="0" line-rate="0.8929" name="week05-testing">
<classes>
<class branch-rate="0" complexity="0" filename="week05-testing/times.py" line-rate="0.8929" name="times.py">
<methods/>
<lines>
<line hits="1" number="1"/>
<line hits="1" number="4"/>
<line hits="1" number="5"/>
<line hits="1" number="6"/>
<line hits="1" number="8"/>
<line hits="1" number="9"/>
<line hits="1" number="11"/>
<line hits="1" number="12"/>
<line hits="1" number="15"/>
<line hits="1" number="18"/>
<line hits="1" number="19"/>
<line hits="1" number="20"/>
<line hits="1" number="21"/>
<line hits="1" number="22"/>
<line hits="1" number="23"/>
<line hits="1" number="24"/>
<line hits="1" number="25"/>
<line hits="1" number="26"/>
<line hits="1" number="27"/>
<line hits="1" number="28"/>
<line hits="1" number="29"/>
<line hits="1" number="30"/>
<line hits="1" number="31"/>
<line hits="1" number="32"/>
<line hits="1" number="34"/>
<line hits="0" number="35"/>
<line hits="0" number="36"/>
<line hits="0" number="37"/>
</lines>
</class>
</classes>
</package>
</packages>
</coverage>
Loading