Skip to content

Commit

Permalink
πŸ§€πŸš€ ↝ [SSG-58 SSG-64]: Merge pull request #61 from Signal-K/SSG-58
Browse files Browse the repository at this point in the history
πŸ₯½πŸ§€ ↝ [SSG-58 SSG-64]: The create sprint (1) updates
  • Loading branch information
Gizmotronn authored Nov 11, 2024
2 parents 964e328 + 7e81938 commit 8180814
Show file tree
Hide file tree
Showing 67 changed files with 339 additions and 35 deletions.
10 changes: 5 additions & 5 deletions buckets/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ def insert_into_anomalies(supabase: Client, anomaly_id, content, anomaly_set: st
"id": anomaly_id,
"content": content,
# "anomalytype": 'planet',
"anomalytype": "telescopeMinor",
"anomalytype": "gaseousMapping",
# "anomalySet": anomaly_set,
"anomalySet": "telescope-minorPlanet",
# "parentAnomaly": 40, #69
"anomalySet": "lidar-jovianVortexHunter",
"parentAnomaly": 50, #69
}
response = supabase.table('anomalies').insert(data).execute()
print(f"Inserted anomaly with id {anomaly_id} into 'anomalies' table.")
Expand Down Expand Up @@ -73,8 +73,8 @@ def upload_directory_to_supabase(supabase: Client, bucket_name: str, local_direc

def main():
supabase = init_supabase_client()
bucket_name = "telescope/telescope-dailyMinorPlanet"
local_directory = "telescope/telescope-dailyMinorPlanet"
bucket_name = "telescope/lidar-jovianVortexHunter"
local_directory = "satellite/lidar-jovianVortexHunters"

upload_directory_to_supabase(supabase, bucket_name, local_directory)

Expand Down
83 changes: 55 additions & 28 deletions content/anomalies_grouped.txt
Original file line number Diff line number Diff line change
@@ -1,46 +1,73 @@
Anomaly Type: planet
- ID: 50365310, Content: TIC 50365310
- ID: 69, Content: Earth
Classifications:
* ID: 12, Content: this is NOT a test
* ID: 1, Content: Test
* ID: 20, Content: Test
* ID: 31, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Test', 'cloudName': 'Test'}
* ID: 32, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Test', 'cloudName': 'Test'}
* ID: 33, Content: rhenartyg, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'rhenartyg', 'location': 'er4hbdtnr', 'cloudName': 'yhe'}
* ID: 25, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Melbin', 'cloudName': 'I think we should add this'}
* ID: 26, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Melbin', 'cloudName': 'I think we should add this'}
* ID: 27, Content: hetj, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'hetj', 'location': 'rehte', 'cloudName': 'het'}
* ID: 28, Content: gr4wyghrh, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'}
* ID: 29, Content: gr4wyghrh, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'}
* ID: 30, Content: gr4wyghrh, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': {'uploadUrl': 'http://127.0.0.1:54321/storage/v1/object/public/media/1729343895649-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg'}, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'}
* ID: 41, Content: Test, Type: planet, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 30, 'additionalFields': {'field_0': 'test'}, 'classificationOptions': {'': {'1': True}}}
* ID: 42, Content: Help, Type: planet, ClassificationConfig: {'votes': 6, 'createdBy': None, 'structureId': None, 'activePlanet': 30, 'additionalFields': {'field_0': 'htr'}, 'classificationOptions': {'': {'1': True}}}
- ID: 6, Content: TOI-700d
Classifications:
* ID: 12, Content: this is NOT a test
* ID: 1, Content: Test
* ID: 20, Content: Test
- ID: 1, Content: Kepler-69c
* ID: 31, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Test', 'cloudName': 'Test'}
* ID: 32, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Test', 'cloudName': 'Test'}
* ID: 33, Content: rhenartyg, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'rhenartyg', 'location': 'er4hbdtnr', 'cloudName': 'yhe'}
* ID: 25, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Melbin', 'cloudName': 'I think we should add this'}
* ID: 26, Content: Test, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'Test', 'location': 'Melbin', 'cloudName': 'I think we should add this'}
* ID: 27, Content: hetj, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'hetj', 'location': 'rehte', 'cloudName': 'het'}
* ID: 28, Content: gr4wyghrh, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'}
* ID: 29, Content: gr4wyghrh, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': None, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'}
* ID: 30, Content: gr4wyghrh, Type: userUpload-lidar-EarthCloud, ClassificationConfig: {'media': {'uploadUrl': 'http://127.0.0.1:54321/storage/v1/object/public/media/1729343895649-fa07195a-f69e-4cbb-a11a-a3e993e49d14-screenshot.jpg'}, 'comment': 'gr4wyghrh', 'location': 'rhrhregh', 'cloudName': 'rgherghrethg'}
* ID: 41, Content: Test, Type: planet, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 30, 'additionalFields': {'field_0': 'test'}, 'classificationOptions': {'': {'1': True}}}
* ID: 42, Content: Help, Type: planet, ClassificationConfig: {'votes': 6, 'createdBy': None, 'structureId': None, 'activePlanet': 30, 'additionalFields': {'field_0': 'htr'}, 'classificationOptions': {'': {'1': True}}}

