Skip to content

Commit 292504e

Browse files
authored
Merge pull request #85 from VERITAS-Observatory/add-towncrier
Add towncrier and changelog.
2 parents ffbce92 + 90a29d4 commit 292504e

File tree

6 files changed

+50
-16
lines changed

6 files changed

+50
-16
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
repos:
22
# https://pycqa.github.io/isort/docs/configuration/black_compatibility.html#integration-with-pre-commit
33
- repo: https://github.com/pycqa/isort
4-
rev: 5.13.2
4+
rev: 7.0.0
55
hooks:
66
- id: isort
77
args: ["--profile", "black", "--filter-files"]
88
- repo: https://github.com/psf/black
9-
rev: 24.10.0
9+
rev: 25.12.0
1010
hooks:
1111
- id: black
1212
args: ["--line-length=100"]
1313
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html?highlight=other%20tools#flake8
1414
- repo: https://github.com/PyCQA/flake8
15-
rev: 7.1.1
15+
rev: 7.3.0
1616
hooks:
1717
- id: flake8
1818
args: ["--max-line-length=100", "--extend-ignore=E203,E712"]
1919
# https://github.com/pre-commit/pre-commit-hooks
2020
- repo: https://github.com/pre-commit/pre-commit-hooks
21-
rev: v5.0.0
21+
rev: v6.0.0
2222
hooks:
2323
- id: trailing-whitespace
2424
- id: end-of-file-fixer
2525
- id: check-executables-have-shebangs
2626
- id: check-shebang-scripts-are-executable
2727
# codespell
2828
- repo: https://github.com/codespell-project/codespell
29-
rev: v2.3.0
29+
rev: v2.4.1
3030
hooks:
3131
- id: codespell
3232
args: [

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CHANGELOG
2+
3+
All notable changes to the Eventdisplay_AnalysisFiles_VTS/ project will be documented in this file.
4+
Changes for upcoming releases can be found in the [docs/changes](docs/changes) directory.
5+
Note that changes before release v492.0 are not documented here, but can be found in the
6+
[GitHub repository](https://github.com/VERITAS-Observatory/Eventdisplay_AnalysisFiles_VTS/releases).
7+
8+
This changelog is generated using [Towncrier](https://towncrier.readthedocs.io/).
9+
10+
<!-- towncrier release notes start -->

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The version of Eventdisplay for this repository can be found in the files [IRFVE
99

1010
The analysis requires additional IRF files (lookup tables, gamma-hadron BDT trees, etc) which are too big for this repository. These files are available through the UCLA archive or direct download from DESY disks (restricted access).
1111

12-
To download and unpack the IRFs from the UCLA archive, run in the Eventdisplay\_AnalysisFiles directory:
12+
To download and unpack the IRFs from the UCLA archive, run in the Eventdisplay\_AnalysisFiles\_VTS directory:
1313

1414
```bash
1515
./download_irfs.sh transfer/file_list_V6.dat
@@ -18,11 +18,11 @@ To download and unpack the IRFs from the UCLA archive, run in the Eventdisplay\_
1818

1919
Total download size is about 190 GBytes.
2020

21-
Further information on this release see the [Eventdisplay v491 release page](https://github.com/VERITAS-Observatory/EventDisplay_Release_v491/blob/main/README.md) (restricted access).
21+
For further information on this release, see the [Eventdisplay v491 release page](https://github.com/VERITAS-Observatory/EventDisplay_Release_v491/blob/main/README.md) (restricted access).
2222

2323
Following directories and files are available:
2424

25-
Parameter Files
25+
ParameterFiles:
2626

2727
- parameter files required for running most steps of Eventdisplay
2828
- EVNDISP.global.runparameter (global parameters like VERITAS position; URL of VERITAS DB; location of VERITAS raw data archive)
@@ -43,13 +43,13 @@ AstroData:
4343

4444
- example catalogs and typical Crab Nebula spectra
4545

46-
Calibration
46+
Calibration:
4747

4848
- low-gain calibration files required for Eventdisplay analysis
4949
- pulse-shapes used in CARE simulations (Calibration/CareSimulations)
5050
- example file for calibration list to be used to overwrite DB flasher/laser values in the analysis (Calibration/calibrationlist.dat)
5151

52-
DetectorGeometry
52+
DetectorGeometry:
5353

5454
- configuration files for pixel and telescope positions
5555

@@ -67,24 +67,24 @@ For version changes, the following files need to be changed:
6767

6868
### Uploading IRF files
6969

70-
1. Pack IRF files into several tar packages
70+
1. Pack IRF files into several tar packages (scripts are located in the `transfer/` directory)
7171

7272
```bash
73-
./pack_irfs_for_ucla.sh
73+
./transfer/pack_irfs_for_ucla.sh
7474
```
7575

7676
2. Inspect tar packages in the directory `tar_packages` and move them to the directory `archive`
7777

78-
3. Upload files to UCLA
78+
3. Upload files to UCLA (scripts are located in the `transfer/` directory)
7979

8080
```bash
81-
./put_irfs_to_ucla.sh
81+
./transfer/put_irfs_to_ucla.sh
8282
```
8383

84-
4. Test some uploads with downloading script (modify, to not download again everything):
84+
4. Test some uploads with the downloading script (modify to avoid downloading everything again):
8585

8686
```bash
87-
./download_irfs_from_ucla.sh transfer/file_list_V6.dat
87+
./download_irfs.sh transfer/file_list_V6.dat
8888
```
8989

9090
Note that for DESY users, the tar packages are not downloaded but copied from their archive location.

docs/changes/.gitkeep

Whitespace-only changes.

docs/changes/85.maintenance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add Changelog and automatic changelog generation using towncrier.

towncrier.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[tool.towncrier]
2+
name = "Eventdisplay_AnalysisFiles_VTS"
3+
directory = "docs/changes"
4+
filename = "CHANGELOG.md"
5+
title_format = "## [{version}](https://github.com/VERITAS-Observatory/Eventdisplay_AnalysisFiles_VTS/releases/tag/{version}) - {project_date}"
6+
issue_format = "[#{issue}](https://github.com/VERITAS-Observatory/Eventdisplay_AnalysisFiles_VTS/issues/{issue})"
7+
start_string = "<!-- towncrier release notes start -->\n"
8+
9+
[tool.towncrier.fragment.feature]
10+
name = "New Feature"
11+
showcontent = true
12+
13+
[tool.towncrier.fragment.bugfix]
14+
name = "Bugfixes"
15+
showcontent = true
16+
17+
[tool.towncrier.fragment.maintenance]
18+
name = "Maintenance"
19+
showcontent = true
20+
21+
[tool.towncrier.fragment.doc]
22+
name = "Documentation"
23+
showcontent = true

0 commit comments

Comments
 (0)