Giter Club home page Giter Club logo

sardana-nxs-filerecorder's People

Contributors

jkotan avatar

Watchers

 avatar  avatar  avatar  avatar

sardana-nxs-filerecorder's Issues

sardana recorder throws an exception when OderedChannels are not defined

From time to time one gets

p02/door/haspp022ch.01 [7]: ascan exp_dmy01 0 1 2 0.1
NXS_FileRecorer: a profile for 'mg_tk' does not exist, creating a default profile.
Consider to run 'spock> nxselector' to select additional components.
NXS_FileRecorer: descriptive components will be reset
Operation will be saved in /gpfs/current/raw/scans/scan_[ScanId].fio (fio)
Operation will be saved in /gpfs/current/raw/scans/scan_05339.nxs (nxs)
Scan #5339 started at Wed Sep 22 09:38:44 2021. It will take at least 0:00:00.300089
 #Pt No   exp_dmy01  eh2b_t01  eh2b_vfc01  sis3302_1  sis3302_1_roi     dt  
An error occurred while running Macro 'ascan(exp_dmy01, 0.0, 1.0, 2, 0.1) -> 1d209f06-1b78-11ec-bd51-00224d9e7a39':
'NoneType' object is not iterable

p02/door/haspp022ch.01 [8]: www
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/sardana/macroserver/msmacromanager.py", line 1554, in runMacro
    for step in macro_obj.exec_():
  File "/usr/lib/python2.7/dist-packages/sardana/macroserver/macro.py", line 2328, in exec_
    for i in it:
  File "/usr/lib/python2.7/dist-packages/sardana/macroserver/macros/scan.py", line 292, in run
    for step in self._gScan.step_scan():
  File "/usr/lib/python2.7/dist-packages/sardana/macroserver/scan/gscan.py", line 947, in step_scan
    self.start()
  File "/usr/lib/python2.7/dist-packages/sardana/macroserver/scan/gscan.py", line 902, in start
    self.data.start()
  File "/usr/lib/python2.7/dist-packages/sardana/macroserver/scan/scandata.py", line 357, in start
    self.datahandler.startRecordList(self)
  File "/usr/lib/python2.7/dist-packages/sardana/macroserver/scan/recorder/datarecorder.py", line 56, in startRecordList
    recorder.startRecordList(recordlist)
  File "/usr/lib/python2.7/dist-packages/sardana/macroserver/scan/recorder/datarecorder.py", line 115, in startRecordList
    self._startRecordList(recordlist)
  File "/usr/lib/python2.7/dist-packages/sardananxsrecorder/nxsrecorder.py", line 871, in _startRecordList
    cnfxml = self.__createConfiguration(envrecord["data"])
  File "/usr/lib/python2.7/dist-packages/sardananxsrecorder/nxsrecorder.py", line 809, in __createConfiguration
    self.__aliases = [ch for ch in och if ch in allcp]
TypeError: 'NoneType' object is not iterable

Release v3.6.6

In the v3.6.6 release

  • suport for numpy.integer and numpy.float in numpyEncoder added (#15)

Release 3.10.0

In the v3.10.0 release
add nexus_step_datasources and nexus_init_datasources variables added (#47)

add SciCatDatasetListFileLocal env

It would be good to provide an environment variable e.g. SciCatDatasetListFileLocal to add hostname to the SciCat dataset list filename

add support for numpy ints and floats in json decoder

We get report about error:

>      jddict = json.dumps(lddict, cls=NXS_FileRecorder.numpyEncoder)
>    File "/usr/lib/python3.7/json/__init__.py", line 238, in dumps
>      **kw).encode(obj)
>    File "/usr/lib/python3.7/json/encoder.py", line 199, in encode
>      chunks = self.iterencode(o, _one_shot=True)
>    File "/usr/lib/python3.7/json/encoder.py", line 257, in iterencode
>      return _iterencode(o, 0)
>    File "/usr/lib/python3/dist-packages/sardananxsrecorder/nxsrecorder.py", line 61, in default
>      return json.JSONEncoder.default(self, obj)
>    File "/usr/lib/python3.7/json/encoder.py", line 179, in default
>      raise TypeError(f'Object of type {o.__class__.__name__} '
> TypeError: Object of type int64 is not JSON serializable

It looks like something has changed in sardana.

Release 3.10.1

In the v3.10.1 release

  • order of nexus_step_components according to moveables set (#50)

Release 3.14.0

In the v3.14.0 release

  • checks if parent obj of datasource is a field added (#74)

Release 3.17.0

In the v3.17.0 release

  • support for user data units and other fields added (#85)

Release 3.9.2

In the v3.9.3 release

  • fix setting nexus_components variable (#44)

Release 3.8.0

In the v3.8.0 release

  • SciCat dataset to the list file if NXSAppendSciCatDataset is set appended (#36)

Release 3.15.0

In the v3.15.0 release

  • the timers variable set with availableTimers (#77)

Release 3.11.0

In the v3.11.0 release

  • the hostname via NXSAppendSciCatDataset to changes scicat-datasets list filename set (#54)

Release 3.7.1

In the 3.7.1 release

  • fix related to non-defined ordered channels added (#21)

Release 3.12.0

In the v3.12.0 release

  • SciCatDatasetListFileLocal` flag which sets the hostname in scicat-datasets list filename added (#61)

remove debug info with data

It would be good to remove debug information with the data because all output streams are stored at /tmp/tango-/*

Release 3.13.2

In the v3.13.2 release

  • a bug for serialno for sardana >= 3.4.0 fixed (#68)

Release 3.9.1

In the v3.9.1 release

  • nexus_components and measurement_group variables added

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.