Anomaly Type: telescopeOthers
- ID: 70403661, Content: 70403661
Classifications:
* ID: 12, Content: this is NOT a test
* ID: 1, Content: Test
* ID: 20, Content: Test
* ID: 22, Content: test, Type: DiskDetective, ClassificationConfig: {'votes': 2}
* ID: 21, Content: Test, Type: DiskDetective, ClassificationConfig: {'votes': 4}
* ID: 23, Content: Test, Type: DiskDetective, ClassificationConfig: {'votes': 2, 'createdBy': None, 'structureId': 3103, 'activePlanet': 69, 'additionalFields': {'field_0': 'htrjtyr'}, 'classificationOptions': {'Objects between inner and outer circles': True, 'Object is extended beyond the outer circle': True}}
* ID: 38, Content: Blueish-white object that is about half the radius of the inner circle, Type: DiskDetective, ClassificationConfig: {'votes': 4, 'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'3': True}}}

Anomaly Type: zoodexOthers
- ID: 47335863, Content: 47335863
- ID: 757597575, Content: 757597575
Classifications:
* ID: 9, Content:
* ID: 40, Content: Appears to be two owls together, feet firmly planted on a surface, Type: zoodex-burrowingOwl, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 30, 'additionalFields': {}, 'classificationOptions': {'': {'1': True, '2': True}}}

Anomaly Type: telescope-minorPlanet
- ID: 100879215, Content: 100879215
Anomaly Type: cloud
- ID: 8423850802, Content: 8423850802
Classifications:
* ID: 19, Content: In the center of the circle
* ID: 24, Content: Test, Type: cloud, ClassificationConfig: {'votes': 4, 'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {'field_0': 'Test', 'field_1': 'Tes', 'field_2': 'tew'}, 'classificationOptions': {'': {'1': True}, 'White colour': {'1': True, '2': True}}}

Anomaly Type: gaseousMapping
- ID: 77798610, Content: 77798610
Classifications:
* ID: 39, Content: Quite blurry, but I think I can see some circular action, Type: lidar-jovianVortexHunter, ClassificationConfig: {'votes': 1, 'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'1': True}}}

Anomaly Type: satellitePics
- ID: 83742405, Content: 83742405
Classifications:
* ID: 37, Content: For the most part, it looks like the surface is relatively smooth (obviously it's a bit lumpy, but comparatively speaking it's "smooth-ish". There are some shadows that appear to me to point towards larger hill formations., Type: satellite-planetFour, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'4': True, '5': True}}}

Anomaly Type: automatonSatellitePhoto
- ID: 79738567, Content: 79738567
- ID: 69592674, Content: 69592674
Classifications:
* ID: 18, Content: ano345678tg7uybhkjqwfvertgqwyukehrjvrew7rtfgoyuhtgfvbwer8ioghtgbvaer8iotyhzjgzveb5rilhk
* ID: 17, Content: another testerhguijboknm yaghedrthjnrtgrjnstzrednhjy
* ID: 16, Content: Test
- ID: 57538410, Content: 57538410
* ID: 34, Content: As well as what looks to be a rover tread mark in the soil :), Type: automaton-aiForMars, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'2': True, '3': True}}}
* ID: 35, Content: Test, Type: automaton-aiForMars, ClassificationConfig: {'createdBy': 29, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'2': True}}}
- ID: 57511636, Content: 57511636
Classifications:
* ID: 18, Content: ano345678tg7uybhkjqwfvertgqwyukehrjvrew7rtfgoyuhtgfvbwer8ioghtgbvaer8iotyhzjgzveb5rilhk
* ID: 17, Content: another testerhguijboknm yaghedrthjnrtgrjnstzrednhjy
* ID: 16, Content: Test
- ID: 57511112, Content: 57511112
* ID: 34, Content: As well as what looks to be a rover tread mark in the soil :), Type: automaton-aiForMars, ClassificationConfig: {'createdBy': None, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'2': True, '3': True}}}
* ID: 35, Content: Test, Type: automaton-aiForMars, ClassificationConfig: {'createdBy': 29, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'2': True}}}

