Giter VIP home page Giter VIP logo

hyspc.read.spe's People

Contributors

bryanhanson avatar cbeleites avatar gegznav avatar sangttruong avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hyspc.read.spe's Issues

Misc Tasks to Complete the Core of the Package

Some things that still need to be done to complete the infrastructure.

  • Go through CONTRIBUTING.md and change references to SKELETON or skeleton to hySpc.read.spe as appropriate.
  • Remove demo_function and unittestdata files.
  • Remove project.Proj and also gitignore it.
  • Review the to-do list hidden in README.md and check off, complete or ideally delete the whole section because it's all done!
  • I (Bryan) don't see any test files in the package... did these get left behind in hyperSpec? There are mentions of them in read_spe unit tests.
  • read_spe needs an example, maybe in \dontrun{
  • Deprecate functions over in hyperSpec as needed.
  • A vignette is missing. Please look in hyperSpec to see if there is material that should be moved to a vignette.
  • IF THERE WILL BE A VIGNETTE The vignette needs "front material" that sets up a lot of things. See hyperSpec.Rmd for the needed material. There are also some additional files that need to be copied to this repo (should be clear from hyperSpec.Rmd). After moving the needed material and files, do a basic edit to remove stuff that is clearly not appropriate for this repo. MAYBE EASIER TO GET THE FRONT MATERIAL FROM hySpc.read.jdx.

Review and update unit tests

Codecov

  • Unit tests should be reviewed and, if needed, updated to make sure they work properly.
  • If possible, coverage over 90% should be acheved.

incorrect spe test file dimension

The blut1.spe file doesn't work because its ydim = 0, and ydim is used to set the dimention of another matrix (hence the function throws an error). read_spe() works just fine on spe_format_3.0.spe.

examples

with some file in inst/extdata/, provide examples for

  • read_spe()
  • spe_showcalpoints()

Use `file` for file name input

In read_*() functions we currently use file, files, filename or con to indicate path to file or connection. We should use file consistently. Update argument name in these functions:

  • read_spe()
  • other

Who should be authors, maintainers, and contributors(aut, cre, ctb) of this package (hySpc.read.spe)?

It gets a bit confusing, as it is not always clear who should be included as authors, maintainers, and contributors (aut, cre, ctb) of this package (hySpc.read.spe) and other packages that are made of code separated from the hyperSpec, I open this issue for discussion and clarifications.

In my opinion, @cbeleites knows best, who created what in hyperSpec.

@cbeleites, when you have time, please, review the DESCRIPTION file and let us know if the author list is complete.

Improve code coverage

Codecov

Improve code coverage as much as possible. covr::report() might be useful to find the blind spots (lines that are not covered).

Author list

Check and update the author and contributor list on DESCRIPTION.

Add examples

Improve documentation by adding @examples sections to all exported functions. Code possibly should go inside \donttest{\dontrun{ ... }} if there are no other options to make it work correctly.

unit tests

  • update file names to refer to installed system path, see #8 . Use forward slash rather than backslash since that has better cross-OS compatibility.
  • remove skip_if_not_fileio_available() (that function allowed hyperSpec distribution without test files, but is not needed any more, so should also not be imported by any of the new pacakges)
  • make sure tests work
  • is test coverage OK?

vignette

  • file import example read_spe()
  • demonstrate spe_showcalpoints()
  • what needs to be moved over from hyperSpec?

`read_spe()` arguments `acc2avg` and `cts_sec`

read_spe() differs from all other file import functions in that it offers two more options for post-processing:

  • acc2avg which triggers averaging accumulations (instead of the summation done by the Winspec software)
    i.e. dividing the spectral intensities by the number of accumulations, and
  • cts_sec which will divide the spectral intensities by the exposure time

Do we want to keep this functionality or do we prefer that any such non-standard treatment should be done by the user afterwards?

Change default `xaxis` value from `"file"` to `NULL` or `"default"`

I think we should change the default xaxis value from "file" to NULL (or "default") as "file" is not a unit of measurement. What do you think @cbeleites?

The other issue is that value "file" is not documented well enough.

  • Change the vale and code in all functions.
  • Improve documentation by describing what NULL (of "file") really means.

R CMD check fails due to unit test issue

I installed hyperSpec 0.100.0 which is going to be released on CRAN and roxut 0.3.23 (current cran version). R CMD check results in this error:

image

I think, the issue is missing a comment symbol on line 2 in unit test file:

image

I can confirm that this issue is not present with previous roxut CRAN relaease (v0.2.40)

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.