Skip to content

Commit

Permalink
Sorted includes and parametric types, added StaticArrays package incl…
Browse files Browse the repository at this point in the history
…ude in CI
  • Loading branch information
Ananya2003Gupta committed Sep 1, 2023
1 parent 84c01e9 commit 2421a42
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/sanitizers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ jobs:
echo "::group::Run tests"
ctest --output-on-failure
echo "::endgroup::"
- name: Install StaticArrays Julia Package
run: julia -e 'import Pkg; Pkg.add("StaticArrays")'
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ jobs:
echo "::group::Install"
ninja install
echo "::endgroup::"
- name: Install StaticArrays Julia Package
run: julia -e 'import Pkg; Pkg.add("StaticArrays")'
3 changes: 3 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ jobs:
echo "::group::Install"
ninja install
echo "::endgroup::"
- name: Install StaticArrays Julia Package
run: julia -e 'import Pkg; Pkg.add("StaticArrays")'
2 changes: 1 addition & 1 deletion python/podio/generator_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def __init__(self, name, **kwargs):

self.julia_type = get_julia_type(cpp_type=self.bare_type, is_array=self.is_array,
array_type=self.array_type, array_size=self.array_size)

@property
def docstring(self):
"""Docstring to be used in code generation"""
Expand Down
2 changes: 1 addition & 1 deletion python/podio_class_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def _preprocess_for_julia(self, datatype):
if not member.is_builtin:
includes_jl_struct.add(self._build_julia_include(member))
datatype['includes_jl']['struct'].update((includes_jl_struct))
sorted(datatype['includes_jl']['struct'])
datatype['includes_jl']['struct'] = sorted(datatype['includes_jl']['struct'])

@staticmethod
def _get_julia_params(datatype):
Expand Down

0 comments on commit 2421a42

Please sign in to comment.