Upload NGC0628-150pc_MAPS.fits

#2
by dalyabaron - opened
.gitattributes CHANGED
@@ -235,5 +235,12 @@ NGC7496/hlsp_phangs-jwst_jwst_miri_ngc7496_f2100w_v1p0p1_img.fits filter=lfs dif
235
  NGC7496/hlsp_phangs-jwst_jwst_miri_ngc7496_f770w_v1p0p1_img.fits filter=lfs diff=lfs merge=lfs -text
236
  NGC7496/hlsp_phangs-jwst_jwst_nircam_ngc7496_f200w_v1p0p1_img.fits filter=lfs diff=lfs merge=lfs -text
237
  NGC7496/hlsp_phangs-jwst_jwst_nircam_ngc7496_f300m_v1p0p1_img.fits filter=lfs diff=lfs merge=lfs -text
 
238
  NGC7496/hlsp_phangs-jwst_jwst_nircam_ngc7496_f335m_v1p0p1_img.fits filter=lfs diff=lfs merge=lfs -text
239
  NGC7496/hlsp_phangs-jwst_jwst_nircam_ngc7496_f360m_v1p0p1_img.fits filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
235
  NGC7496/hlsp_phangs-jwst_jwst_miri_ngc7496_f770w_v1p0p1_img.fits filter=lfs diff=lfs merge=lfs -text
236
  NGC7496/hlsp_phangs-jwst_jwst_nircam_ngc7496_f200w_v1p0p1_img.fits filter=lfs diff=lfs merge=lfs -text
237
  NGC7496/hlsp_phangs-jwst_jwst_nircam_ngc7496_f300m_v1p0p1_img.fits filter=lfs diff=lfs merge=lfs -text
238
+ <<<<<<< HEAD
239
  NGC7496/hlsp_phangs-jwst_jwst_nircam_ngc7496_f335m_v1p0p1_img.fits filter=lfs diff=lfs merge=lfs -text
240
  NGC7496/hlsp_phangs-jwst_jwst_nircam_ngc7496_f360m_v1p0p1_img.fits filter=lfs diff=lfs merge=lfs -text
241
+ NGC0628/NGC0628-150pc_MAPS.fits filter=lfs diff=lfs merge=lfs -text
242
+ =======
243
+ wqNGC7496/hlsp_phangs-jwst_jwst_nircam_ngc7496_f335m_v1p0p1_img.fits filter=lfs diff=lfs merge=lfs -text
244
+ NGC7496/hlsp_phangs-jwst_jwst_nircam_ngc7496_f360m_v1p0p1_img.fits filter=lfs diff=lfs merge=lfs -text
245
+ IC5332/IC5332-150pc_MAPS.fits filter=lfs diff=lfs merge=lfs -text
246
+ >>>>>>> main
IC5332/IC5332-150pc_MAPS.fits ADDED

Git LFS Details

  • SHA256: 7981154bf07453388f6dfd94be1cf5f98202c1beb80c753b395f197ca3689cfa
  • Pointer size: 134 Bytes
  • Size of remote file: 582 MB
NGC0628/NGC0628-150pc_MAPS.fits ADDED

Git LFS Details

  • SHA256: 8a1ed2c0459e509bf563644800efb703ce507a7d34fc695b76b3a0f8b0fa3e98
  • Pointer size: 135 Bytes
  • Size of remote file: 2.16 GB
NGC7496/NGC7496-150pc_MAPS.fits ADDED

Git LFS Details

  • SHA256: 4aa58e3b99a278ea971bafc4649b76ae3bd68e971b38791837fbc96d25521efc
  • Pointer size: 134 Bytes
  • Size of remote file: 535 MB
