Skip to content

Commit

Permalink
APS1 pattern is APSPattern
Browse files Browse the repository at this point in the history
Or is it worth renaming all APS*** to APS1***?
  • Loading branch information
Diego Ristè committed Jan 3, 2018
1 parent 7df452a commit 5adc0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QGL/ChannelLibraries.py
Expand Up @@ -228,7 +228,7 @@ def load_from_library(self, return_only=False):
params = {k: v for k,v in channel.items() if k in Channels.PhysicalQuadratureChannel.__atom_members__.keys()}
params["label"] = name + "-" + chan_name
params["instrument"] = name
params["translator"] = instr["type"] + "Pattern"
params["translator"] = 'APSPattern' if instr['type'] == 'APS1' else instr['type'] + 'Pattern'
params["__module__"] = "QGL.Channels"
params["__class__"] = "PhysicalQuadratureChannel"
channel_dict[params["label"]] = params
Expand Down

0 comments on commit 5adc0d1

Please sign in to comment.