Skip to content

Commit 6ca8e7e

Browse files
author
sreeder
committed
merging
2 parents e20faaf + f7c2386 commit 6ca8e7e

File tree

9 files changed

+24
-16
lines changed

9 files changed

+24
-16
lines changed

odmtools/controller/olvSeriesSelector.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,19 @@ def onKeyPress(self, evt):
4747
pass
4848

4949
def _buildColumns(self, columns):
50-
seriesColumns = [
51-
ColumnDefn(key, align="left", minimumWidth=100, valueGetter=key,
52-
# stringConverter = '%s')
53-
stringConverter='%Y-%m-%d %H:%M:%S' if ("date" in key.lower()) else '%s')
54-
for key in columns]
50+
series_columns = []
51+
for key in columns:
52+
col = ColumnDefn(title=key,
53+
minimumWidth=100,
54+
valueGetter=key,
55+
stringConverter=date_to_string if ("date" in key.lower()) else '%s')
5556

57+
series_columns.append(col)
5658

57-
self.SetColumns(seriesColumns)
59+
self.SetColumns(series_columns)
5860
self.CreateCheckStateColumn()
5961

6062
"""User can select series_service using the mouse to click on check boxes """
61-
6263
def _HandleLeftDownOnImage(self, rowIndex, subItemIndex):
6364
"""
6465
This is the same code, just added the original _HandleLeftDownOnImage in ObjectListView but
@@ -109,6 +110,11 @@ def GetModelObjects(self):
109110
return self._modelObjects if self._modelObjects else []
110111

111112

113+
def date_to_string(value):
114+
try:
115+
return value.strftime("%Y-%m-%d %H:%M:%S")
116+
except AttributeError:
117+
return ""
112118

113119

114120

odmtools/meta/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
app_name = "ODM2Tools"
2-
version = "2.0.0_Beta"
2+
version = "2.0.1_Beta"
33
copyright = "Copyright (c) 2013 - 2015, Utah State University. All rights reserved."
44
description = "ODMTools is a python application for managing observational data using the Observations Data Model. " \
55
"ODMTools allows you to query, visualize, and edit data stored in an Observations Data Model (ODM) database." \

odmtools/odmdata/memory_database.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ def get_annotations(self, query_db_again=False):
8181
annotation = self.series_service.get_annotations_by_result(resultid=result_id)
8282
self.results_annotations = annotation
8383

84+
return self.results_annotations
85+
86+
8487
def getDataValues(self):
8588
# TODO: fix me! this commit location is only temoporarily. should be flushing so that we can restore
8689
self.mem_service._session.commit()

odmtools/odmservices/edit_service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,6 @@ def overlapcalc(self, result, values, overwrite):
705705
def add_annotations(self, annolist):
706706
# match up with existing values and get value id
707707

708-
print("Adding Annotations")
709708
engine = self.memDB.series_service._session_factory.engine
710709

711710
q =self.memDB.series_service._session.query(TimeSeriesResultValues) \

setup/Windows/odmtools_console.iss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
#define MyAppName "ODM2Tools"
55

6-
#define MyAppVersion "2.0.0_Beta"
7-
#define MyAppExeLongName "ODM2Tools_2.0.0_Beta_win32_x86_64_console.exe"
6+
#define MyAppVersion "2.0.1_Beta"
7+
#define MyAppExeLongName "ODM2Tools_2.0.1_Beta_win32_x86_64_console.exe"
88
#define MyAppPublisher "ODM2"
99
#define MyAppURL "https://github.com/ODM2/ODMToolsPython"
1010
#define MyAppExeName "ODM2Tools.exe"

setup/Windows/odmtools_no_console.iss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
#define MyAppName "ODMTools"
66

7-
#define MyAppExeLongName "ODM2Tools_2.0.0_Beta_win32_x86_64.exe"
8-
#define MyAppVersion "2.0.0_Beta"
7+
#define MyAppExeLongName "ODM2Tools_2.0.1_Beta_win32_x86_64.exe"
8+
#define MyAppVersion "2.0.1_Beta"
99

1010
#define MyAppPublisher "ODM2"
1111
#define MyAppURL "https://github.com/ODM2/ODMToolsPython"

setup/Windows/odmtools_setup.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "ODM2Tools"
5-
#define MyAppVersion "2.0.0_Beta"
5+
#define MyAppVersion "2.0.1_Beta"
66
#define MyAppPublisher "ODM2"
77
#define MyAppURL "https://github.com/ODM2/ODMToolsPython"
88
#define MyAppExeName "ODM2Tools.exe"

setup/Windows/odmtools_setup_build.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#define MyAppName "ODM2Tools"
77
#define OrgName "UCHIC"
8-
#define MyAppVersion "v2.0.0-beta"
8+
#define MyAppVersion "v2.0.1-beta"
99
#define MyAppURL "https://github.com/ODM2/ODMToolsPython"
1010

1111
[Setup]

setup/Windows/test.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "ODM2Tools"
5-
#define MyAppVersion "2.0.0"
5+
#define MyAppVersion "2.0.1"
66
#define MyAppPublisher "My Company, Inc."
77
#define MyAppURL "http://www.example.com/"
88
#define MyAppExeName "ODM2Tools_console.exe"

0 commit comments

Comments
 (0)