Skip to content

Commit ce23499

Browse files
authored
Merge pull request #13 from CardiacModelling/readme-and-gitignore
Readme and gitignore
2 parents fa9aed4 + 38c9434 commit ce23499

File tree

5 files changed

+34
-119
lines changed

5 files changed

+34
-119
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/pytest.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,40 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
python-version: [3.7 ,3.8, 3.9, '3.10', 3.11]
9+
python-version: [3.8, 3.9, '3.10', 3.11, 3.12, 3.13]
1010
steps:
11-
- name: Checkout repository and submodules
11+
- name: Checkout repository
1212
uses: actions/checkout@v4
13-
with:
14-
submodules: recursive
15-
- name: Checkout github repo (+ download lfs dependencies)
16-
uses: actions/checkout@v4
17-
with:
18-
lfs: true
19-
- name: Checkout LFS objects
20-
run: git lfs checkout
2113

2214
- name: Set up Python ${{ matrix.python-version }}
2315
uses: actions/setup-python@v5
2416
with:
2517
python-version: ${{ matrix.python-version }}
18+
2619
- name: Install dependencies
2720
run: |
28-
python -m pip install --upgrade pip
2921
python -m pip install .[test]
22+
23+
- name: Lint with flake8
24+
run: |
25+
python -m flake8 syncropatch_export/*.py tests/*.py
26+
27+
- name: Import sorting with isort
28+
run: |
29+
python -m isort --verbose --check-only --diff syncropatch_export tests setup.py
30+
3031
- name: Download and extract test data
3132
run: |
3233
wget https://cardiac.nottingham.ac.uk/syncropatch_export/test_data.tar.xz -P tests/
3334
tar xvf tests/test_data.tar.xz -C tests/
35+
3436
- name: Test with pytest
3537
run: |
3638
python -m pip install -e .
3739
python -m pytest --cov --cov-config=.coveragerc
40+
3841
- uses: codecov/codecov-action@v4
3942
with:
4043
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
41-
- name: Lint with flake8
42-
run: |
43-
python -m flake8 syncropatch_export/*.py tests/*.py
44-
- name: Import sorting with isort
45-
run: |
46-
python -m isort --verbose --check-only --diff syncropatch_export tests setup.py
44+
if: matrix.python-version == 3.13
45+

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/tests/test_data
2-
*.pyc
3-
*.DS_Store
4-
*__pycache__*
5-
*.egg_info
2+
/test_output
63
*__pycache__*
4+
*.egg-info
5+
*.DS_Store

README.md

Lines changed: 15 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
1-
2-
<!-- Improved compatibility of back to top link: See: https://github.com/othneildrew/Best-README-Template/pull/73 -->
3-
<a name="readme-top"></a>
4-
5-
<!-- PROJECT SHIELDS -->
61
[![Unit tests](https://github.com/CardiacModelling/syncropatch_export/actions/workflows/pytest.yml/badge.svg)](https://github.com//CardiacModelling/syncropatch_export/actions/workflows/pytest.yml)
72
[![codecov](https://codecov.io/gh/CardiacModelling/syncropatch_export/graph/badge.svg?token=HOL0FrpGqs)](https://codecov.io/gh/CardiacModelling/syncropatch_export)
83

9-
10-
<!-- PROJECT LOGO -->
11-
<!-- <br /> -->
12-
<!-- <div align="center"> -->
13-
<!-- <img src="images/logo.png" alt="Logo" width="80" height="80"> -->
14-
<!-- </a> -->
15-
16-
17-
<!-- TABLE OF CONTENTS -->
184
<details>
195
<summary>Table of Contents</summary>
206
<ol>
@@ -40,119 +26,51 @@
4026
</ol>
4127
</details>
4228

29+
This repository contains a python package and scripts for processing data outputted from Nanion SynroPatch 384.
30+
With this package you can export each sweep of each protocol for each well as individual files (.csv).
31+
Meta-data describing the protocol, and variables such as membrance capacitance (Cm), Rseries and Rseal can be exported.
4332

44-
<!-- ABOUT THE PROJECT -->
45-
## About The Project
46-
This project contains a python package and scripts for processing data outputted from Nanion SynroPatch 384. With this package you can export each sweep of each protocol for each well as individual files (.csv).
47-
Meta-data describing the protocol, and variables such as membrance capacitance (Cm), Rseries and Rseal can be exported also.
48-
<p align="right">(<a href="#readme-top">back to top</a>)</p>
33+
This package is tested on Ubuntu with Python 3.8, 3.9, 3.10, 3.11, 3.12, and 3.13.
4934

50-
51-
<!-- GETTING STARTED -->
5235
## Getting Started
5336

54-
This is an example of how you may give instructions on setting up your project locally.
55-
To get a local copy up and running follow these simple example steps.
56-
57-
### Prerequisites
58-
59-
This package has been tested on Ubuntu with Python 3.7, 3.8, 3.9, 3.10 and 3.11.
60-
61-
### Installation
62-
6337
First clone this repository
6438

65-
```
66-
git clone [email protected]:CardiacModelling/syncropatch_export && cd syncropatch_export
39+
```sh
40+
git clone [email protected]:CardiacModelling/syncropatch_export
41+
cd syncropatch_export
6742
```
6843

69-
With one of these versions install, create and activate a virtual environment.
44+
Create and activate a virtual environment.
7045

71-
```sh
72-
python3 -m venv .venv && source .venv/bin/activate
73-
```
46+
```sh
47+
python3 -m venv .venv && source .venv/bin/activate
48+
```
7449

7550
Then install the package with `pip`.
7651

7752
```
7853
python3 -m pip install --upgrade pip && python3 -m pip install -e .'[test]'
7954
```
8055

81-
To run the tests you must first download some test data. Test data is available at [cardiac.nottingham.ac.uk/syncropatch\_export](https://cardiac.nottingham.ac.uk/syncropatch_export)
56+
To run the tests you must first download some test data.
57+
Test data is available at [cardiac.nottingham.ac.uk/syncropatch\_export](https://cardiac.nottingham.ac.uk/syncropatch_export)
8258

8359
```
8460
wget https://cardiac.nottingham.ac.uk/syncropatch_export/test_data.tar.xz -P tests/
8561
tar xvf tests/test_data.tar.xz -C tests/
62+
rm tests/test_data.tar.xz
8663
```
8764

8865
Then you can run the tests.
8966
```
9067
python3 -m unittest
9168
```
9269

93-
<!-- CONTRIBUTING -->
94-
## Contributing
95-
96-
Any contributions you make are **greatly appreciated**.
97-
98-
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
99-
100-
1. Fork the Project
101-
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
102-
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
103-
4. Push to the Branch (`git push origin feature/AmazingFeature`)
104-
5. Open a Pull Request
105-
106-
<p align="right">(<a href="#readme-top">back to top</a>)</p>
107-
108-
<!-- LICENSE -->
10970
## License
11071

111-
<p align="right">(<a href="#readme-top">back to top</a>)</p>
112-
72+
At the moment this is a private repo
11373

114-
115-
<!-- CONTACT -->
11674
## Contact
11775

11876
Joseph Shuttleworth [email protected]
119-
120-
Project Link: [https://github.com/CardiacModelling/syncropatch\_export](https://github.com/CardiacModelling/syncropatch_export)
121-
122-
<p align="right">(<a href="#readme-top">back to top</a>)</p>
123-
124-
<p align="right">(<a href="#readme-top">back to top</a>)</p>
125-
126-
127-
128-
<!-- MARKDOWN LINKS & IMAGES -->
129-
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
130-
[contributors-shield]: https://img.shields.io/github/contributors/CardiacModelling/syncropatch_export.svg?style=for-the-badge
131-
[contributors-url]: https://github.com/CardiacModelling/syncropatch_export/graphs/contributors
132-
[forks-shield]: https://img.shields.io/github/forks/CardiacModelling/syncropatch_export.svg?style=for-the-badge
133-
[forks-url]: https://github.com/CardiacModelling/syncropatch_export/network/members
134-
[stars-shield]: https://img.shields.io/github/stars/CardiacModelling/syncropatch_export.svg?style=for-the-badge
135-
[stars-url]: https://github.com/CardiacModelling/syncropatch_export/stargazers
136-
[issues-shield]: https://img.shields.io/github/issues/CardiacModelling/syncropatch_export.svg?style=for-the-badge
137-
[issues-url]: https://github.com/CardiacModelling/syncropatch_export/issues
138-
[license-shield]: https://img.shields.io/github/license/Cardiac/Modelling/syncropatch_export.svg?style=for-the-badge
139-
[license-url]: https://github.com/CardiacModelling/syncropatch_export/blob/master/LICENSE.txt
140-
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
141-
[linkedin-url]: https://linkedin.com/in/linkedin_username
142-
[product-screenshot]: images/screenshot.png
143-
[Next.js]: https://img.shields.io/badge/next.js-000000?style=for-the-badge&logo=nextdotjs&logoColor=white
144-
[Next-url]: https://nextjs.org/
145-
[React.js]: https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB
146-
[React-url]: https://reactjs.org/
147-
[Vue.js]: https://img.shields.io/badge/Vue.js-35495E?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D
148-
[Vue-url]: https://vuejs.org/
149-
[Angular.io]: https://img.shields.io/badge/Angular-DD0031?style=for-the-badge&logo=angular&logoColor=white
150-
[Angular-url]: https://angular.io/
151-
[Svelte.dev]: https://img.shields.io/badge/Svelte-4A4A55?style=for-the-badge&logo=svelte&logoColor=FF3E00
152-
[Svelte-url]: https://svelte.dev/
153-
[Laravel.com]: https://img.shields.io/badge/Laravel-FF2D20?style=for-the-badge&logo=laravel&logoColor=white
154-
[Laravel-url]: https://laravel.com
155-
[Bootstrap.com]: https://img.shields.io/badge/Bootstrap-563D7C?style=for-the-badge&logo=bootstrap&logoColor=white
156-
[Bootstrap-url]: https://getbootstrap.com
157-
[JQuery.com]: https://img.shields.io/badge/jQuery-0769AD?style=for-the-badge&logo=jquery&logoColor=white
158-
[JQuery-url]: https://jquery.com
-34.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)