fedhere / LSSTunknowns

metrics to test if Rubin LSST surveys support the discovery of anomalies
1 stars 1 forks source link

variable undefined in contour_plot_LS #5

Open fedhere opened 2 years ago

fedhere commented 2 years ago

in the for loop d is undefined and the notebook does not work

FabioRagosta commented 2 years ago

for j,(d,t) in enumerate(zip([ './Anomaliesv2.0_LSplot_v2/_sims_maf_fbs_2_0_vary_nes_vary_nes_nesfrac1_00_v2_0_10yrs_db_LS_newrun_proposalID_1_and_note_not_like_DD_and_nightgt_0_and_nightlt730_USER.npz', './Anomaliesv2.0_LSplot_v2/_sims_maf_fbs_2_0_baseline_baseline_v2_0_10yrs_db_LS_newrun_proposalID_1_and_note_not_like_DD_and_nightgt_0_and_nightlt730_USER.npz', './Anomaliesv2.0_LSplot_v2/_sims_maf_fbs_2_0_vary_expt_vary_expt_v2_0_10yrs_db_LS_newrun_proposalID_1_and_note_not_like_DD_and_nightgt_0_and_nightlt730_USER.npz'], ['vary_nes_nesfrac1_00','baseline','vary_expt'])):

Do you mean in this loop?

fedhere commented 2 years ago

yeah - try to restart the notebook and run it all. it will stop at that loop. I think i solved it tho and made some other enhancement - would you like me to try a pull request? (however I do not know how to solve the other issue on the other plot: undefined family)


federica b. bianco http://fbb.space/ http://fbb.space/


                                 -                         _`
                               `+*-                       ;*;
                              `o**=                  `   :**o.
                 `.~.`        ;*ooo`                ~~  .o*oo=
                `-----~       =oio*                ~--` :ooo**.^`

; .------:oee;---^ :e*i!?oi^ + -io**= $$i. `.:;---~ +=_---.*ee?!i+ i: -eo*oe; .~^ $OOOe_ -__++_- ^-. ^ .~_:_.-*!!e*~ ~_~i?eo*o~ `---^ $OOOOO?;` -----^ `-^ ^__:-` ^~ ~;. .*ee: -. -!?eo** ^---- $OOOOOOO$i. `~-^ ^.^`^--_^ _- ^=- `~:;;+++^ -- _!?***: --~` :_;o?OOOOO$*- `_:-~^ ~. ~:- ;o.:+:~~i+++_;_ .ie**+ ^;!OOOOO!_ :i^ i: -- ^e+:.= ~o ^::``. .=%OOOO?o: ;. `..~i$o^..^+ ;++++___. _eOOOOo^ .:ie%?!e?_;+_oo=^_. ^ -i*o ~o$OO$*:..-^ .-::=e$$!=- io**eo*: ^ ~;:~oii~ ~::~ ^?OOOOOOOO%$OOOO%o:^ +_ :oeo+ .:- :=+~.::.++++. `;i$O?%O%=ioe?$%e=~ oo^ +oooo; .ioi^^--` ^++++ ^-~ ; =Oi `~;o!=^~=^ ooo ~*ioo= ^.^ ;+++ --- ;%%- ~o= oeoo:.;~ i*oii^ :++- .-- +$~ .. ;e; iii: `.~ .^ ~--. ^;%=~;++++:` ^ ~+:--`-^;o!*+- :; . `;++-. ^ .-_+:~ _;~ --^ ^:++_-^ ^-;_ ..``~-. -_-. ;;-~ .-- ^---` __-- --_~--` ^--;-~ ----^ .-^ . ~+_--^

                      `                      -;---.
          ^--^
                                             `_---~
           .`
                                              ^---.
      ``
                                               `~-`
     `++.
                                                 .
     ^++_   -~

      ~:-   ~~

        `

         ^.

         ^_.

          --~

          ~-^

          `^

Please consider the environment before printing this e-mail

On Thu, Jul 28, 2022 at 4:54 PM FabioRagosta @.***> wrote:

