-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from flatironinstitute/iss18_notebook_plots
Iss18 notebook plots
- Loading branch information
Showing
4 changed files
with
596 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
gt_metadata: path/to/metadata.csv | ||
|
||
map2map_results: | ||
- path/to/map2map_results_1.pkl | ||
- path/to/map2map_results_2.pkl | ||
|
||
dist2dist_results: | ||
pkl_fnames: | ||
- path/to/dist2dist_results_1.pkl | ||
- path/to/dist2dist_results_2.pkl | ||
pkl_globs: | ||
- string/path/with/wildcards/and/regex/filestem*_field1[0-9].pkl | ||
- string/path/with/wildcards/and/regex/filestem*_field1[0-9]_field2[0-9].pkl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import numpy as np | ||
|
||
def res_at_fsc_threshold(fscs, threshold=0.5): | ||
res_fsc_half = np.argmin(fscs > threshold, axis=-1) | ||
fraction_nyquist = 0.5*res_fsc_half / fscs.shape[-1] | ||
return res_fsc_half, fraction_nyquist |
Large diffs are not rendered by default.
Oops, something went wrong.