JASMINE-Mission/jasmine-imagesim

View on GitHub
runpixsim.py formatted. #146
tkamizuka authored e4e8fa75
complete00:00:27
Your first build completed successfully!

Congratulations

Your first build completed successfully!

See the Results

1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.yml.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-08-20T23:26:53.393964 #1]  INFO -- : Skipping file src/jis/photonsim/extract_json.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 77
    tau : np.ndarray
        ^
SyntaxError: invalid syntax
7
sonar-python
sonar-python engine documentation
View output
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: Invalid character encountered in file '/code/src/jis/pixsim/works/ipynb/lc.npz' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/jis/pixsim/data/ktwo201367065-c01_lpd-targ.fits.gz' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/jis/pixsim/data/v_flatn.fits' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/jis/pixsim/data/template.fits.gz' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/jis/pixsim/data/test.fits.gz' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/test/pixsim/ref.npz' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 97 files indexed
ERROR: Unable to parse file: /code/src/jis/photonsim/extract_json.py
ERROR: Parse error at line 77 column 8:

   63: ]['val'])
   64: 
   65:     return wavelength, efficiency
   66: 
   67: 
   68: @dataclasses.dataclass(frozen=True)
   69: class Persistence:
   70:     """
   71:     This class contains the detector persistence parameters.
   72: 
   73:     Attributes:
   74:         tau (ndarray): Detrapping timescales in seconds.
   75:         rho (ndarray): Trapping fractions.
   76:     """
  -->      tau : np.ndarray
   78:     rho : np.ndarray
   79: 
   80: 
   81: @dataclasses.dataclass(frozen=True)
   82: class ReadParams:
   83:     """
   84:     This class contains the detector readout parameters.
   85: 
   86:     Attributes:
   87:         fsmpl      (float): Sampling frequency in Hz.
   88:         tsmpl (float)          : Sampling time in sec (1/fsmpl).
   89:         ncol_ch (int)          : Number of columns in one ch.
   90:         nrow_ch (int)          : Number of rows in one ch.
   91:         npix_pre (int)         : Number of pixels before reading each row.
   92:         npix_post (int)        : Number of pixels after reading each row.
   93:         t_overhead (float)     : Overhead time between reset and the 1st read in sec.
   94:         npix_read_per_row (int): Number of pixels in a row including pre/post pixels.
   95:     """
   96:     fsmpl

INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 4.696s
INFO: Final Memory: 8M/417M
INFO: ------------------------------------------------------------------------
8
pep8
pep8 engine documentation
View output
.github/ src/jis/binutils/setcontrol.py src/jis/binutils/binplot.py src/jis/binutils/check.py src/jis/binutils/runpixsim.py src/jis/binutils/setfiles.py src/jis/binutils/scales.py src/jis/binutils/runphotonsim.py src/jis/binutils/save.py src/jis/pixsim/simpix_stable.py src/jis/pixsim/works/ src/jis/pixsim/include/ src/jis/pixsim/gentraj.py src/jis/pixsim/persistence.py src/jis/pixsim/transitmodel.py src/jis/pixsim/readflat.py src/jis/pixsim/faketarg.py src/jis/pixsim/integrate.py src/jis/pixsim/addnoise.py src/jis/pixsim/data/intrapix/ src/jis/pixsim/wcs.py src/jis/pixsim/randomgf.py src/jis/pixsim/makeflat.py src/jis/photonsim/response.py src/jis/photonsim/wfe.py src/jis/photonsim/ace.py src/jis/photonsim/fluxdensity.py src/jis/photonsim/readfits.py src/jis/photonsim/zernike.py src/jis/photonsim/aperture.py src/jis/photonsim/extract_json.py src/jis/photonsim/data/ src/jis/photonsim/psf.py src/jis/jisplot/plotace.py src/jis/test/loadparams.py src/jis/galcen/read_galcen_position.py src/jis/data/params/ src/jis/data/random_catalog/ bin/mkimage.py bin/mkimage_nosub.py bin/galcenimg.py test/bintest/mksimace.py test/bintest/mkplanetlc.py test/bintest/rnd_wfe.py test/bintest/mkpixcube.py test/bintest/mkace2d.py test/R1/compare_sampling.py test/R1/mkpixcube_sampling.py test/R1/mkpixcube_uniform.py test/R1/read_h5test.py test/pixsim/ test/photonsim/ test/dummy/ test/galcen/ setup.py
9
radon
radon engine documentation
View output
Running radon3...