Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly import pyOpenMS #278

Closed
Kastakin opened this issue May 13, 2022 · 13 comments
Closed

Explicitly import pyOpenMS #278

Kastakin opened this issue May 13, 2022 · 13 comments

Comments

@Kastakin
Copy link
Contributor

Kastakin commented May 13, 2022

Star imports are a bad practice and should be avoided in the examples proposed in the documentation.

While learning the OpenMS framework I usually imported the package with import pyopenms as ms, maybe it's possible to decide on a two letter identifier to import the package.

I can work on the issue if it's considered worth by everyone and not just me!

@jpfeuffer
Copy link
Contributor

Totally agree. And I like ms.

@timosachsenberg
Copy link
Contributor

good point! agree

@tjeerdijk
Copy link
Contributor

Same here. It has always annoyed me that the star import does not make explicit which functions or methods from OpenMS are being used in the examples.

@tapaswenipathak
Copy link
Contributor

Should @greengypsy or I takeover this issue?

@timosachsenberg
Copy link
Contributor

@Kastakin did you already move forward here? Just checking because I would like to prevent duplicated work if @tapaswenipathak or @greengypsy take over.

@Kastakin
Copy link
Contributor Author

Kastakin commented Jun 1, 2022

Sorry for the late reply, I'm having a busy month due to some university workshops. I think I'll be able to work on the task from the 12th of June forward.

If you intend to start working on it maybe I can join in later if we coordinate properly!

@timosachsenberg
Copy link
Contributor

I leave this to @tapaswenipathak or @greengypsy to decide. Not super high priority but nice to have.

@tapaswenipathak
Copy link
Contributor

tapaswenipathak commented Jun 1, 2022 via email

@JeeH-K
Copy link
Contributor

JeeH-K commented May 8, 2023

@timosachsenberg
Could you help me understand this issue a bit closer? We just want to change all the example codes in the pyopenms-docs repository as import pyopenms as ms from from pyopenms import *?

@jpfeuffer
Copy link
Contributor

jpfeuffer commented May 8, 2023

Yes, either this and then use ms.MSExperiment() etc.
Or just import what is needed (from pyopenms import MSExperiment, FileHandler, ...)

@tjeerdijk
Copy link
Contributor

tjeerdijk commented May 8, 2023 via email

@JeeH-K
Copy link
Contributor

JeeH-K commented May 9, 2023

Thanks for the clarifications! My vote for abbreviation is on poms ;)
Since I'm quite occupied this week, I'll start working on it in the next sprint. Hope that's okay.

@timosachsenberg
Copy link
Contributor

haha that is funny - I personally used oms so far ( I guess because it sounds more like a mantra (and poms like the small town Boms ;) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

7 participants