-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix how we structure the run notebook rules.
With this change, one can just run `make notebooks/py/smFISH.py` or `make smFISH.py`. For the examples in `docs/source/_static/data_processing_examples/`, we can also directly invoke them, i.e., `make 3d_smFISH.py`. Also, we run all notebooks with ipython instead of python now.
- Loading branch information
Tony Tung
committed
May 31, 2019
1 parent
2ec85ce
commit 8e5a64d
Showing
3 changed files
with
26 additions
and
20 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
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
path := docs/source/_static/data_processing_examples | ||
py_files := $(wildcard $(path)/*.py) | ||
sh_files := $(wildcard $(path)/*.sh) | ||
py_run_targets := $(patsubst $(path)/%,run__%,$(py_files)) | ||
sh_run_targets := $(patsubst $(path)/%,run__%,$(sh_files)) | ||
py_run_targets := $(patsubst $(path)/%,%,$(py_files)) | ||
sh_run_targets := $(patsubst $(path)/%,%,$(sh_files)) | ||
|
||
PYTHON := ipython | ||
|
||
run-examples: $(py_run_targets) $(sh_run_targets) | ||
|
||
$(py_run_targets): run__% : | ||
$(py_run_targets): % : | ||
[ -e $(path)/$*.skip ] || $(PYTHON) $(path)/$* | ||
|
||
$(sh_run_targets): run__% : | ||
$(sh_run_targets): % : | ||
[ -e $(path)/$*.skip ] || $(SHELL) $(path)/$* |
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