Anomaly Type: telescopeMinor
- ID: 90670192, Content: 90670192
Classifications:
* ID: 18, Content: ano345678tg7uybhkjqwfvertgqwyukehrjvrew7rtfgoyuhtgfvbwer8ioghtgbvaer8iotyhzjgzveb5rilhk
* ID: 17, Content: another testerhguijboknm yaghedrthjnrtgrjnstzrednhjy
* ID: 16, Content: Test
* ID: 36, Content: Very faint, but it does follow & work!, Type: telescope-minorPlanet, ClassificationConfig: {'createdBy': 21, 'structureId': None, 'activePlanet': 69, 'additionalFields': {}, 'classificationOptions': {'': {'2': True}}}

Anomalies of Type: planet
- ID: 69, Content: Earth
Expand Down
Binary file added content/avatars/0.11311584587670742.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
176 changes: 176 additions & 0 deletions content/classificationConfiguration.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
class ClassificationOption
attr_accessor :id, :text, :sub_options

def initialize(id:, text:, sub_options: nil)
@id = id
@text = text
@sub_options = sub_options
end
end

daily_minor_planet_options = [
ClassificationOption.new(id: 1, text: "Object cannot be followed"),
ClassificationOption.new(id: 2, text: 'Object follows green circle consistently'),
ClassificationOption.new(id: 3, text: "Varied/unknown")
];

jvh_options = [
ClassificationOption.new(id: 1, text: "Vortex"),
ClassificationOption.new(id: 2, text: "Turbulent region"),
ClassificationOption.new(id: 3, text: "Cloud bands"),
ClassificationOption.new(id: 4, text: "None of the above/content too blurry")
]

daily_minor_planet_options = [
ClassificationOption.new(id: 1, text: "Object cannot be followed"),
ClassificationOption.new(id: 2, text: "Object follows green circle consistently"),
ClassificationOption.new(id: 3, text: "Varied/unknown")
]

planet_four_options = [
ClassificationOption.new(id: 1, text: "Dust Deposits"),
ClassificationOption.new(id: 2, text: "Surface Cracks"),
ClassificationOption.new(id: 3, text: "Spider-like Features"),
ClassificationOption.new(id: 4, text: "Rocky Outcrops"),
ClassificationOption.new(id: 5, text: "Smooth Terrain")
]

automatonai_for_mars_options = [
ClassificationOption.new(id: 1, text: "Big rocks"),
ClassificationOption.new(id: 2, text: "Sand"),
ClassificationOption.new(id: 3, text: "Soil"),
ClassificationOption.new(id: 4, text: "Bedrock"),
ClassificationOption.new(id: 5, text: "Unlabelled")
]

cloud_classification_options_one = [
ClassificationOption.new(id: 1, text: "White colour"),
ClassificationOption.new(id: 2, text: "Blue colour")
]

cloud_classification_options_two = [
ClassificationOption.new(id: 1, text: "Bright clouds"),
ClassificationOption.new(id: 2, text: "Faint clouds"),
ClassificationOption.new(id: 3, text: "Medium clouds")
]

cloud_classification_options_three = [
ClassificationOption.new(id: 1, text: "Clouds cover most of the height"),
ClassificationOption.new(id: 2, text: "Clouds are smaller")
]

planet_classification_options = [
ClassificationOption.new(id: 1, text: 'No dips at all'),
ClassificationOption.new(id: 2, text: 'Repeating dips'),
ClassificationOption.new(id: 3, text: 'Dips with similar size'),
ClassificationOption.new(id: 4, text: 'Dips aligned to one side')
]

rover_img_classification_options = [
ClassificationOption.new(id: 1, text: 'Dried-up water channels'),
ClassificationOption.new(id: 2, text: 'Pebbles/medium-sized rocks'),
ClassificationOption.new(id: 3, text: 'Hills/mountain formations'),
ClassificationOption.new(id: 4, text: 'Volcano (dormant/extinct)'),
ClassificationOption.new(id: 5, text: 'Mineral deposits'),
ClassificationOption.new(id: 6, text: 'Sandy/rocky terrain')
]

lidar_earth_clouds_read_classification_options = [
ClassificationOption.new(id: 1, text: "Nimbostratus"),
ClassificationOption.new(id: 2, text: 'Cumulonimbus'),
ClassificationOption.new(id: 3, text: 'Stratocumulus'),
ClassificationOption.new(id: 4, text: 'Stratus'),
ClassificationOption.new(id: 5, text: "Cumulus"),
ClassificationOption.new(id: 6, text: "Altostratus"),
ClassificationOption.new(id: 7, text: "Altocumulus"),
ClassificationOption.new(id: 8, text: "Cirrostratus"),
ClassificationOption.new(id: 9, text: "Cirrocumulus"),
ClassificationOption.new(id: 10, text: "Cirrus"),
ClassificationOption.new(id: 11, text: "No clouds")
]