resolve.sh ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Script to automatically resolve .gitattributes conflicts for multiple HuggingFace PRs
4
+ # Usage: ./resolve-gitattributes-conflicts.sh <start_pr> <end_pr>
5
+
6
+ if [ $# -ne 2 ]; then
7
+ echo "Usage: $0 <start_pr_number> <end_pr_number>"
8
+ echo "Example: $0 1 5"
9
+ exit 1
10
+ fi
11
+
12
+ START_PR=$1
13
+ END_PR=$2
14
+
15
+ # Validate inputs are numbers
16
+ if ! [[ "$START_PR" =~ ^[0-9]+$ ]] || ! [[ "$END_PR" =~ ^[0-9]+$ ]]; then
17
+ echo "Error: PR numbers must be integers"
18
+ exit 1
19
+ fi
20
+
21
+ if [ $START_PR -gt $END_PR ]; then
22
+ echo "Error: Start PR number must be less than or equal to end PR number"
23
+ exit 1
24
+ fi
25
+
26
+ echo "Resolving .gitattributes conflicts for PRs $START_PR through $END_PR..."
27
+
28
+ # Function to resolve gitattributes conflict
29
+ resolve_gitattributes() {
30
+ local pr_num=$1
31
+
32
+ echo "Processing PR #$pr_num..."
33
+
34
+ # Fetch and checkout the PR
35
+ if ! git fetch origin refs/pr/$pr_num:pr/$pr_num 2>/dev/null; then
36
+ echo " ❌ Failed to fetch PR #$pr_num (may not exist)"
37
+ return 1
38
+ fi
39
+
40
+ git checkout pr/$pr_num 2>/dev/null
41
+
42
+ # Check if there are any conflicts
43
+ if ! git status --porcelain | grep -q "^UU"; then
44
+ echo " ℹ️ No conflicts found in PR #$pr_num"
45
+ return 0
46
+ fi
47
+
48
+ # Check if .gitattributes has conflicts
49
+ if ! git status --porcelain | grep -q "^UU .gitattributes"; then
50
+ echo " ℹ️ No .gitattributes conflicts in PR #$pr_num"
51
+ return 0
52
+ fi
53
+
54
+ echo " 🔧 Resolving .gitattributes conflict..."
55
+
56
+ # Auto-resolve .gitattributes by taking both sides and removing duplicates
57
+ # This assumes the conflict is just duplicate LFS entries
58
+ if [ -f .gitattributes ]; then
59
+ # Remove conflict markers and duplicate lines
60
+ grep -v "^<<<<<<<" .gitattributes | \
61
+ grep -v "^=======" | \
62
+ grep -v "^>>>>>>>" | \
63
+ sort -u > .gitattributes.tmp
64
+
65
+ mv .gitattributes.tmp .gitattributes
66
+
67
+ # Stage the resolved file
68
+ git add .gitattributes
69
+
70
+ # Commit the resolution
71
+ if git commit -m "Resolve .gitattributes merge conflict - auto-resolved" 2>/dev/null; then
72
+ echo " ✅ Conflict resolved and committed"
73
+
74
+ # Push back to HF
75
+ if git push origin pr/$pr_num:refs/pr/$pr_num 2>/dev/null; then
76
+ echo " ✅ Successfully pushed to HuggingFace PR #$pr_num"
77
+ else
78
+ echo " ❌ Failed to push to HuggingFace PR #$pr_num"
79
+ return 1
80
+ fi
81
+ else
82
+ echo " ❌ Failed to commit resolution for PR #$pr_num"
83
+ return 1
84
+ fi
85
+ else
86
+ echo " ❌ .gitattributes file not found in PR #$pr_num"
87
+ return 1
88
+ fi
89
+
90
+ return 0
91
+ }
92
+
93
+ # Main loop
94
+ success_count=0
95
+ total_count=0
96
+
97
+ for pr_num in $(seq $START_PR $END_PR); do
98
+ total_count=$((total_count + 1))
99
+
100
+ if resolve_gitattributes $pr_num; then
101
+ success_count=$((success_count + 1))
102
+ fi
103
+
104
+ echo ""
105
+ done
106
+
107
+ # Summary
108
+ echo "============================================"
109
+ echo "Summary:"
110
+ echo " Total PRs processed: $total_count"
111
+ echo " Successfully resolved: $success_count"
112
+ echo " Failed: $((total_count - success_count))"
113
+ echo "============================================"
114
+
115
+ # Return to main branch
116
+ git checkout main 2>/dev/null || git checkout master 2>/dev/null
117
+
118
+ echo "Done! Returned to main branch."