Skip to content

Updates on zemrude - #971

Open
mcidlaso wants to merge 11 commits into
next-exp:masterfrom
mcidlaso:master
Open

mcidlaso wants to merge 11 commits into
next-exp:masterfrom
mcidlaso:master

Conversation

@mcidlaso

Copy link
Copy Markdown
Contributor

This PR contains some changes done in zemrude to: add a new config file for MC, address some errors arising from the new python version, include a new function to merge maps and add new arguments to set S2e range in control plots.

Comment thread invisible_cities/cities/zemrude.py Outdated
Comment on lines +176 to +179
apply_nan_cut = fl.map( select_no_nan()
,item = 'dst'
)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this you can do directly like fl.map(discard_nan_values, item = 'dst')

Comment on lines +737 to +739
return pd.DataFrame( dict( mu = new_mu
, nevents = df.nevents.sum())
, index=[0])

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment

Comment on lines +49 to +53
kdst = kdst[~(kdst.DT.isna())]
kdst = kdst[~(kdst.X.isna())]
kdst_nan = kdst[~(kdst.Y.isna())]

return kdst_nan

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is the last selection special and gets a different name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants