tiny fixes

This commit is contained in:
Jan Grewe 2020-08-08 12:42:02 +02:00
parent 589286fad1
commit b48b2b1a92
3 changed files with 2 additions and 3 deletions

View File

@ -6,11 +6,10 @@
* [datajoint](https://datajoint.io) to connect to the database and to map python objects to table entries. * [datajoint](https://datajoint.io) to connect to the database and to map python objects to table entries.
* [nixio](https://github.com/g-node/nixpy) to read the relacs-flavored nix files during import or later during data retrieval. * [nixio](https://github.com/g-node/nixpy) to read the relacs-flavored nix files during import or later during data retrieval.
### Clone the repository ### Clone the repository
```shell ```shell
>> git clone https://whale.am28.uni-tuebingen.de/git/jgrewe/fishbook.git >> git clone https://whale.am28.uni-tuebingen.de/git/jgrewe/fishbook.git
``` ```
### Install ### Install

View File

@ -700,7 +700,7 @@ class FileStimulusData:
stim_file = r_settings["file"] stim_file = r_settings["file"]
delay = 0.0 delay = 0.0
if "delay:" in map(str.lower, r_settings.keys()): if "delay:" in map(str.lower, r_settings.keys()):
delay = float(s.split(":")[-1]) delay = float(r_settings["delay"].split(":")[-1])
start_time = stimulus.start_time - delay start_time = stimulus.start_time - delay
end_time = stimulus.start_time + mt.extents[stimulus.index] end_time = stimulus.start_time + mt.extents[stimulus.index]
duration = mt.extents[stimulus.index] duration = mt.extents[stimulus.index]

View File