-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
144 additions
and
76 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,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "hotaru" | ||
version = "4.0.0" | ||
version = "4.0.1" | ||
description = "High performance Optimizer to extract spike Timing And cell location from calcium imaging data via lineaR impUlse" | ||
license = "GPL-3.0-only" | ||
authors = ["TAKEKAWA Takashi <[email protected]>"] | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
import pkgutil | ||
|
||
import click | ||
|
||
|
||
@click.command() | ||
def config(): | ||
'''Make hotaru.ini''' | ||
|
||
data = pkgutil.get_data('hotaru.console', 'hotaru.ini').decode('utf-8') | ||
with open('hotaru.ini', 'w') as f: | ||
f.write(data) |
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
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,17 @@ | ||
import click | ||
|
||
from hotaru.sim.mpeg import make_mpeg | ||
|
||
|
||
@click.command() | ||
@click.option('--stage', '-s', type=int) | ||
@click.option('--has-truth', is_flag=True) | ||
@click.pass_obj | ||
def mpeg(obj, stage, has_truth): | ||
'''Make Mp4''' | ||
|
||
if stage is None: | ||
stage = 'curr' | ||
else: | ||
stage = f'{stage:03}' | ||
make_mpeg(obj.data_tag, obj.tag, stage, has_truth) |
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,27 @@ | ||
import click | ||
|
||
from hotaru.sim.make import make_sim | ||
|
||
|
||
@click.command() | ||
@click.option('--outdir', type=click.Path(), default='sample', show_default=True) | ||
@click.option('--width', type=int, default=200, show_default=True) | ||
@click.option('--height', type=int, default=200, show_default=True) | ||
@click.option('--frames', type=int, default=1000, show_default=True) | ||
@click.option('--hz', type=float, default=20.0, show_default=True) | ||
@click.option('--num-neurons', type=int, default=1000, show_default=True) | ||
@click.option('--intensity-min', type=float, default=0.5, show_default=True) | ||
@click.option('--intensity-max', type=float, default=2.0, show_default=True) | ||
@click.option('--radius-min', type=float, default=4.0, show_default=True) | ||
@click.option('--radius-max', type=float, default=8.0, show_default=True) | ||
@click.option('--radius-min', type=float, default=4.0, show_default=True) | ||
@click.option('--distance', type=float, default=1.8, show_default=True) | ||
@click.option('--firingrate-min', type=float, default=0.2, show_default=True) | ||
@click.option('--firingrate-max', type=float, default=2.2, show_default=True) | ||
@click.option('--tau_rise', type=float, default=0.08, show_default=True) | ||
@click.option('--tau_fall', type=float, default=0.18, show_default=True) | ||
@click.option('--seed', type=int) | ||
def sample(**args): | ||
'''Make Sample''' | ||
|
||
make_sim(**args) |
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