Skip to content

Commit

Permalink
Merge pull request #15 from NeuroQuestAi/feature/v1.11.0
Browse files Browse the repository at this point in the history
Feature/v1.11.0
  • Loading branch information
edersoncorbari authored Sep 12, 2023
2 parents d30a7d0 + 1876fae commit cb3bb77
Show file tree
Hide file tree
Showing 19 changed files with 301 additions and 41 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ Thumbs.db
# Specific directories and files #
##################################
*.pyc
*.lock
*.vscode
*.env
*.bak
Expand Down
15 changes: 0 additions & 15 deletions Pipfile

This file was deleted.

16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="https://raw.githubusercontent.com/NeuroQuestAi/five-factor-e/main/doc/neuro-quest.png" align="right" width="80" height="70"/>
<img src="https://raw.githubusercontent.com/NeuroQuestAi/neuroquestai.github.io/main/brand/logo/neuroquest-orange-logo.png" align="right" width="80" height="80"/>

# Five Factor E 🌊

Expand All @@ -8,7 +8,9 @@ https://neuroquest.ai)
![python 3][python_version]
[![PyPi Downloads](https://static.pepy.tech/badge/five-factor-e)](https://pepy.tech/project/five-factor-e)
[![Code style: Black](https://img.shields.io/badge/code%20style-Black-000000.svg)](https://github.com/psf/black)
[![Packaged with Poetry][poetry-badge]](https://python-poetry.org/)

[poetry-badge]: https://img.shields.io/badge/packaging-poetry-cyan.svg
[python_version]: https://img.shields.io/static/v1.svg?label=python&message=3%20&color=blue

<p align="center">
Expand Down Expand Up @@ -79,6 +81,14 @@ $ cd five-factor-e
$ python3 -m pip install .
```

or [Poetry](https://python-poetry.org/):

```shell
$ git clone https://github.com/NeuroQuestAi/five-factor-e.git
$ cd five-factor-e
$ poetry shell && poetry install
```

### How to use 🔥

The construtor requires the questions model, whether it is the **300** model or short model with **120** questions. It also has the version to do simulations with the questions that are [reversed](https://ipip.ori.org/newScoringInstructions.htm). For this, you must turn the **test** variable from false to true, for more details on reverse scoring tests see section [Experiments with reverse scoring questions](https://github.com/NeuroQuestAi/five-factor-e/blob/main/data/README.md).
Expand Down Expand Up @@ -272,9 +282,7 @@ Note 🚩:

### Resources 📗

* http://www.personal.psu.edu/j5j/IPIP/ipipneo300.htm
* http://www.personal.psu.edu/j5j/IPIP/ipipneo120.htm
* http://www.personal.psu.edu/faculty/j/5/j5j/
* https://sites.psu.edu/drj5j/
* https://ipip.ori.org/
* https://osf.io/tbmh5/
* https://github.com/kholia/IPIP-NEO-PI
Expand Down
8 changes: 7 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<img src="https://raw.githubusercontent.com/NeuroQuestAi/five-factor-e/main/doc/neuro-quest.png" align="right" width="80" height="70"/>
<img src="https://raw.githubusercontent.com/NeuroQuestAi/neuroquestai.github.io/main/brand/logo/neuroquest-orange-logo.png" align="right" width="80" height="80"/>

### Releases 🎈

Release **[1.11.0](https://github.com/NeuroQuestAi/five-factor-e/releases/tag/v1.11.0)**:

* Refactoring calculate percent;
* Revised README files;
* Change company logo.

Release **[1.10.0](https://github.com/NeuroQuestAi/five-factor-e/releases/tag/v1.10.0)**:

* Refactoring on some code snippets;
Expand Down
2 changes: 1 addition & 1 deletion data/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="https://raw.githubusercontent.com/NeuroQuestAi/five-factor-e/main/doc/neuro-quest.png" align="right" width="80" height="70"/>
<img src="https://raw.githubusercontent.com/NeuroQuestAi/neuroquestai.github.io/main/brand/logo/neuroquest-orange-logo.png" align="right" width="80" height="80"/>

### About data 📊

Expand Down
Binary file modified doc/big-five-neuro-quest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed doc/neuro-quest.png
Binary file not shown.
2 changes: 1 addition & 1 deletion ipipneo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Import of the classes to be used."""

__name__ = "five-factor-e"
__version__ = "1.10.0"
__version__ = "1.11.0"

from ipipneo.ipipneo import IpipNeo
2 changes: 1 addition & 1 deletion ipipneo/facet.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__copyright__ = "Copyright NeuroQuest 2022-2023, Big 5 Personality Traits"
__credits__ = ["John A. Johnson", "Dhiru Kholia"]
__license__ = "MIT"
__version__ = "1.10.0"
__version__ = "1.11.0"
__status__ = "production"

from enum import IntEnum
Expand Down
2 changes: 1 addition & 1 deletion ipipneo/ipipneo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__copyright__ = "Copyright NeuroQuest 2022-2023, Big 5 Personality Traits"
__credits__ = ["John A. Johnson", "Dhiru Kholia"]
__license__ = "MIT"
__version__ = "1.10.0"
__version__ = "1.11.0"
__status__ = "production"

import copy
Expand Down
2 changes: 1 addition & 1 deletion ipipneo/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__copyright__ = "Copyright NeuroQuest 2022-2023, Big 5 Personality Traits"
__credits__ = ["John A. Johnson", "Dhiru Kholia"]
__license__ = "MIT"
__version__ = "1.10.0"
__version__ = "1.11.0"
__status__ = "production"

from enum import Enum, IntEnum
Expand Down
14 changes: 7 additions & 7 deletions ipipneo/norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__copyright__ = "Copyright NeuroQuest 2022-2023, Big 5 Personality Traits"
__credits__ = ["John A. Johnson", "Dhiru Kholia"]
__license__ = "MIT"
__version__ = "1.10.0"
__version__ = "1.11.0"
__status__ = "production"

from enum import IntEnum
Expand Down Expand Up @@ -1007,19 +1007,19 @@ def percent(normc: dict) -> dict:
- normc: The calculated norms.
"""

def calculate_percent(factor: float, value: float) -> float:
def calculate_percent(value: float) -> float:
return float(
NormCubic.CONST1.value
- (NormCubic.CONST2.value * value)
+ (NormCubic.CONST3.value * value**2)
- (NormCubic.CONST4.value * value**3)
)

N = calculate_percent(NormCubic.CONST2.value, normc.get("N", 0))
E = calculate_percent(NormCubic.CONST2.value, normc.get("E", 0))
O = calculate_percent(NormCubic.CONST2.value, normc.get("O", 0))
A = calculate_percent(NormCubic.CONST2.value, normc.get("A", 0))
C = calculate_percent(NormCubic.CONST2.value, normc.get("C", 0))
N = calculate_percent(value=normc.get("N", 0))
E = calculate_percent(value=normc.get("E", 0))
O = calculate_percent(value=normc.get("O", 0))
A = calculate_percent(value=normc.get("A", 0))
C = calculate_percent(value=normc.get("C", 0))

return {"O": O, "C": C, "E": E, "A": A, "N": N}

Expand Down
2 changes: 1 addition & 1 deletion ipipneo/quiz.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__copyright__ = "Copyright NeuroQuest 2022-2023, Big 5 Personality Traits"
__credits__ = ["John A. Johnson", "Dhiru Kholia"]
__license__ = "MIT"
__version__ = "1.10.0"
__version__ = "1.11.0"
__status__ = "production"

import json
Expand Down
2 changes: 1 addition & 1 deletion ipipneo/reverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__copyright__ = "Copyright NeuroQuest 2022-2023, Big 5 Personality Traits"
__credits__ = ["John A. Johnson", "Dhiru Kholia"]
__license__ = "MIT"
__version__ = "1.10.0"
__version__ = "1.11.0"
__status__ = "production"

from ipipneo.utility import reverse_scored
Expand Down
2 changes: 1 addition & 1 deletion ipipneo/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__copyright__ = "Copyright NeuroQuest 2022-2023, Big 5 Personality Traits"
__credits__ = ["John A. Johnson", "Dhiru Kholia"]
__license__ = "MIT"
__version__ = "1.10.0"
__version__ = "1.11.0"
__status__ = "production"

from datetime import datetime
Expand Down
Loading

0 comments on commit cb3bb77

Please sign in to comment.