Giter Club home page Giter Club logo

arpys's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

arpys's Issues

wrong file path for colormap

Hello,
I am new to arpes data processing. So I am trying to figure out how the arpys package works.
It seems to me that file paths in the plotting.py file are not correct as they point towards "/home/kevin/bin/kustom/cmaps/rainbow_light.dat" and so on.

Cheers

Aristide

gamma slider buggy

The gamma slider does not move beyond half of the full range when moving by mouse wheel or arrow keys. It is, however, draggable across the full range. (Could call it a feature that allows easily recentering gamma to its initial value (1.0))

pit: visual bug when changing slider widths

Changing the slider width of mw.integrated_plot using the arrow keys or through a console command does sometimes not or incorrectly update the width visually.
In particular, the width increases normally up to a certain point, after which nothing happens anymore. When the slider is dragged or moved the width immediately updates, however. Decreasing the width again seems to work fine.

Some inspection indicates that this is a pyqtgraph issue, not a pyqt or arpys .
pen_width.py.txt
pen_width_pyqtgraph.py.txt

Plots sometimes fix their viewrange incorrectly

After commit 929278b which fixed the cutline reinitialization on z-change (which was due to z-change->replot of main plot->_set_axes_scale()->emits sig_axes_changed->initializes cutline and was changed by making _set_axes_scale() not emit under all circumstances), plots seem to sometimes have the wrong axes scaling after pit.roll_axes(). However, this behaviour could not be reproduced after the initial observations.

Dataloaders create inconsistent data structures

dataloaders.Dataloader_ALS outputs an argparse.Namespace where energies are in yscale and angles in xscale and therefore the data itself is transposed from the expectations of postprocessing routines such as postprocessing.fit_gold (Observed on a Gold file measured in 2018 by Simon Moser).
Output data structure should be unified across all dataloaders.

package cmd2

Hi again

I think that the package cmd2 should also be required during installation.

Aristide

PIT: mainwindow.set_alpha funky

Using pit.set_alpha() from the embedded console only switches the alpha in pit.lut between two possible values (128 or no alpha). At the same time, after issuing the command the main plot is rescaled and the z scalebar does not react to upwards scrolling anymore.

Allow custom cmaps

Currently, just matplotlib cmaps are available even though data_slicer provides functionality for user-supplied cmaps.

Allow loading just metadata

Implement a way to quickly inspect just the metadata of a file without having to load the whole dataset (which can be time consuming).

Dataloaders in which to implement this

  • SIS (h5)
  • SIS zip
  • SIS ibw
  • ADRESS
  • Pickle
  • i05
  • ALS (Maestro)
  • ALS fits
  • P04 DESY
  • CASSIOPEE

loading Antaress data doesn't work.

I have an ARPES-data of Antares where is a radiational synchrotron in France, as Nexus format.
I tried to load the Antares data with "dataloaders.py" of arpys as the following :

from arpys import dl, pp
D = dl.load_data('CMA_2018-03-31_13-33-07.nxs')

However, I got the following error :
WARNING: non-ASCII characters are present in the FITS file header and have been replaced by "?" characters [astropy.io.fits.util]
WARNING: non-ASCII characters are present in the FITS file header and have been replaced by "?" characters [astropy.io.fits.util]

Exception <class 'KeyError'>: 'Unable to open object (component not found)'

Exception <class 'KeyError'>: "Unable to open object (object 'Matrix' doesn't exist)"

Exception <class 'KeyError'>: 'Unable to open object (component not found)'

Exception <class 'UnicodeDecodeError'>: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte

Exception <class 'KeyError'>: "Unable to open object (object '2D_Data' doesn't exist)"
<class Dataloader_ALS .fits>
Exception <class 'OSError'>: Header missing END card.

Exception <class '_pickle.UnpicklingError'>: invalid load key, 'H'.
Traceback (most recent call last):
File "load_1.py", line 2, in
D = dl.load_data('CMA_2018-03-31_13-33-07.nxs')
File "/usr/local/lib/python3.7/site-packages/arpys/dataloaders.py", line 1134, in load_data
raise Exception('Could not load data {}.'.format(filename))
Exception: Could not load data CMA_2018-03-31_13-33-07.nxs.

I could load other radiational synchrotron data such as SIS and ADRESS with "dataloaders.py" as above.
Just in case of Antares, it doesn't work.
I guess that the file format is inappropriate for "dataloaders.py".
Is it possible to read the data somehow?

Thank you in advance.
Tappeo

Missing meta-information in certain dataloaders

Dataloader SIS - h5 file (old)

  • scan_type
  • x
  • y
  • z
  • alpha
  • beta
  • gamma
  • Temperature
  • pressure (shown as 0)
  • E[0]
  • E[01]
  • e_step
  • sweeps (?)
  • front_end (removed, as it is unclear what it is)

All other loaders

For all other loaders, progress on this depends on #21.

  • ADRESS
  • Pickle
  • i05
  • ALS (Maestro)
  • ALS fits
  • P04 DESY
  • CASSIOPEE

A few errors with armes_plot

The line 1115 line.raw = line.raw.lower() generates an exception: "EXCEPTION of type 'FrozenInstanceError' occurred with message: '' I had to comment it
Lines 158 160 colorize() seems to be deprecated. I had to remove colorize
and last I got a warning with pyfit
"PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits"

Cheers

Aristide

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.