Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • fsl/pytreat-practicals-2020
  • mchiew/pytreat-practicals-2020
  • ndcn0236/pytreat-practicals-2020
  • nichols/pytreat-practicals-2020
4 results
Show changes
Showing
with 5015 additions and 422 deletions
The example_project library
Copyright 2016-2020 University of Oxford, Oxford, UK.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Example project
===============
This is an example project, used to demonstrate the basics of how to structure
a Python project.
#!/usr/bin/env python
__version__ = '0.1.0'
# make myfunction available
# at the package-level
from .mymodule import myfunction
#!/usr/bin/env python
def myfunction(a, b):
return a * b
numpy==1.*
Advanced Python
===============
This directory contains a collection of practicals, each of which covers a
particular feature of the Python programming language. They are intended for
people who are familiar with the basics of Python, and want to learn about
some of the more advanced features of the language.
Practicals on the following topics are available. They can be viewed in any
order, but we recommend going through them in this order:
1. Function inputs and outputs
2. Modules and packages
3. Object-oriented programming
4. Operator overloading
5. Context managers
6. Decorators
7. Threading and parallel processing
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.