Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Nov 14, 2024
1 parent f795f87 commit d4ac425
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions scripts/aggregate_dataset_histos.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
"""Aggregate the dataset's job's histograms, by sampling."""

import math

import argparse
import h5py # type: ignore
import json
import logging
import math
import numpy as np
import pickle
import random
from pathlib import Path
from typing import Iterator

import h5py
import numpy as np

SKIP_KEYS = ["filelist"]
HISTO_TYPES = [
"PrimaryZenith",
Expand Down
10 changes: 5 additions & 5 deletions scripts/display_histos.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
"""Display the histograms in a file."""

import argparse
import json
import math
import pickle
from pathlib import Path

import h5py
import argparse
import h5py # type: ignore
import json
import matplotlib.pyplot as plt
import numpy as np
import pickle
from pathlib import Path


def from_hdf5(fpath: Path):
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/test_aggregate_dataset_histos.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
"""Tests for aggregate_dataset_histos.py"""

import sys

import argparse
import h5py # type: ignore
import json
import pickle
import sys
import pytest
import tempfile
from pathlib import Path

import h5py
import pytest

project_root = Path(__file__).resolve().parents[2]
sys.path.insert(0, str(project_root))
from scripts.aggregate_dataset_histos import ( # noqa: E402
Expand Down

0 comments on commit d4ac425

Please sign in to comment.