Skip to content

Commit

Permalink
fix: automatically append .h5 suffix when rating datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jun 15, 2021
1 parent 3346e24 commit a8cf6cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
0.9.0
- feat: allow users to enter missing metadata during loading
of data files (#5)
- fix: automatically append .h5 suffix when rating datasets
- ref: directory for importing training datasets for rating changed
(but I think this currently affects nobody)
- setup: dump appdirs dependency (moved to QSettings)
Expand Down
4 changes: 4 additions & 0 deletions pyjibe/fd/rating_iface.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import pathlib
import pkg_resources

from nanite.rate import io as nio
Expand All @@ -17,6 +18,9 @@ def __init__(self, fdui, path):
UiUserRatingBase.__init__(self)
self.setupUi(self)
self.fdui = fdui
path = pathlib.Path(path)
if not path.suffix == ".h5":
path = path.with_name(path.name + ".h5")
self.path = path

self.initial_stuff()
Expand Down

0 comments on commit a8cf6cf

Please sign in to comment.