Skip to content

Commit

Permalink
ci: Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Feb 9, 2024
1 parent d4db10c commit a45fe22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
haskell: true
large-packages: true
- name: Disk usage after freeing up space
run: df -h
run: df -h
# Actually build the Docker container
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
Expand Down
10 changes: 5 additions & 5 deletions util/sim/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

def emit_license():
"""Emit license header.
Returns:
A header string.
"""
Expand Down Expand Up @@ -68,7 +68,7 @@ def ctype_from_precision_t(prec):

def flatten(array):
"""Flatten various array types with a homogeneous API.
Args:
array: Can be a Numpy array, a PyTorch tensor or a nested list.
"""
Expand Down Expand Up @@ -120,7 +120,7 @@ def format_array_definition(dtype, uid, array, alignment=None, section=None):


def format_scalar_definition(dtype, uid, scalar):
s = f'{alias_dtype(dtype)} {uid} = {scalar};'
s = f'{_alias_dtype(dtype)} {uid} = {scalar};'
return s


Expand Down Expand Up @@ -154,7 +154,7 @@ def format_value(value):
return int(value)
else:
return str(value)
s = f'{alias_dtype(dtype)} {uid} = {{\n'
s = f'{_alias_dtype(dtype)} {uid} = {{\n'
s += ',\n'.join([f'\t.{key} = {format_value(value)}' for (key, value) in map.items()])
s += '\n};'
return s
Expand All @@ -172,7 +172,7 @@ def from_buffer(byte_array, ctype='uint32_t'):
If `ctype` is a C type string, it returns a homogeneous list of the
specified type from the raw data.
Alternatively, a dictionary can be passed to `ctype` to extract a
struct from the raw data. In this case, it returns a dictionary with
the same keys as in `ctype`. The values in the `ctype` dictionary
Expand Down

0 comments on commit a45fe22

Please sign in to comment.