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

Feature add config loader #35

Closed

Conversation

BrianKolowitz
Copy link
Contributor

No description provided.

@vsoch
Copy link
Member

vsoch commented Dec 23, 2017

Here is an idea... akin to the cleaner, what are your thoughts on having this be a class? Then you could have easy functions for adding, viewing a filter, saving, etc. It would be a good start to (eventually) plug into tools to help the user create, edit, and view recipes.

@@ -46,7 +46,7 @@
import dateutil.parser
import tempfile

from .utils import get_func, save_dicom
from .utils import get_func, save_dicom, setup_deid
from .actions import perform_action
from pydicom.dataset import Dataset
Copy link
Member

Choose a reason for hiding this comment

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

This function should live with the others to load the deid, not with general utils.

@@ -46,7 +46,7 @@
import dateutil.parser
Copy link
Member

Choose a reason for hiding this comment

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

Looks like the DS STORE file snuck in? You can add this to the gitignore and remove the file or when you add files don't add entire folders at once.

@@ -280,3 +280,9 @@ def get_item_timestamp(dicom,date_field=None,time_field=None):

return get_timestamp(item_date=item_date,
item_time=item_time)

def setup_deid(deid):
# if the user has provided a custom deid, load it
Copy link
Member

Choose a reason for hiding this comment

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

Please add a documentation snippet to the function, and do y think we should support loading a base (default does not) and optionally taking a list of then to combine? Is setup the most appropriate descriptor for the function ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vsoch I couldn't come up with a better name, but I don't think it's the most appropriate. I also don't like passing deid around with multiple meanings seems confusing to me when it sometimes refers to a file path and other times refers to the object.

Copy link
Member

Choose a reason for hiding this comment

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

I completely agree - let me give a first shot at making a class and I'll ping you for review. A class would be important to avoid needing to re-generate the final thing, and also to (eventually) plug into generators and editors. Back in a bit!

@BrianKolowitz
Copy link
Contributor Author

@vsoch I think that's a good idea, but likely won't be able to get to it until after the break.

@vsoch
Copy link
Member

vsoch commented Dec 23, 2017

haha no worries, I'll have something waiting for you when you get back then :) I also need to fix up the docs for the cleaner (that you couldn't find before) because I didn't properly write it down. Have a great break!! 🎅 🎄 ❄️ ⛄ 🕯️

@vsoch
Copy link
Member

vsoch commented Dec 24, 2017

okay the first dummy implementation is ready --> #37 It's likely not perfect, but when you are back let me know your feedback, and if the script and docs I provided for basic testing are missing in any detail.

@vsoch
Copy link
Member

vsoch commented Apr 24, 2018

Closing, not addressed or updated by creator.

@vsoch vsoch closed this Apr 24, 2018
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