bwinkel / pycraf

pycraf is a package that provides functions and procedures for various tasks in spectrum-management compatibility studies.
35 stars 15 forks source link

Error running 03a_path_propagation_basic #36

Closed pmcculey closed 3 years ago

pmcculey commented 3 years ago

I'm sure I'm not seeing something basic......

In cell 186 I get the following error:

ValueError Traceback (most recent call last)

in 29 30 tot_loss = pathprof.loss_complete(pprop, G_t, G_r) ---> 31 attens[idx] = apu.Quantity(tot_loss).value ValueError: setting an array element with a sequence.
bwinkel commented 3 years ago

Thank you @pmcculey. I think you took the notebook from an older release, right? I fixed the issue with the JSON error, so you should be able to download the notebook from master, which has the above issue corrected (needs a tuple around the rvalue: attens[idx] = apu.Quantity(tot_loss).value). Please let us know, if this fixes it.