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

Uniformative runtime error(s) #96

Open
ktavabi opened this issue Feb 8, 2016 · 9 comments
Open

Uniformative runtime error(s) #96

ktavabi opened this issue Feb 8, 2016 · 9 comments

Comments

@ktavabi
Copy link
Contributor

ktavabi commented Feb 8, 2016

I feel like we addressed these types of issue; and it seems like the error message(s) are rather unuseful, e.g., in this trace the file exists on the HD so what exactly is the problem?

[provenance:info] Mnefun operation: apply_preprocessing_combined
Traceback (most recent call last):
File "/home/ktavabi/Projects/ilabs/analysis_scripts/shiva.py", line 163, in
print_status=True
File "/home/ktavabi/Projects/mnefun/mnefun/_mnefun.py", line 558, in do_processing
p.on_process(text, func, outs[ii], p)
File "/home/ktavabi/Projects/niprov/niprov/mnefunsupport.py", line 68, in handler
provenance.log(pcafile, trans, sssfile, provenance=customprov)
File "/home/ktavabi/Projects/niprov/niprov/context.py", line 26, in log
return niprov.logging.log(_args, dependencies=self.deps, *_kwargs)
File "/home/ktavabi/Projects/niprov/niprov/logging.py", line 90, in log
listener.unknownFile(parents[0])
File "/home/ktavabi/Projects/niprov/niprov/commandline.py", line 45, in unknownFile
self.log(level, 'Unknown file: '+fpath, UnknownFileError)
File "/home/ktavabi/Projects/niprov/niprov/commandline.py", line 76, in log
raise exceptionClass(message)
niprov.exceptions.UnknownFileError: Unknown file: /mnt/ALAYA/data/ilabs/shiva/meg/shiva_1081/sss_fif/shiva_1081_a_raw_sss.fif

@JasperVanDenBosch
Copy link
Owner

It means the parent file has not been added/discovered to provenance yet

@JasperVanDenBosch
Copy link
Owner

The ass file in this case

@ktavabi
Copy link
Contributor Author

ktavabi commented Feb 8, 2016

Excuse me, the what file? Are you not taking me seriously? 😂😂😂😂
On Feb 7, 2016 8:14 PM, "Jasper J.F. van den Bosch" <
[email protected]> wrote:

The ass file in this case


Reply to this email directly or view it on GitHub
#96 (comment).

@JasperVanDenBosch
Copy link
Owner

Haha oops

@JasperVanDenBosch
Copy link
Owner

We could make the error about an unknown parent optional. Or check in the handler if the parent is known, and otherwise not specify a parent.

@ktavabi
Copy link
Contributor Author

ktavabi commented Feb 8, 2016

We could throw a warning the parent file is missing and search for it before stopping the process?

@JasperVanDenBosch
Copy link
Owner

Search for it automatically? Or prompt the user to search for it?

Is it common in menfun to skip the early pipeline steps?

@ktavabi
Copy link
Contributor Author

ktavabi commented Feb 8, 2016

And I could actually do that if I could actually understand what it is your doing in the code. Everything is constantly referring to something else!

@ktavabi
Copy link
Contributor Author

ktavabi commented Feb 8, 2016

I'd say so, the processes are linear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants