Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Italian RPX files #137

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 37 additions & 3 deletions pyActigraphy/io/rpx/multilang.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,26 @@
'NAN': 'kZ'
}


# In Italian
fields_it = {
'Name': 'Identità',
'Device': 'Tipo di Actiwatch',
'Device_id': 'Numero di serie Actiwatch',
'Data': 'Dati periodo per periodo',
'Start_date': 'Data inizio acquisizione dati',
'Start_time': 'Ora di inizio acquisizione dati',
'Period': 'Lunghezza periodo',
'NAN': 'NaN'
}


fields = {
'ENG_UK': fields_eng,
'ENG_US': fields_eng,
'FR': fields_fr,
'GER': fields_ger
'GER': fields_ger,
'IT': fields_it,
}

# Dictionary of the required columns in the data 'section' of the input file
Expand Down Expand Up @@ -102,11 +117,30 @@
# 'S/W Status': '??'
}

# In Italian
columns_it = {
'Line': 'Linea',
'Date': 'Data',
'Time': 'Ora',
'Off_Wrist': 'Stato fuori polso',
'Activity': 'Attività',
'Marker': 'Indicatore',
'White_light': 'Luce bianca',
'Red_light': 'Luce rossa',
'Green_light': 'Luce verde',
'Blue_light': 'Luce blu',
'Sleep/Wake': 'Sonno/veglia',
# 'Mobility': '??',
'Interval Status': 'Stato intervallo',
# 'S/W Status': '??'
}

columns = {
'ENG_UK': columns_eng,
'ENG_US': columns_eng,
'FR': columns_fr,
'GER': columns_ger
'GER': columns_ger,
'IT': columns_it
}

day_first = {'ENG_UK': True, 'ENG_US': False, 'FR': True, 'GER': True}
day_first = {'ENG_UK': True, 'ENG_US': False, 'FR': True, 'GER': True, 'IT': True}