Skip to content

Commit

Permalink
Adress review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasNickel committed May 9, 2023
1 parent 0836fb3 commit 79ba18a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ You need configuration files. Check [our example repository](https://github.com/
git clone https://github.com/nbiederbeck/lst-analysis-config.git ../lst-analysis-config
```

You need snakemake and astropy installed. If you do not have that, you can create an enviroment with only snakemake like this:
You need snakemake and astropy installed. If you do not have that, you can create an enviroment with only these packages like this:

```
mamba env create -f workflow/envs/snakemake.yml
Expand Down
8 changes: 3 additions & 5 deletions scripts/calc_flux_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@


def select_timeframe(datasets, t_start, t_stop):
if t_start or t_stop:
t_start = Time(t_start, format="mjd") if t_start else datasets.gti.time_start[0]
t_stop = Time(t_stop, format="mjd") if t_stop else datasets.gti.time_stop[-1]
datasets = datasets.select_time(t_start, t_stop)
return datasets
t_start = Time(t_start, format="mjd") if t_start else datasets.gti.time_start[0]
t_stop = Time(t_stop, format="mjd") if t_stop else datasets.gti.time_stop[-1]
return datasets.select_time(t_start, t_stop)


def main( # noqa: PLR0913
Expand Down
4 changes: 0 additions & 4 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,3 @@ rule all:
dl3_plots,
dl4_plots,
irf_plots,


localrules:
link_paths,
3 changes: 1 addition & 2 deletions workflow/envs/snakemake.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: snakemake
channels:
- bioconda
- conda-forge
dependencies:
- snakemake
- bioconda::snakemake
- astropy

0 comments on commit 79ba18a

Please sign in to comment.