Skip to content

Commit

Permalink
Fixed formatting, trying to use latest develop version during tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
lauri-codes committed May 17, 2024
1 parent 47ff49d commit b1b8213
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
run: |
pip install --upgrade pip
pip install '.[dev]' --index-url https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple
# we need the latest nomad version for testing
pip install nomad-lab[infrastructure]@git+https://github.com/nomad-coe/nomad.git@develop
pip install coverage coveralls
- name: Test with pytest
run: |
Expand Down
16 changes: 4 additions & 12 deletions src/perovskite_solar_cell_database/data_tools/jv_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,12 @@ def jv_dict_generator(filename):

for i in list_columns:
if 'rev' in i:
jv_dict['reverse_scan_Jsc'].append(
float(f'{abs(df[i].iloc[0]):0.3e}')
)
jv_dict['reverse_scan_Jsc'].append(float(f'{abs(df[i].iloc[0]):0.3e}'))
jv_dict['reverse_scan_Voc'].append(float(f'{df[i].iloc[1]:0.3e}'))
jv_dict['reverse_scan_FF'].append(float(f'{df[i].iloc[2]:0.3e}'))
jv_dict['reverse_scan_PCE'].append(float(f'{df[i].iloc[3]:0.3e}'))
jv_dict['reverse_scan_Vmp'].append(float(f'{df[i].iloc[6]:0.3e}'))
jv_dict['reverse_scan_Jmp'].append(
float(f'{abs(df[i].iloc[5]):0.3e}')
)
jv_dict['reverse_scan_Jmp'].append(float(f'{abs(df[i].iloc[5]):0.3e}'))
jv_dict['reverse_scan_series_resistance'].append(
float(f'{df[i].iloc[7]:0.3e}')
)
Expand All @@ -107,16 +103,12 @@ def jv_dict_generator(filename):
)

elif 'for' in i:
jv_dict['forward_scan_Jsc'].append(
abs(float(f'{df[i].iloc[0]:0.3e}'))
)
jv_dict['forward_scan_Jsc'].append(abs(float(f'{df[i].iloc[0]:0.3e}')))
jv_dict['forward_scan_Voc'].append(float(f'{df[i].iloc[1]:0.3e}'))
jv_dict['forward_scan_FF'].append(float(f'{df[i].iloc[2]:0.3e}'))
jv_dict['forward_scan_PCE'].append(float(f'{df[i].iloc[3]:0.3e}'))
jv_dict['forward_scan_Vmp'].append(float(f'{df[i].iloc[6]:0.3e}'))
jv_dict['forward_scan_Jmp'].append(
float(f'{abs(df[i].iloc[5]):0.3e}')
)
jv_dict['forward_scan_Jmp'].append(float(f'{abs(df[i].iloc[5]):0.3e}'))
jv_dict['forward_scan_series_resistance'].append(
float(f'{df[i].iloc[7]:0.3e}')
)
Expand Down
1 change: 0 additions & 1 deletion src/perovskite_solar_cell_database/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
if TYPE_CHECKING:
pass

from nomad.config import config
from nomad.datamodel.data import Schema, UseCaseElnCategory
from nomad.metainfo import SchemaPackage, Section, SubSection

Expand Down

0 comments on commit b1b8213

Please sign in to comment.