Skip to content

Commit

Permalink
default container updated
Browse files Browse the repository at this point in the history
  • Loading branch information
francoislaurent committed Jul 22, 2021
1 parent 625d85e commit 8107403
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __getattr__(cls, name):
# The short X.Y version.
version = u'0.6'
# The full version, including alpha/beta/rc tags.
release = u'0.6'
release = u'0.6.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
9 changes: 5 additions & 4 deletions meta.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@

{% set name = "tramway" %}
{% set version = "0.5" %}
{% set version = "0.6" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://github.com/DecBayComp/TRamWAy/archive/v{{ version }}.tar.gz
sha256: 6e26acc4280dfb6d93f1d5009009927dd1fa2e63f18a2c4e160b9a1e40534bc6
sha256: 3a6bb7359ee58a247bf8b4b8bb7efb29a99599c2ce8aea78a6f269f3818bbe41

build:
skip: True # [py<36]
number: 0
# remove polytope as soon as the package is available in some conda channel, if it ever is
script: "{{ PYTHON }} -m pip install --no-deps https://pypi.io/packages/source/p/polytope/polytope-0.2.3.tar.gz . -vv"
script: "{{ PYTHON }} -m pip install --no-deps . -vv"

requirements:
host:
Expand All @@ -24,8 +24,9 @@ requirements:
- hdf5
- python
- rwa-python
- matplotlib
- matplotlib-base
- cvxopt
- polytope
- tqdm
- scikit-image
- stopit # [not win]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

setup(
name = 'tramway',
version = '0.6',
version = '0.6.1',
description = 'TRamWAy',
long_description = long_description,
url = 'https://github.com/DecBayComp/TRamWAy',
Expand Down
4 changes: 2 additions & 2 deletions tramway/analyzer/env/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ def dispatch(self, **kwargs):
return True
@classmethod
def remote_dependencies(cls):
return None
return ''
def exec_inline_python(self, inline_code):
python = []
if self.remote_dependencies():
Expand Down Expand Up @@ -1814,7 +1814,7 @@ def get_container_url(self, container=None):
}.get(container, None)
@classmethod
def default_container(cls):
return 'tramway-hpc-210715.sif'
return 'tramway-hpc-210720.sif'
def setup(self, *argv, **kwargs):
SlurmOverSSH.setup(self, *argv, **kwargs)
if self.submit_side:
Expand Down
19 changes: 14 additions & 5 deletions tramway/analyzer/images/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ def cropping_bounds(self, bounding_box, relative=True):
Pixels are assumed to be centered on their indices in the array,
when plotted.
.. note::
`cropping_bounds` is supposed to work well in combination with
`crop_frames`.
However, a notable exception is out-of-bounds indices.
`crop_frames` adjusts the size of the pixel matrix wrt the image,
while `cropping_bounds` does not min-max the returned indices wrt
the natural bounds of the image.
Arguments:
bounding_box (tuple): pair of ndarrays (lower bound, upper bound).
Expand All @@ -164,6 +173,10 @@ def crop_frames(self, bounding_box, index=None, return_time=False):
Generator function; iterates and crops the image frames, similarly to
:meth:`as_frames`.
.. note::
Time bounds are not supported yet.
Arguments:
bounding_box (tuple): pair of NumPy arrays (lower bound, upper bound).
Expand All @@ -173,10 +186,6 @@ def crop_frames(self, bounding_box, index=None, return_time=False):
return_time (bool): return time along with cropped image frames, as first item.
.. note::
Time bounds are not supported yet.
"""
lb, ub = bounding_box
if 2<lb.size:
Expand Down Expand Up @@ -241,7 +250,7 @@ def to_color_movie(self, output_file=None, fourcc='VP80', colormap='gray',
linecolor (*str* or 3-column float array): color for trajectories;
value :const:`None` defaults to red.
linewidth (int or float): trajectory line width
linewidth (*int* or *float*): trajectory line width.
magnification (*int* or *str*): the original image pixels can be represented as
square-patches of `magnification` video pixel side;
Expand Down

0 comments on commit 8107403

Please sign in to comment.