info on metadataimporter? #308
-
I did a search in the docs for MetadataImporter, metadata, importer, and didn't come across an explanation of the behavior of:
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Sorry about that; the EL1000 clearly lacks documentation. However, I thought it should not be confused with ChildProject's docs because it is too specific and that might cause more confusion than anything. There's a little more einformation here: In other words:
|
Beta Was this translation helpful? Give feedback.
-
I just pushed 2 commits to Lyon:
I thought this was due to the fact that my original metadata didn't have age, but it did have age (although it was not rounded?). I don't know enough python to be sure - perhaps it was complaining about the age function missing? Probably not, right? |
Beta Was this translation helpful? Give feedback.
-
It's a bug, which Marianne spotted and fixed :) Re-install the EL1000
package and try again?
Le mer. 20 oct. 2021 à 19:15, Alex Cristia ***@***.***> a
écrit :
… I just pushed 2 commits to Lyon:
- in the latest commit
<https://gin.g-node.org/EL1000/lyon/commit/c53597de43f1aa3c217f9a710fda5e1da37aa6c3>
I did not recalculate ages, and that works
- in the previous one
<https://gin.g-node.org/EL1000/lyon/commit/296b2a33dc5eea70ad7d0bf334136ac964615b2e>
I was trying to recalculate age, but I was getting an error:
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/pool.py",
line 119, in worker
result = (True, func(*args, **kwds))
File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/pool.py",
line 44, in mapstar
return list(map(*args))
File
"/Users/acristia/ChildProjectVenv/lib/python3.6/site-packages/EL1000/metadata.py",
line 142, in recover_recording
recording['age'] = age(date, child_dob)
NameError: name 'age' is not defined
I thought this was due to the fact that my original metadata didn't have
age, but it did have age (although it was not rounded?). I don't know
enough python to be sure - perhaps it was complaining about the age
function missing? Probably not, right?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#308 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABI4QHXIGY4YSGP6XRPX2BTUH32J7ANCNFSM5GF6J27Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Lucas Gautheron
06 79 23 86 47
Laboratoire de Sciences Cognitives et Psycholinguistique
Bureau 414 - 29 rue d'Ulm
75005 Paris
|
Beta Was this translation helpful? Give feedback.
Sorry about that; the EL1000 clearly lacks documentation. However, I thought it should not be confused with ChildProject's docs because it is too specific and that might cause more confusion than anything.
There's a little more einformation here:
https://gin.g-node.org/EL1000/tools/src/master/EL1000/metadata.py#L48
In other words:
preserve_dates
will preserve the dates originally present in the metadata/its instead of setting the date of birth to 1000-01-01 (and recordings dates accordingly)preserve_metadata
currently only impacts languages spoken in the household. if enabled, this information will be preserved in the default metadata; otherwise it will be moved tometadata/confidential
.