for j,(d,t) in enumerate(zip([ './Anomaliesv2.0_LSplot_v2/_sims_maf_fbs_2_0_vary_nes_vary_nes_nesfrac1_00_v2_0_10yrs_db_LS_newrun_proposalID_1_and_note_not_like_DD_and_nightgt_0_and_nightlt730_USER.npz',

'./Anomaliesv2.0_LSplot_v2/_sims_maf_fbs_2_0_baseline_baseline_v2_0_10yrs_db_LS_newrun_proposalID_1_and_note_not_like_DD_and_nightgt_0_and_nightlt730_USER.npz',

'./Anomaliesv2.0_LSplot_v2/_sims_maf_fbs_2_0_vary_expt_vary_expt_v2_0_10yrs_db_LS_newrun_proposalID_1_and_note_not_like_DD_and_nightgt_0_and_nightlt730_USER.npz'], ['vary_nes_nesfrac1_00','baseline','vary_expt'])):

Do you mean in this loop?

— Reply to this email directly, view it on GitHub https://github.com/fedhere/LSSTunknowns/issues/5#issuecomment-1198669645, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM6JBVJNKXPXVQVXMNUPUTVWL6RNANCNFSM546AFIIA . You are receiving this because you were assigned.Message ID: @.***>

FabioRagosta commented 2 years ago

it is weird, it should be defined from the zip([],[]), and takes elements from the first array. I uploaded the updated version of the other notebook, there was a cell missing.

FabioRagosta commented 2 years ago

sure, do a pull request.

fedhere commented 2 years ago

Hi Fabio. Before you push a notebook you must restart it and run it from the top to the button. Always use the Restart and run all button. Otherwise it’s almost guaranteed you will push broken notebooks. My version is uploaded with the _FED in the name. I cleaned the code snd improved the graphic for printing

F

On Thu, Jul 28, 2022 at 5:00 PM FabioRagosta @.***> wrote:

sure, do a pull request.

— Reply to this email directly, view it on GitHub https://github.com/fedhere/LSSTunknowns/issues/5#issuecomment-1198673598, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM6JBT5HM2YBUMPWRJBJSTVWL7INANCNFSM546AFIIA . You are receiving this because you were assigned.Message ID: @.***>

--


federica b. bianco http://fbb.space/ http://fbb.space/


                                 -                         _`
                               `+*-                       ;*;
                              `o**=                  `   :**o.
                 `.~.`        ;*ooo`                ~~  .o*oo=
                `-----~       =oio*                ~--` :ooo**.^`

; .------:oee;---^ :e*i!?oi^ + -io**= $$i. `.:;---~ +=_---.*ee?!i+ i: -eo*oe; .~^ $OOOe_ -__++_- ^-. ^ .~_:_.-*!!e*~ ~_~i?eo*o~ `---^ $OOOOO?;` -----^ `-^ ^__:-` ^~ ~;. .*ee: -. -!?eo** ^---- $OOOOOOO$i. `~-^ ^.^`^--_^ _- ^=- `~:;;+++^ -- _!?***: --~` :_;o?OOOOO$*- `_:-~^ ~. ~:- ;o.:+:~~i+++_;_ .ie**+ ^;!OOOOO!_ :i^ i: -- ^e+:.= ~o ^::``. .=%OOOO?o: ;. `..~i$o^..^+ ;++++___. _eOOOOo^ .:ie%?!e?_;+_oo=^_. ^ -i*o ~o$OO$*:..-^ .-::=e$$!=- io**eo*: ^ ~;:~oii~ ~::~ ^?OOOOOOOO%$OOOO%o:^ +_ :oeo+ .:- :=+~.::.++++. `;i$O?%O%=ioe?$%e=~ oo^ +oooo; .ioi^^--` ^++++ ^-~ ; =Oi `~;o!=^~=^ ooo ~*ioo= ^.^ ;+++ --- ;%%- ~o= oeoo:.;~ i*oii^ :++- .-- +$~ .. ;e; iii: `.~ .^ ~--. ^;%=~;++++:` ^ ~+:--`-^;o!*+- :; . `;++-. ^ .-_+:~ _;~ --^ ^:++_-^ ^-;_ ..``~-. -_-. ;;-~ .-- ^---` __-- --_~--` ^--;-~ ----^ .-^ . ~+_--^

                      `                      -;---.
          ^--^
                                             `_---~
           .`
                                              ^---.
      ``
                                               `~-`
     `++.
                                                 .
     ^++_   -~

      ~:-   ~~

        `

         ^.

         ^_.

          --~

          ~-^

          `^

Please consider the environment before printing this e-mail