Git Product home page Git Product logo

fouriever's People

Contributors

kammerje avatar tomasstolker avatar vandalt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fouriever's Issues

Store example files separately form code?

There is a lot of examples data in the repo, which is great! However, it makes cloning or installing Fouriever directly from github with pip very slow. I was wondering if there were other option available to store some of the data, maybe keeping one or two examples in the repo for quick tests, but making the bulk of the data available on another platform (OneDrive, Box, NextCloud, Dropbox, etc., or even a seaparate git repo, for example fouriever-data).

I could contribute with the OneDrive storage I have at UdeM or by settings up another repo if you want @kammerje.

Official releases on PyPI?

Hi @kammerje,

With the upcoming KPI pipeline for JWST and data starting to be available, it might be good to have an official release on PyPI to make it easier to:

  1. Find fourieverand install it
  2. Include fouriever as a dependency to other projects

Happy to help with this if needed.

More flexible plotting options

Currently, figures are saved and closed internally. It would be nice to have the option to show the figure as well (with a switch in the function argument, or to make the figure accessible for users, so they can show it with plt.show(). This would especially nice for notebooks (e.g. the KPI Pipeline example).

Error-prone mechanisms when saving files

Hi,

I encountered a few edge-cases when saving files I thought I'd combine in one issue:

  1. Some directories (e.g. caldir) are assumed to end with a separator (/) when combining them with file names. Depending on how users create the path (e.g. os.path function or Path objects), this could cause unexpected behaviour like /path/to/my/directorywithfile.ext.
  2. Related to the above, using str.rfind("/") to find directory can sometimes be error-prone if users pass paths from os.path function or Path objects or work with Windows (sep=\)
  3. This might be a personal preference, but I file like the notation ofile for directory + file prefix can be confusing for users. I would have intuitively expected it to be the full file path or name (including extension).

Regarding the last point above, maybe separating ofile in something like odir and file_id that makes it clear what part is a (directory) path and what part is an ID used to generate file names would clarify things for new users? A potential way to implement would be to keep ofile and add new options for a future release, with a deprecation warning, and then fully replace a few releases after.

@kammerje let me know what you think of the above. Happy to send a PR implementing some or all of these suggestions.

Thank you!

Possible bug in chi2map_sub

The chi2map_sub method will give the following error when chi2map was not executed beforehand, even though the return from chi2map was stored and used as input for chi2map_sub:

KeyError: 'uu_smear'

Perhaps because chi2map_sub requires an attribute that was created in chi2map?

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.