Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: esrf-bliss/Lima-camera-meta
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3e1dc52c9b4a54f26c20d53e9d9464a303f7058f
Choose a base ref
...
head repository: esrf-bliss/Lima-camera-meta
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0383730350ca430a2c012da50b6f8aeabff5a99e
Choose a head ref
  • 7 commits
  • 5 files changed
  • 2 contributors

Commits on Jan 22, 2019

  1. Update meta.yaml

    claustre committed Jan 22, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0185e17 View commit details

Commits on Jan 24, 2019

  1. Copy the full SHA
    0719b8f View commit details
  2. Copy the full SHA
    862d961 View commit details
  3. py3 porting

    claustre committed Jan 24, 2019
    Copy the full SHA
    4d9ea29 View commit details

Commits on Feb 8, 2019

  1. Update README.md

    claustre committed Feb 8, 2019
    Copy the full SHA
    710a618 View commit details
  2. Copy the full SHA
    005e5a3 View commit details
  3. Copy the full SHA
    0383730 View commit details
Showing with 38 additions and 11 deletions.
  1. +27 −3 README.md
  2. +1 −0 conda/camera/conda_build_config.yaml
  3. +1 −1 conda/tango/meta.yaml
  4. +2 −0 sip/MetaInterface.sip
  5. +7 −7 tango/MetaMaxipix5.py
30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
# Lima-camera-meta
[![License](https://img.shields.io/github/license/esrf-bliss/lima.svg?style=flat)](https://opensource.org/licenses/GPL-3.0)
[![Gitter](https://img.shields.io/gitter/room/esrf-bliss/lima.svg?style=flat)](https://gitter.im/esrf-bliss/LImA)
[![Conda](https://img.shields.io/conda/dn/esrf-bcu/lima-camera-meta.svg?style=flat)](https://anaconda.org/esrf-bcu)
[![Version](https://img.shields.io/conda/vn/esrf-bcu/lima-camera-meta.svg?style=flat)](https://anaconda.org/esrf-bcu)
[![Platform](https://img.shields.io/conda/pn/esrf-bcu/lima-camera-meta.svg?style=flat)](https://anaconda.org/esrf-bcu)

# LImA Meta Camera Plugin

Meta camera Hw interface for building mosaic of cameras

## Install

### Camera python

conda install -c esrf-bcu lima-camera-meta

# LImA

Lima ( **L** ibrary for **Im** age **A** cquisition) is a project for the unified control of 2D detectors. The aim is to clearly separate hardware specific code from common software configuration and features, like setting standard acquisition parameters (exposure time, external trigger), file saving and image processing.

Lima is a C++ library which can be used with many different cameras. The library also comes with a [Python](http://python.org) binding and provides a [PyTango](http://pytango.readthedocs.io/en/stable/) device server for remote control.

## Documentation

The documentation is available [here](https://lima1.readthedocs.io/)


Meta camera Hw interface for mosaic of cameras

## An python code example: mosaic of 2 simulator cameras

@@ -10,7 +34,7 @@ from Lima import Core, Simulator, Meta
cam1 = Simulator.Camera()
cam2 = Simulator.Camera()
hwint1 = Simulator.Interface(cam1)
hwint1 = Simulator.Interface(cam2)
hwint2 = Simulator.Interface(cam2)

meta_config = '2x1'
#meta_config = '1x2'
1 change: 1 addition & 0 deletions conda/camera/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ cxx_compiler:
python:
- 2.7 # [linux]
- 3.6
- 3.7
# This differs from target_platform in that it determines what subdir the compiler
# will target, not what subdir the compiler package will be itself.
# For example, we need a win-64 vs2008_win-32 package, so that we compile win-32
2 changes: 1 addition & 1 deletion conda/tango/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set version = GIT_DESCRIBE_TAG[1:] %}

package:
name: lima-camera-simulator-tango
name: lima-camera-meta-tango
version: {{ version }}

source:
2 changes: 2 additions & 0 deletions sip/MetaInterface.sip
Original file line number Diff line number Diff line change
@@ -22,5 +22,7 @@ namespace Meta
virtual void getStatus(StatusType& status /Out/);
virtual int getNbHwAcquiredFrames();

private:
Interface(const Meta::Interface&);
};
};
14 changes: 7 additions & 7 deletions tango/MetaMaxipix5.py
Original file line number Diff line number Diff line change
@@ -137,7 +137,7 @@ def getTriggerLevel(self):

@Core.DEB_MEMBER_FUNCT
def setShutterLevel(self, level):
for p in range(5):
for p in range(5):
self.priam[p].setShutterLevel(level)

@Core.DEB_MEMBER_FUNCT
@@ -149,8 +149,8 @@ def getShutterLevel(self):

@Core.DEB_MEMBER_FUNCT
def setEnergy(self, energy):
for m in range(5):
self.mpx[m].setEnergy(energy)
for m in range(5):
self.mpx[m].setEnergy(energy)

@Core.DEB_MEMBER_FUNCT
def getEnergy(self):
@@ -472,10 +472,10 @@ def get_control(espia_dev_nb = [],
if reconstruction_active.lower() == 'true': active = True
else: active = False
if len(config_name) is not 5:
print config_name
raise Exception, "Invalid number of priam configuration, must be 5 !"
print (config_name)
raise Exception("Invalid number of priam configuration, must be 5 !")
else:
for p in range(5):
for p in range(5):
_MaxipixCamera.append(MaxipixModule.Camera(int(espia_dev_nb[p]), config_path, config_name[p], active))

_MaxipixInterface.append(MaxipixModule[p].Interface(_MaxipixCamera[p]))
@@ -498,7 +498,7 @@ def get_control(espia_dev_nb = [],
_MetaInterface.addInterface(0,3, _MaxipixInterface[3])
_MetaInterface.addInterface(0,4, _MaxipixInterface[4])
else:
raise Exception, "Invalid value for property meta_config: "+meta_config
raise Exception("Invalid value for property meta_config: "+meta_config)


return Core.CtControl(_MetaInterface)