Skip to content

Commit

Permalink
Merge pull request #79 from samclark2/commit-error-fix
Browse files Browse the repository at this point in the history
Commit error fix
  • Loading branch information
tacaswell authored Jul 20, 2023
2 parents cfe5213 + feea8fc commit 9e1b734
Show file tree
Hide file tree
Showing 93 changed files with 32,338 additions and 29,880 deletions.
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ repos:
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
Expand Down
200 changes: 157 additions & 43 deletions pyCHX/Badpixels.py
Original file line number Diff line number Diff line change
@@ -1,52 +1,166 @@
'''Dev@Octo12,2017'''
"""Dev@Octo12,2017"""
import numpy as np
damaged_4Mpixel = np.array( [
[ 1157, 2167 - 1231],[ 1158, 2167 - 1231],[ 1159, 2167 - 1231],[ 1160, 2167 - 1231],
[ 1157, 2167 - 1230],[ 1158, 2167 - 1230],[ 1159, 2167 - 1230], [ 1160, 2167 - 1230],[ 1161, 2167 - 1230],
[ 1157, 2167 - 1229],[ 1158, 2167 - 1229],[ 1159, 2167 - 1229], [ 1160, 2167 - 1229],
[ 1159, 2167 - 1228], [ 1160, 2167 - 1228],
[ 1159, 2167 - 1227], [ 1160, 2167 - 1227],
[ 1159, 2167 - 1226],
]
)

damaged_4Mpixel = np.array(
[
[1157, 2167 - 1231],
[1158, 2167 - 1231],
[1159, 2167 - 1231],
[1160, 2167 - 1231],
[1157, 2167 - 1230],
[1158, 2167 - 1230],
[1159, 2167 - 1230],
[1160, 2167 - 1230],
[1161, 2167 - 1230],
[1157, 2167 - 1229],
[1158, 2167 - 1229],
[1159, 2167 - 1229],
[1160, 2167 - 1229],
[1159, 2167 - 1228],
[1160, 2167 - 1228],
[1159, 2167 - 1227],
[1160, 2167 - 1227],
[1159, 2167 - 1226],
]
)


#March 1, 2018
#uid = '92394a'
# March 1, 2018
# uid = '92394a'
bad_pixel_4M = {
'92394a': np.array( [ 828861, 882769, 915813, 928030, 959317, 959318, 992598,
992599, 998768, 1009202, 1036105, 1143261, 1149650, 1259208,
1321301, 1426856, 1426857, 1586163, 1774616, 1936607, 1936609,
1936610, 1938677, 1938678, 1938681, 1940747, 1946959, 1955276,
2105743, 2105744, 2107813, 2107815, 2109883, 2118276, 2118277,
2149798, 2194925, 2283956, 2284016, 2284225, 2284388, 2290249,
2292593, 2298770, 2304729, 2317145, 2344268, 2346156, 2356554,
2360827, 2364960, 2408361, 2453913, 2470447, 2476691, 3462303,
4155535] ), #57 points, coralpor

'6cc34a': np.array( [ 1058942, 2105743, 2105744, 2107813, 2107815, 2109883, 4155535] ) # coralpor

}
"92394a": np.array(
[
828861,
882769,
915813,
928030,
959317,
959318,
992598,
992599,
998768,
1009202,
1036105,
1143261,
1149650,
1259208,
1321301,
1426856,
1426857,
1586163,
1774616,
1936607,
1936609,
1936610,
1938677,
1938678,
1938681,
1940747,
1946959,
1955276,
2105743,
2105744,
2107813,
2107815,
2109883,
2118276,
2118277,
2149798,
2194925,
2283956,
2284016,
2284225,
2284388,
2290249,
2292593,
2298770,
2304729,
2317145,
2344268,
2346156,
2356554,
2360827,
2364960,
2408361,
2453913,
2470447,
2476691,
3462303,
4155535,
]
), # 57 points, coralpor
"6cc34a": np.array([1058942, 2105743, 2105744, 2107813, 2107815, 2109883, 4155535]), # coralpor
}


## Create during 2018 Cycle 1
BadPix_4M = np.array( [ 828861, 882769, 915813, 928030, 959317, 959318, 992598,
992599, 998768, 1009202, 1036105, 1143261, 1149650, 1259208,
1321301, 1426856, 1426857, 1586163, 1774616, 1936607, 1936609,
1936610, 1938677, 1938678, 1938681, 1940747, 1946959, 1955276,
2105743, 2105744, 2107813, 2107815, 2109883, 2118276, 2118277,
2149798, 2194925, 2283956, 2284016, 2284225, 2284388, 2290249,
2292593, 2298770, 2304729, 2317145, 2344268, 2346156, 2356554,
2360827, 2364960, 2408361, 2453913, 2470447, 2476691, 3462303,
BadPix_4M = np.array(
[
828861,
882769,
915813,
928030,
959317,
959318,
992598,
992599,
998768,
1009202,
1036105,
1143261,
1149650,
1259208,
1321301,
1426856,
1426857,
1586163,
1774616,
1936607,
1936609,
1936610,
1938677,
1938678,
1938681,
1940747,
1946959,
1955276,
2105743,
2105744,
2107813,
2107815,
2109883,
2118276,
2118277,
2149798,
2194925,
2283956,
2284016,
2284225,
2284388,
2290249,
2292593,
2298770,
2304729,
2317145,
2344268,
2346156,
2356554,
2360827,
2364960,
2408361,
2453913,
2470447,
2476691,
3462303,
4155535,
1058942, 2105743, 2105744, 2107813, 2107815, 2109883, 4155535,
2107814, 3462303,
] )







1058942,
2105743,
2105744,
2107813,
2107815,
2109883,
4155535,
2107814,
3462303,
]
)
Loading

0 comments on commit 9e1b734

Please sign in to comment.