Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Vasudevan, Rama K
pycroscopy
Commits
2ef83e78
Commit
2ef83e78
authored
Feb 04, 2019
by
Raj Giridharagopal
Browse files
minor error message changes
parent
9d3f1774
Changes
2
Hide whitespace changes
Inline
Side-by-side
pycroscopy/io/translators/igor_ibw.py
View file @
2ef83e78
...
...
@@ -59,7 +59,7 @@ class IgorIBWTranslator(Translator):
else
:
h5_path
=
append_path
if
not
path
.
exists
(
append_path
):
raise
Exception
(
'
Improper file
'
)
raise
Exception
(
'
File does not exist. Check pathname.
'
)
h5_file
=
h5py
.
File
(
h5_path
,
'r+'
)
...
...
pycroscopy/io/translators/pifm.py
View file @
2ef83e78
...
...
@@ -194,6 +194,8 @@ class PiFMTranslator(Translator):
self
.
h5_f
=
h5py
.
File
(
h5_path
,
mode
=
'w'
)
else
:
if
not
os
.
path
.
exists
(
append_path
):
raise
Exception
(
'File does not exist. Check pathname.'
)
self
.
h5_f
=
h5py
.
File
(
append_path
,
mode
=
'r+'
)
self
.
h5_meas_grp
=
usid
.
hdf_utils
.
create_indexed_group
(
self
.
h5_f
,
grp_name
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment