Skip to content

Commit

Permalink
Flake8/Black/Isort formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtrafford committed Feb 19, 2024
1 parent 347554d commit 883569c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion malcolm/modules/ADCore/parts/hdfwriterpart.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import os
import time
import h5py
from typing import Dict, Iterator, List, Optional
from xml.etree import cElementTree as ET

import h5py
from annotypes import Anno, add_call_types
from scanpointgenerator import CompoundGenerator, Dimension

Expand Down
6 changes: 3 additions & 3 deletions malcolm/modules/ADOdin/parts/odinwriterpart.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ def create_raw_dataset_infos(
filename=filename,
type=scanning.infos.DatasetType.RAW,
rank=rank,
path="/raw" + str(i+1),
path="/raw" + str(i + 1),
uniqueid="",
)
for i in range(n_raw+1):
for i in range(n_raw + 1):
yield scanning.infos.DatasetProducedInfo(
name=f"{name}.uid{i+1}",
filename=filename,
type=scanning.infos.DatasetType.RAW,
rank=rank,
path="/uid" + str(i+1),
path="/uid" + str(i + 1),
uniqueid="",
)

Expand Down
5 changes: 2 additions & 3 deletions malcolm/modules/xspress3/parts/xspresswriterpart.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import os
from typing import Dict, Iterator, List, Optional

import time

import h5py
from annotypes import Anno, add_call_types
from scanpointgenerator import CompoundGenerator
Expand Down Expand Up @@ -231,7 +229,8 @@ def create_vds(generator, raw_name, vds_path, child, num_datasets):
for f in range(hdf_count):
vds["raw/uid" + str(f)] = h5py.ExternalLink(files[f], "/uid")

# Scalars will have one dataset per scalar (nine in total) qwith shape [num_frames, num_channels]
# Scalars will have one dataset per scalar (nine in total) with
# shape [num_frames, num_channels]
for scalar in range(9):
vds["raw/scalar_" + str(scalar)] = h5py.ExternalLink(
metafile, f"/scalar_{scalar}"
Expand Down

0 comments on commit 883569c

Please sign in to comment.