Git Product home page Git Product logo

python-oifits's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

longdead-ai

python-oifits's Issues

JOSS Review: Example usage should be more extensive

The example usage at the moment includes a single, very brief, jupyter notebook. Having jupyter notebooks as the primary example documentation is fine (and even a single notebook is fine) but there needs to be more extensive explanation in the notebook. For example, an example that included loading some data from the EHT data site (Assuming there is one) and extracting some physical information from it would be much more helpful.

openjournals/joss-reviews#1743

JOSS Review: Problematic e-use of code from pboley/oifits

Hi @shreyasbapat, @arnavbhavsar and @ananyas2501,

I'm one of the reviewers for your submission to JOSS, openjournals/joss-reviews#1743.

I appreciate the effort you have put into documenting what you have done, and writing some tests.

However, I think there is a major issue that needs to be resolved before the paper could be accepted.

Roughly 90% of the code in this repository is taken directly from @pboley's oifits at https://github.com/pboley/oifits.

In several places some reformatting to be closer to PEP8 has been done, and the code has been updated to use astropy.io.fits instead of pyfits (though @pboley's code also uses astropy.io.fits if pyfits is not installed), and the high-level class structure is different. At the end of this issue I provide a few of examples of overlap.

There are a few problem with that:

  1. From a software license point of view, @pboley removed the license from the code (it had been BSD 3-clause, I think?) in pboley/oifits@550aca8. That means (whether that was their intention or not) that you need their permission to reuse the code, and definitely need their permission to include their code in your code.
  2. From the point of view of the paper, @pboley ought to be included as an author and arguably ought to be the primary author, given the extent of their code authorship.
  3. In the event that @pboley permits use of the code after you request it but declines to be involved in the paper then you would need to much more prominently acknowledge his prior work in both each of the code files and in the paper.

There are a couple other things I'll address briefly in other issues.

Examples of code re-use in python-oifits from oifits

I've included one example from each of the four files in the python-oifits source (excluding the tests). Each of those four files contains part of the file oifits.py in the oifits source:

  1. In https://github.com/shreyasbapat/python-oifits/blob/master/src/oifits/data.py, compare the code starting at https://github.com/shreyasbapat/python-oifits/blob/master/src/oifits/data.py#L20 with the code at https://github.com/pboley/oifits/blob/master/oifits.py#L569
  2. In https://github.com/shreyasbapat/python-oifits/blob/master/src/oifits/dataclasses.py, compare each of the class definitions with those in oifits, e.g. compare the definition of OI_TARGET in https://github.com/shreyasbapat/python-oifits/blob/master/src/oifits/dataclasses.py#L14 to the definition of the same class in https://github.com/pboley/oifits/blob/master/oifits.py#L165. The same comparison can be done for OI_WAVELENGTH, OI_VIS, OI_VIS2, OI_T3, OI_STATION, and OI_ARRAY.
  3. In https://github.com/shreyasbapat/python-oifits/blob/master/src/oifits/read.py, compare the definition of process at https://github.com/shreyasbapat/python-oifits/blob/master/src/oifits/read.py#L39 to the definition of open in https://github.com/pboley/oifits/blob/master/oifits.py#L1285.
  4. In https://github.com/shreyasbapat/python-oifits/blob/master/src/oifits/utils.py, compare the definition of _plurals at https://github.com/shreyasbapat/python-oifits/blob/master/src/oifits/utils.py#L6 with the definition of _plurals at https://github.com/pboley/oifits/blob/master/oifits.py#L93. The subsequent definitions of _array_eq and _angpoint are also essentially the same.

ping the editor, @arfon....

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.