Skip to content

Commit

Permalink
merging
Browse files Browse the repository at this point in the history
  • Loading branch information
sreeder committed Feb 8, 2017
2 parents e20faaf + f7c2386 commit 6ca8e7e
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 16 deletions.
20 changes: 13 additions & 7 deletions odmtools/controller/olvSeriesSelector.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,19 @@ def onKeyPress(self, evt):
pass

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

series_columns.append(col)

self.SetColumns(seriesColumns)
self.SetColumns(series_columns)
self.CreateCheckStateColumn()

"""User can select series_service using the mouse to click on check boxes """

def _HandleLeftDownOnImage(self, rowIndex, subItemIndex):
"""
This is the same code, just added the original _HandleLeftDownOnImage in ObjectListView but
Expand Down Expand Up @@ -109,6 +110,11 @@ def GetModelObjects(self):
return self._modelObjects if self._modelObjects else []


def date_to_string(value):
try:
return value.strftime("%Y-%m-%d %H:%M:%S")
except AttributeError:
return ""



Expand Down
2 changes: 1 addition & 1 deletion odmtools/meta/data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
app_name = "ODM2Tools"
version = "2.0.0_Beta"
version = "2.0.1_Beta"
copyright = "Copyright (c) 2013 - 2015, Utah State University. All rights reserved."
description = "ODMTools is a python application for managing observational data using the Observations Data Model. " \
"ODMTools allows you to query, visualize, and edit data stored in an Observations Data Model (ODM) database." \
Expand Down
3 changes: 3 additions & 0 deletions odmtools/odmdata/memory_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ def get_annotations(self, query_db_again=False):
annotation = self.series_service.get_annotations_by_result(resultid=result_id)
self.results_annotations = annotation

return self.results_annotations


def getDataValues(self):
# TODO: fix me! this commit location is only temoporarily. should be flushing so that we can restore
self.mem_service._session.commit()
Expand Down
1 change: 0 additions & 1 deletion odmtools/odmservices/edit_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,6 @@ def overlapcalc(self, result, values, overwrite):
def add_annotations(self, annolist):
# match up with existing values and get value id

print("Adding Annotations")
engine = self.memDB.series_service._session_factory.engine

q =self.memDB.series_service._session.query(TimeSeriesResultValues) \
Expand Down
4 changes: 2 additions & 2 deletions setup/Windows/odmtools_console.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#define MyAppName "ODM2Tools"

#define MyAppVersion "2.0.0_Beta"
#define MyAppExeLongName "ODM2Tools_2.0.0_Beta_win32_x86_64_console.exe"
#define MyAppVersion "2.0.1_Beta"
#define MyAppExeLongName "ODM2Tools_2.0.1_Beta_win32_x86_64_console.exe"
#define MyAppPublisher "ODM2"
#define MyAppURL "https://github.com/ODM2/ODMToolsPython"
#define MyAppExeName "ODM2Tools.exe"
Expand Down
4 changes: 2 additions & 2 deletions setup/Windows/odmtools_no_console.iss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#define MyAppName "ODMTools"

#define MyAppExeLongName "ODM2Tools_2.0.0_Beta_win32_x86_64.exe"
#define MyAppVersion "2.0.0_Beta"
#define MyAppExeLongName "ODM2Tools_2.0.1_Beta_win32_x86_64.exe"
#define MyAppVersion "2.0.1_Beta"

#define MyAppPublisher "ODM2"
#define MyAppURL "https://github.com/ODM2/ODMToolsPython"
Expand Down
2 changes: 1 addition & 1 deletion setup/Windows/odmtools_setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "ODM2Tools"
#define MyAppVersion "2.0.0_Beta"
#define MyAppVersion "2.0.1_Beta"
#define MyAppPublisher "ODM2"
#define MyAppURL "https://github.com/ODM2/ODMToolsPython"
#define MyAppExeName "ODM2Tools.exe"
Expand Down
2 changes: 1 addition & 1 deletion setup/Windows/odmtools_setup_build.iss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#define MyAppName "ODM2Tools"
#define OrgName "UCHIC"
#define MyAppVersion "v2.0.0-beta"
#define MyAppVersion "v2.0.1-beta"
#define MyAppURL "https://github.com/ODM2/ODMToolsPython"

[Setup]
Expand Down
2 changes: 1 addition & 1 deletion setup/Windows/test.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "ODM2Tools"
#define MyAppVersion "2.0.0"
#define MyAppVersion "2.0.1"
#define MyAppPublisher "My Company, Inc."
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "ODM2Tools_console.exe"
Expand Down

0 comments on commit 6ca8e7e

Please sign in to comment.