Skip to content

Commit

Permalink
Merge pull request #94 from QZGao/main
Browse files Browse the repository at this point in the history
Remove incorrect data in Johnston_2018
  • Loading branch information
NickSwainston authored Apr 8, 2024
2 parents cc10126 + d58ae13 commit 42187b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pulsar_spectra/catalogue_papers/Johnston_2018.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7139,20 +7139,6 @@
0.08
]
},
"J1842-0359": {
"Frequency MHz": [
1360
],
"Bandwidth MHz": [
256
],
"Flux Density mJy": [
0.01
],
"Flux Density error mJy": [
0.002
]
},
"J1842-0905": {
"Frequency MHz": [
1360
Expand Down
4 changes: 4 additions & 0 deletions pulsar_spectra/catalogue_papers/Johnston_2018_raw_to_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
elif pulsar == "J1705-52":
pulsar = "J1704-5236"

# Class N pulsar incorrectly set to 0.01 mJy, should be removed
if pulsar == "J1842-0359":
continue

flux = float(row[1])
round_to = -int(floor(log10(abs(flux*.2))))
flux = round(flux, round_to)
Expand Down

0 comments on commit 42187b7

Please sign in to comment.