Code Monkey home page Code Monkey logo

wayne's People

Contributors

atsiaras avatar ideasrule avatar ryanvarley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

wayne's Issues

SPARS5 is a new mode that isnt implemented

SAMP-SEQ= SPARS5
Image Size
Sample
Number Full Frame 512x512 256x256
1 2.932 0.853 0.280
2 7.933 3.775 2.629
3 12.934 6.696 4.978
4 17.935 9.618 7.327
5 22.935 12.539 9.676
6 27.936 15.461 12.025
7 32.937 18.382 14.374
8 37.938 21.304 16.723
9 42.938 24.225 19.072
10 47.939 27.147 21.421
11 52.940 30.068 23,770
12 57.941 32.990 26.119
13 62.942 35.911 28.468
14 67.942 38.833 30.817
15 72.943 41.754 33.166

Rename pyparallel

... to something more specific that doesnt match an existing project

Improve how samples are generated

Currently the last subsample in a sample up the ramp can be very short, as it fills the time between the current point and the cutoff. In order for the approximations to work it should spill over to the next read or the whole method re-evaluated.

Builds are not reproducable

The seed is defined in the c code. Instead it should be passed in from python to ensure fixed seed builds will be the same.

Even if we fix this using different numbers of cores will give different results. I think thats ok for now as long as its clear and the same seed/core combo gives the same result

Allow installation without preinstalling numpy

Numpy is needed to compile the c extensions but the current definition means you cant install the package without first installing numpy, despite installing the requirements being one of the first steps.

See here for a solution

Pyparallel can fail to compile

We should add instructions to the readme on how to fix this. We should also address the warning.

python setup.py develop
Warning: Extension name 'pyparallel' does not match fully qualified name 'wayne.pyparallel' of 'pyparallel.pyx'
running build_ext
building 'pyparallel' extension
gcc -fno-strict-aliasing -I/Users/ryan/anaconda/envs/wayne/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/ryan/anaconda/envs/wayne/lib/python2.7/site-packages/numpy/core/include -I/Users/ryan/anaconda/envs/wayne/include/python2.7 -c pyparallel.c -o build/temp.macosx-10.9-x86_64-2.7/pyparallel.o -fopenmp -lm -O3
clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
clang: error: unsupported option '-fopenmp'
error: command 'gcc' failed with exit status 1

Parallelise generation

Current generation times are long and only use a single core. Parallelise this process.

Upgrade requirements

Our current set our requirements are old and are in conflict (i.e. the numpy and scipy versions).

After we have reliable tests (particularly end-to-end), upgrade the packages to the latest set of stable versions.

weird bug in new psf

Traceback (most recent call last):3 done (samp 437/447)
  File "run_visit.py", line 179, in <module>
    obs.run_observation()
  File "/Users/ryan/PythonPackages/WFC3Sim/observation.py", line 344, in run_observation
    self._generate_exposure(start_time, filenum)
  File "/Users/ryan/PythonPackages/WFC3Sim/observation.py", line 406, in _generate_exposure
    progress_bar=self.progess,
  File "/Users/ryan/PythonPackages/WFC3Sim/exposure_generator.py", line 316, in scanning_frame
    scale_factor, add_flat)
  File "/Users/ryan/PythonPackages/WFC3Sim/exposure_generator.py", line 642, in _gen_subsample
    wl_psf_std, pixel_array)
  File "/Users/ryan/PythonPackages/WFC3Sim/exposure_generator.py", line 750, in _psf_distribution
    yx = np.insert(yx, len(yx), np.zeros(yx_size - len(yx)))
ValueError: negative dimensions are not allowed

only happens sometimes, but repeatably to the same part and seems to depend on seed.

Gaussian Model defined by flux does not preserve flux if stddev is changed

The gaussian model converts flux to amplitude on initialisation and therefore if the stddev is changed after amplitude is preserved not flux. This may or may not be the desired outcome, but it should be known.

Perhaps a warning should be raised? amplitude could also be calculated from flux on the fly.

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.