Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
elixir
metadata-tools
Commits
24320e80
Commit
24320e80
authored
Oct 06, 2018
by
Pinar Alper
Browse files
Bumpversion config added
parent
fbd3c4e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
.bumpversion.cfg
0 → 100644
View file @
24320e80
[bumpversion]
commit = True
tag = True
current_version = 0.1.0-dev
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
serialize =
{major}.{minor}.{patch}-{release}
{major}.{minor}.{patch}
[bumpversion:file:setup.py]
[bumpversion:file:elixir_dcp/__init__.py]
[bumpversion:file:README.md]
[bumpversion:file:elixir_dcp/static/vendor/package.json]
[bumpversion:part:release]
optional_value = gamma
values =
dev
gamma
metadata_tools/importxls/from_owncohort_exporter.py
View file @
24320e80
...
...
@@ -7,15 +7,15 @@ from metadata_tools.importxls.export_utils import get_value_list_from_row, proce
class
FromOwncohortXlsExporter
(
DatasetExporter
):
def
export
(
self
,
full_file_path
):
submission_id
=
'IMP_OC_{}'
.
format
(
self
.
get_hash_for_path
(
full_file_path
))
#
submission_id = 'IMP_OC_{}'.format(self.get_hash_for_path(full_file_path))
book
=
pyexcel
.
get_book
(
file_name
=
full_file_path
)
idx
=
1
print
(
'----> {}'
.
format
(
full_file_path
))
while
idx
<
book
.
number_of_sheets
():
sheet
=
book
.
sheet_by_index
(
idx
)
dataset_data
=
{}
dataset_data
[
'source_type'
]
=
'Own_Cohort'
dataset_data
[
'
submission_id
'
]
=
submission_id
#
dataset_data['source_type'] = 'Own_Cohort'
dataset_data
[
'
dataset
'
]
=
submission_id
dataset_data
[
'local_custodian'
]
=
get_value_list_from_row
(
sheet
,
3
)
dataset_data
[
'title'
]
=
sheet
[
4
,
2
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment