Skip to content

Conversation

@scaramallion
Copy link
Member

Describe the changes

setup.py Outdated
long_description = long_description,
long_description_content_type="text/x-rst",
author = "",
author_email = "FIXME",
Copy link
Member Author

Choose a reason for hiding this comment

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

What would you like here @darcymason?

Copy link
Member Author

Choose a reason for hiding this comment

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

Also, if I've jumped the gun here, just tell me

Copy link
Member

Choose a reason for hiding this comment

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

I'm just catching up now, but I like the concepts...

@@ -0,0 +1,3 @@

from datasets._version import __version__
from datasets.utils import Interface
Copy link
Member Author

@scaramallion scaramallion Jul 22, 2020

Choose a reason for hiding this comment

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

Not sure about the import name datasets, but it can be changed easily

Copy link
Member

Choose a reason for hiding this comment

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

I would stick with longer but more specific, so the user knows what kind of datasets, and so they are able to install alongside other packages. Maybe pip install pydicom-datasets, to then import to pydicom_datasets?

Copy link
Member

Choose a reason for hiding this comment

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

Or seeing pydicom-data below... just call it that! :)

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, would really like to avoid the name 'dataset(s)' given the obvious confusion with DICOM datasets. Maybe data_store, file_data, DICOM_file_store, ... some combination of those kinds of words?

Copy link
Member Author

Choose a reason for hiding this comment

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

dcmstore?

Copy link
Member

@vsoch vsoch Jul 23, 2020

Choose a reason for hiding this comment

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

If the module is called dicom store, I would expect it to also be able
to create or otherwise interact with said stores (e.g. https://cloud.google.com/healthcare/docs/how-tos/dicom). But if it’s just a data library, the name should probably reflect that and be something with data or datasets (branded for pydicom)... unless you again want to advertise that it can be used in other ways external to it.

Copy link
Member Author

@scaramallion scaramallion Jul 23, 2020

Choose a reason for hiding this comment

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

Changed to data_store


# Backup files
*~

Copy link
Member

Choose a reason for hiding this comment

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

No __pycache__?

Copy link
Member Author

Choose a reason for hiding this comment

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

I just copied it from pydicom and added a little bit extra

Copy link
Member

Choose a reason for hiding this comment

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

It would be good to add it then.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

setup.py Outdated
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Copy link
Member

Choose a reason for hiding this comment

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

should 3.9 be part of the matrix, or is this a future TODO?

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed, mainly just there for the future

Copy link
Member

@darcymason darcymason left a comment

Choose a reason for hiding this comment

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

Looks good ... I just don't like the datasets name for sure. If we can come up with something good for that, I'm in. I'll probably add the general comments on the pydicom PR, where things are a bit more complex. But I've reviewed that too and it looks pretty good.

self.data_path = os.path.abspath(
os.path.join(cur_dir, "../", "../", "data")
)

Copy link
Member

Choose a reason for hiding this comment

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

Might prefer pathlib for managing the paths here, as I think it is likely easier to follow and maintain in future, but no big deal one way or the other.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@@ -0,0 +1,3 @@

from datasets._version import __version__
from datasets.utils import Interface
Copy link
Member

Choose a reason for hiding this comment

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

Yeah, would really like to avoid the name 'dataset(s)' given the obvious confusion with DICOM datasets. Maybe data_store, file_data, DICOM_file_store, ... some combination of those kinds of words?



class Interface:
"""Interface to pydicom-data.
Copy link
Member

Choose a reason for hiding this comment

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

Depending on the other name discussion above, maybe something a little more specific for the class name: DataInterface, DataStoreInterface, even just DataStore, given any class defines an interface.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, went with DataStore

Copy link
Member

@darcymason darcymason left a comment

Choose a reason for hiding this comment

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

Looks good - just suggestions for converting all os.path etc. to pathlib - I think it is easier to read and would be nice not to mix os.path.X and pathlib.

def setup(self):
cur_dir = os.path.dirname(os.path.realpath(__file__))
self.data_path = Path(cur_dir).joinpath("..", "..", "data").resolve()

Copy link
Member

Choose a reason for hiding this comment

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

can simplify similar to other pathlib ...

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@darcymason darcymason merged commit e0cf7a2 into pydicom:master Jul 24, 2020
@scaramallion scaramallion deleted the dev-package branch July 24, 2020 09:17
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.

3 participants