Skip to content

Commit

Permalink
Merge branch 'develop' into fix_allocate
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeCCP9 authored Sep 30, 2024
2 parents f20ee86 + 8059cc5 commit a303038
Show file tree
Hide file tree
Showing 22 changed files with 1,678 additions and 289 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
uses: codecov/codecov-action@v1
- name: archive test results
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: test-results_parallel=${{ matrix.w90-binary-parallel }}
path: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
tutorials/tutorial\d\d[-]?\w*/.+win|
src/.+
)$
- repo: https://github.com/pseewald/fprettify
- repo: https://github.com/fortran-lang/fprettify
rev: v0.3.3
hooks:
- id: fprettify
Expand Down
42 changes: 42 additions & 0 deletions docs/docs/parameters/generate-parameter-tables.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import xml.etree.ElementTree as ET


groups = {
'w90': [
'disentanglement',
'job',
'plot',
'system',
'transport',
'wannierise',
],
'postw90': [
'berry',
'boltzwann',
'dos',
'geninterp',
'global',
'gyrotropic',
'kpath',
'kslice',
],
}

tree = ET.parse('parameters.xml')
root = tree.getroot()

for tool in ['w90', 'postw90']:
for group in groups[tool]:
parameters = root.findall(f'./parameter[@tool="{tool}"][@group="{group}"]')
with open(f'{tool}-{group}-parameters.csv', 'w') as fp:
print('Keyword,Type,Description', file=fp)
for parameter in parameters:
name = parameter.find('name')
type = parameter.find('type')
description = parameter.find('description')
if 'optional_prefix' in name.attrib:
print(f'[{name.attrib["optional_prefix"]}]{name.text},', end='', file=fp)
else:
print(f'{name.text},', end='', file=fp)
print(f'{type.text},', end='', file=fp)
print(f'"{description.text}"', file=fp)
Loading

0 comments on commit a303038

Please sign in to comment.