JasperVanDenBosch / niprov

provenance for neuroimaging data
BSD 3-Clause "New" or "Revised" License
9 stars 0 forks source link

inconsistent dealing with relative paths causes errors #135

Closed JasperVanDenBosch closed 8 years ago

JasperVanDenBosch commented 8 years ago
(env)jasperb@JVDB:~/Projects/niprov$ provenance log 'test' -n new2.f -p old2.f
JVDB:old2.f
old2.f
[provenance:info] File already known: /home/jasperb/Projects/niprov/old2.f
[provenance:warning] old2.f unknown. Adding to provenance
Traceback (most recent call last):
  File "/home/jasperb/Projects/niprov/env/bin/provenance", line 10, in <module>
    execfile(__file__)
  File "/home/jasperb/Projects/niprov/executables/provenance", line 98, in <module>
    transient=args.transient, logtext=args.logtext, script=args.script)
  File "/home/jasperb/Projects/niprov/niprov/logging.py", line 96, in log
    commonProvenance['parents'][0]).provenance
  File "/home/jasperb/Projects/niprov/niprov/mongo.py", line 27, in byLocation
    return self.inflate(record)
  File "/home/jasperb/Projects/niprov/niprov/mongo.py", line 161, in inflate
    if 'duration' in record:
TypeError: argument of type 'NoneType' is not iterable