Coder Social home page Coder Social logo

xpecgen's People

Contributors

arfon avatar dih5 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

xpecgen's Issues

TclError: out of stack space

An user told me he was getting a "TclError: out of stack space (infinite loop?)" after pressing the "calculate" button in the GUI. I don't know what kind of system he used and I have received no answer from him.

If anyone happens to come across this, please add some information, for I have been unable to reproduce it.

Matplotlib name error with NavigationToolbar2TkAgg

Running with Matplotlib version 3.2.0.

Get the following error when trying to launch xpecgen gui.

(base) C:\Users\easyXAFS>xpecgen
Traceback (most recent call last):
  File "c:\tools\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\tools\anaconda3\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\tools\Anaconda3\Scripts\xpecgen.exe\__main__.py", line 4, in <module>
  File "c:\tools\anaconda3\lib\site-packages\xpecgen\xpecgenGUI.py", line 13, in <module>
    from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
ImportError: cannot import name 'NavigationToolbar2TkAgg' from 'matplotlib.backends.backend_tkagg' (c:\tools\anaconda3\lib\site-packages\matplotlib\backends\backend_tkagg.py)

Seems to be a name change on the part of matplotlib: NavigationToolbar2TkAgg -> NavigationToolbar2Tk
https://stackoverflow.com/questions/50330320/what-to-use-instead-of-navigationtoolbar2tkagg

I can submit a PR changing the names if that would be helpful.

Fix Toolbar API

It seems that the NavigationToolbar2TkAgg protected attributes that were recklessly used in the code have changed. This results in the plot not being able to be updated in the GUI in recent versions of matplotlib (I guess).

Interpreter Usage Example Outdated?

I believe the screenshot of the interpreter usage example (img/DemoConsole.png) is out of date. Following it throws the following error:
module 'xpecgen' has no attribute 'calculate_spectrum'
I believe this is the correct way to load it in:
from xpecgen import xpecgen as xg

I would fix it myself and submit a PR but on a mac and the UI would contrast with your GUI example screenshot.

Package is not actually packaged

Here from the JOSS review thread:

This project is not organized in the canonical ways a distributable piece of code should be in the standard Python universe. I recommend reviewing https://packaging.python.org/ and adding a setup.py. Consider distributing commandline behaviors as entry_points console scripts.
Organizing and distributing your code in standard ways makes it more likely that other OSS users can take advantage of your brilliance.

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.