Skip to content

Commit

Permalink
Merge branch 'master' into NT-time-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mlincett committed Mar 23, 2023
2 parents 150ccec + 290f4b9 commit e924334
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/black.yml
Expand Up @@ -20,4 +20,4 @@ jobs:
poetry install
- name: Run Black
run: |
poetry run black .
poetry run black --check .
4 changes: 3 additions & 1 deletion flarestack/data/__init__.py
Expand Up @@ -221,7 +221,9 @@ def pseudo_background(self):
data["ra"] = np.random.uniform(0, 2 * np.pi, size=len(data))
# Randomly reorders the times
np.random.shuffle(data["time"])
return np.array(data[list(self.get_background_dtype().names)].copy())[:,]
return np.array(data[list(self.get_background_dtype().names)].copy())[
:,
]

def simulate_background(self):
data = self.pseudo_background()
Expand Down
147 changes: 80 additions & 67 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e924334

Please sign in to comment.