neiam
/lambent_ex
Lambent Aether 5
public · Issues · Pulls 1 · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
inspection cleanups, add hyperion to list
6677142 · gmorell · 2022-12-18 22:50
Files changed
modified
lib/lambent_ex/machine.ex
+0
−3
@@ -151,9 +151,6 @@ defmodule LambentEx.Machine do
| 151 | 151 | data |
| 152 | 152 | end |
| 153 | 153 | |
| 154 | − | |
| 155 | − # | |
| 156 | − # |> IO.inspect() | |
| 157 | 154 | Phoenix.PubSub.broadcast(@pubsub_name, @pubsub_topic <> state[:name], {:publish, data}) |
| 158 | 155 | {:noreply, bright_step(state)} |
| 159 | 156 | end |
modified
lib/lambent_ex/schema/links.ex
+0
−2
@@ -23,8 +23,6 @@ defmodule LambentEx.Schema.Links do
| 23 | 23 | res = link |
| 24 | 24 | |> Links.changeset(attrs) |
| 25 | 25 | |
| 26 | − IO.inspect([name: res.changes[:name], source: res.changes[:source_id], target: res.changes[:target_id]]) | |
| 27 | − | |
| 28 | 26 | case res.valid? do |
| 29 | 27 | true -> {:ok, LambentEx.LinkSupervisor.start_child(res.changes[:name], res.changes[:source_id], res.changes[:target_id])} |
| 30 | 28 | false -> {:error, res} |
modified
lib/lambent_ex/schema/machines.ex
+2
−2
@@ -21,7 +21,8 @@ defmodule LambentEx.Schema.Machines do
| 21 | 21 | gen_scape: "Scape", |
| 22 | 22 | gen_twinkler: "LA3PortTwinler", |
| 23 | 23 | rcv_fft: "FFT Receiver", |
| 24 | − rcv_gsi: "GSI Receiver" | |
| 24 | + rcv_gsi: "GSI Receiver", | |
| 25 | + rcv_hyp: "Hyperion Receiver", | |
| 25 | 26 | } |
| 26 | 27 | |
| 27 | 28 | @steps %{ |
@@ -66,7 +67,6 @@ defmodule LambentEx.Schema.Machines do
| 66 | 67 | |
| 67 | 68 | def update_machines(%Machines{} = machines, attrs) do |
| 68 | 69 | res = machines |> Machines.changeset(attrs) |
| 69 | − IO.inspect(res) | |
| 70 | 70 | |
| 71 | 71 | opts = case res.changes[:type] do |
| 72 | 72 | :gen_solid -> [single: true] |
modified
lib/lambent_ex/supervision/link.ex
+1
−1
@@ -7,7 +7,7 @@ defmodule LambentEx.LinkSupervisor do
| 7 | 7 | |
| 8 | 8 | def start_child(name, source, target) do |
| 9 | 9 | spec = {LambentEx.Link, [name: name, source: source, target: target]} |
| 10 | − DynamicSupervisor.start_child(__MODULE__, spec) |> IO.inspect | |
| 10 | + DynamicSupervisor.start_child(__MODULE__, spec) | |
| 11 | 11 | end |
| 12 | 12 | |
| 13 | 13 | def abort_child(pid) do |
modified
lib/lambent_ex_web/live/links/form_component.ex
+0
−2
@@ -49,8 +49,6 @@ defmodule LambentEx.LinksLive.FormComponent do
| 49 | 49 | end |
| 50 | 50 | |
| 51 | 51 | def for_selectd(array) do |
| 52 | − IO.inspect(array) | |
| 53 | 52 | array |> Enum.map(fn {iface,entries} -> entries |> Enum.map(fn {k, v} -> {v["name"], k} end) end) |> List.flatten |> Enum.sort_by(fn {k, v} -> k end) |
| 54 | −# [1,2,3] | |
| 55 | 53 | end |
| 56 | 54 | end |
modified
lib/lambent_ex_web/live/machines/form_component.ex
+0
−1
@@ -29,7 +29,6 @@ defmodule LambentEx.MachinesLive.FormComponent do
| 29 | 29 | |> Machines.change_machine(machine_params) |
| 30 | 30 | |> Map.put(:action, :validate) |
| 31 | 31 | |
| 32 | − IO.inspect(changeset) | |
| 33 | 32 | keys = case changeset.changes[:type] do |
| 34 | 33 | :gen_chaser_h -> changeset.changes[:class] |> hue_keys |
| 35 | 34 | :gen_solid_h -> changeset.changes[:class] |> hue_keys |
Parents: 4e46c7d