-
Notifications
You must be signed in to change notification settings - Fork 0
fix #141 save button #155
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
base: main
Are you sure you want to change the base?
fix #141 save button #155
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made all these comments so I'm sending them. After this, I'm going to commit my changes to this branch, and I'll need you to get it working. There should be a test.
- package_path supported properly for sliclets - ctx only supports a single (fconf) yaml file
import h5py | ||
|
||
i = _imageset() | ||
with pkio.save_chdir(pkunit.work_dir()) as w: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
save_chdir_work() which empties the directory first
|
||
|
||
def test_imageset_save_to_file(): | ||
from glob import glob |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally we just import glob, which is the module, but since you already import pkio. just use pkoio.sorted_glob
:license: http://www.apache.org/licenses/LICENSE-2.0.html | ||
""" | ||
|
||
from pykern import pkunit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally we don't import it here just out of formality so that all tests defer imports, which can be very important.
[3, 5, 7.5, 3], | ||
) | ||
pkunit.pkeq(round(f.x.fit.results.sig, 2), 0.53) | ||
pkunit.pkeq([round(v, 2) for v in f.x.fit.fit_line], [0.5, 2.5, 12.5, 2.5, 0.5]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this probably should be returned in i
I need to add some test cases, but this is ready for a draft review.