plankton_portal_classification_options = [
ClassificationOption.new(id: 1, text: 'Round plankton, no tentacles'),
ClassificationOption.new(id: 2, text: "Head with tail"),
ClassificationOption.new(id: 3, text: 'Jellyfish-like'),
ClassificationOption.new(id: 4, text: 'Bug-like'),
ClassificationOption.new(id: 5, text: "Ribbon/elongated"),
ClassificationOption.new(id: 6, text: "Unidentifiable/None")
]

disk_detector_classification_options = [
ClassificationOption.new(id: 1, text: "Object moves away from crosshairs"),
ClassificationOption.new(id: 2, text: "Object is extended beyond the outer circle"),
ClassificationOption.new(id: 3, text: "Multiple objects inside inner circle"),
ClassificationOption.new(id: 4, text: "Objects between inner and outer circles"),
ClassificationOption.new(id: 5, text: "Object is not round"),
ClassificationOption.new(id: 6, text: "None of the above")
]

penguin_watch_classification_options = [
ClassificationOption.new(id: 1, text: "Adult penguin"),
ClassificationOption.new(id: 2, text: "Penguin chicks"),
ClassificationOption.new(id: 3, text: "Penguin eggs"),
ClassificationOption.new(id: 4, text: "Nesting pair with eggs"),
ClassificationOption.new(id: 5, text: "No penguins/too blurry")
]

initial_cloud_classification_options = [
ClassificationOption.new(id: 1, text: "Narrow arch"),
ClassificationOption.new(id: 2, text: "Wide arch"),
ClassificationOption.new(id: 3, text: "1 cloud"),
ClassificationOption.new(id: 4, text: "2 clouds"),
ClassificationOption.new(id: 5, text: "3 clouds"),
ClassificationOption.new(id: 6, text: "4+ clouds")
]

zoodex_burrowing_owl_classification_options = [
ClassificationOption.new(id: 1, text: "Adult owl"),
ClassificationOption.new(id: 2, text: "Baby owl"),
ClassificationOption.new(id: 3, text: 'Mortality event'),
ClassificationOption.new(id: 4, text: "Infanticide"),
ClassificationOption.new(id: 5, text: "Prey delivery"),
ClassificationOption.new(id: 6, text: "Mating"),
ClassificationOption.new(id: 7, text: "Feeding"),
ClassificationOption.new(id: 8, text: "Owls have bands")
]

zoodex_iguanas_from_above_classification_options = [
ClassificationOption.new(id: 1, text: "Adult Male not in a Lek"),
ClassificationOption.new(id: 2, text: "Adult male with a Lek"),
ClassificationOption.new(id: 3, text: "Juvenile/Female"),
ClassificationOption.new(id: 4, text: "Partial iguana")
]

zoodex_south_coast_fauna_recovery = [
ClassificationOption.new(id: 1, text: "Australian raven"),
ClassificationOption.new(id: 2, text: "Red-winged fairy-wren"),
ClassificationOption.new(id: 3, text: "Cat"),
ClassificationOption.new(id: 4, text: "Brown falcon"),
ClassificationOption.new(id: 5, text: "Silvereye"),
ClassificationOption.new(id: 6, text: "Echidna"),
ClassificationOption.new(id: 7, text: "Brown quail"),
ClassificationOption.new(id: 8, text: "Southern emu-wren"),
ClassificationOption.new(id: 9, text: "Fox"),
ClassificationOption.new(id: 10, text: "Brush bronzewing"),
ClassificationOption.new(id: 11, text: "Splendid fairy-wren"),
ClassificationOption.new(id: 12, text: "Mouse or smaller?"),
ClassificationOption.new(id: 13, text: "Carnaby's black cockatoo"),
ClassificationOption.new(id: 14, text: "Spotted nightjar"),
ClassificationOption.new(id: 15, text: "Quenda"),
ClassificationOption.new(id: 16, text: "Common bronzewing"),
ClassificationOption.new(id: 17, text: "Tawny frogmouth"),
ClassificationOption.new(id: 18, text: "Quokka"),
ClassificationOption.new(id: 19, text: "Emu"),
ClassificationOption.new(id: 20, text: "Tawny-crowned honeyeater"),
ClassificationOption.new(id: 21, text: "Rabbit"),
ClassificationOption.new(id: 22, text: "Galah"),
ClassificationOption.new(id: 23, text: "Wedge-tailed eagle"),
ClassificationOption.new(id: 24, text: "Western brush wallaby"),
ClassificationOption.new(id: 25, text: "Grey butcherbird"),
ClassificationOption.new(id: 26, text: "Welcome swallow"),
ClassificationOption.new(id: 27, text: "Western grey kangaroo"),
ClassificationOption.new(id: 28, text: "Grey currawong"),
ClassificationOption.new(id: 29, text: "Western bristlebird"),
ClassificationOption.new(id: 30, text: "Australian magpie")
]
Loading

0 comments on commit 8180814

Please sign in to comment.