Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Developer_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@


### Feedback
Comments and concenrns can be posted on our GitHib page: https://github.com/ODM2/ODM2StreamingDataLoader/issues.
Comments and concerns can be posted on our GitHib page: https://github.com/ODM2/ODM2StreamingDataLoader/issues.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,13 @@ def mac_pyinstaller(Name = None, File = None):
'--noconfirm ' + File)

APP_DIR = os.path.join(MAC_DIR, 'Dist', Name+".app")
os.system("cp /Users/denversmith/miniconda/envs/SDL-env/lib/libwx_osx_cocoau-3.0.0.0.0.dylib %s" % os.path.join(APP_DIR, "Contents", "MacOS"))


#/Users/denversmith/miniconda/envs/SDL-env/lib/libwx_osx_cocoau-3.0.0.0.0.dylib
path = os.path.dirname(os.path.dirname(sys.executable))

python = os.path.join(path, 'lib', 'libwx_osx_cocoau-3.0.0.0.0.dylib')
os.system("cp %s %s" %(python, os.path.join(APP_DIR, "Contents", "MacOS")))

return True
except Exception as e:
Expand Down
6 changes: 3 additions & 3 deletions setup/Windows/sdl_setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
#define MyAppName "StreamingDataLoader"
#define MyAppInstaller "SDL"
#define MyWizExeName "SDLLoader"
#define MyAppVersion "v0.6.0-beta"
#define MyAppVersion "v0.7.0-beta"
#define MyAppPublisher "ODM2"
#define MyAppURL "https://github.com/ODM2/ODM2StreamingDataLoader"

#define MyAppDir "D:\DEV\SDL"
#define MyAppDir "D:\DEV\SDL\dist"


[Setup]
Expand All @@ -28,7 +28,7 @@ DefaultGroupName={#MyAppName}
LicenseFile={#MyAppDir}\LICENSE.txt
OutputBaseFilename={#MyAppInstaller}_{#MyAppVersion}_Installer
;SetupIconFile={#MyAppDir}\src\common\icons\SDL.ico
SetupIconFile=D:\DEV\Releases\SDL\sdl_beta_source_code\src\common\icons\SDL.ico
SetupIconFile=D:\DEV\SDL\src\common\icons\SDL.ico
Compression=lzma
SolidCompression=yes
OutputDir={#MyAppDir}\setup\Dist
Expand Down
2 changes: 1 addition & 1 deletion setup/hooks/hook-sqlalchemy.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

# Contributed by Greg Copeland

from PyInstaller.hooks.hookutils import exec_statement
from PyInstaller.utils.hooks import exec_statement

# include most common database bindings
# some database bindings are detected and include some
Expand Down
8 changes: 4 additions & 4 deletions src/StreamingDataLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

import os
import sys
sys.path.insert(0,os.path.dirname(os.path.dirname(__file__)))
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))

from argparse import ArgumentParser
import logging

from models.YamlConfiguration import YamlConfiguration
from controllers.Mapper import Mapper
from lib.Appdirs.appdirs import user_config_dir
from src.models.YamlConfiguration import YamlConfiguration
from src.controllers.Mapper import Mapper
from src.lib.Appdirs.appdirs import user_config_dir

import numpy as np

Expand Down
Empty file added src/asdf
Empty file.
4 changes: 2 additions & 2 deletions src/controllers/Mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import logging
import datetime
from dateutil.parser import parse
from handlers.csvHandler import CSVReader
from controllers.Database import Database
from src.handlers.csvHandler import CSVReader
from src.controllers.Database import Database

logger = logging.getLogger('SDL_logger')

Expand Down
2 changes: 1 addition & 1 deletion src/meta/data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
app_name = "Streaming Data Loader"
version = "0.6.0_Beta"
version = "0.7.0_Beta"
copyright = "Copyright (c) 2013 - 2015, Utah State University. All rights reserved."
description = "Streaming Data Loader a program for streaming continuous sensor data into an instance of the Observations Data Model (ODM)"

Expand Down
25 changes: 15 additions & 10 deletions src/wizard/controller/frmDatabaseConfigPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from src.wizard.controller.frmChainedDialogPage import ChainedDialogPage
from src.controllers.Database import Database

from urllib import quote_plus as urlquote

class DatabaseConfigPanel(ChainedDialogPage,
clsDBConfiguration):

Expand Down Expand Up @@ -39,23 +41,26 @@ def setInput(self, data):

def onTestConnection(self, event):
conn_dict = self.getFieldValues()
if self.validateInput(conn_dict['Database']):
try:
self.validateInput(conn_dict['Database'])
self.conn_dict = conn_dict
self.parent.nextButton.Enable(True)
else:
except:
self.parent.nextButton.Enable(False)

def sanitizeFieldValues(self, value):
value = value.replace(';','')
return value
message = "Invalid connection!"
title = "Connection Error"
ico = wx.ICON_EXCLAMATION
wx.MessageBox(message=message,
caption=title,
style=wx.OK | ico)

def getFieldValues(self):
conn_dict = {}
conn_dict['Engine'] = self.choices[self.cbDatabaseType.GetValue()] if self.cbDatabaseType.GetValue() != '' else ''
conn_dict['UserName'] = self.sanitizeFieldValues(str(self.txtUser.GetValue()))
conn_dict['Password'] = self.sanitizeFieldValues(str(self.txtPass.GetValue()))
conn_dict['Address'] = self.sanitizeFieldValues(str(self.txtServer.GetValue()))
conn_dict['DatabaseName'] = self.sanitizeFieldValues(str(self.txtDBName.GetValue()))
conn_dict['UserName'] = (str(self.txtUser.GetValue()))
conn_dict['Password'] = (str(self.txtPass.GetValue()))
conn_dict['Address'] = (str(self.txtServer.GetValue()))
conn_dict['DatabaseName'] = (str(self.txtDBName.GetValue()))
return {'Database': conn_dict}

def validateInput(self, conn_dict):
Expand Down
7 changes: 7 additions & 0 deletions src/wizard/controller/frmResultSummaryPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ def __populate_date_fields(self):
if self.existing_result is None:
return

if self.existing_result.SampledMediumCV is not None:
self.comboSamp.SetValue(self.existing_result.SampledMediumCV)

if self.existing_result.AggregationStatisticCV is not None:
self.comboAgg.SetValue(self.existing_result.AggregationStatisticCV)


# Set Result Date Time
if self.existing_result.ResultDateTime is not None:
year = self.existing_result.ResultDateTime.year
Expand Down
8 changes: 4 additions & 4 deletions src/wizard/view/clsResultPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def __init__( self, parent ):
bSizerX.Add( self.staticXUnits, 0, wx.ALL, 5 )

comboXUnitsChoices = []
self.comboXUnits = wx.ComboBox( sbSizerOpt.GetStaticBox(), wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, comboXUnitsChoices, 0 )
self.comboXUnits = wx.ComboBox( sbSizerOpt.GetStaticBox(), wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, comboXUnitsChoices, style=wx.CB_READONLY)
self.comboXUnits.SetMinSize(wx.Size(160, -1))

bSizerX.Add( self.comboXUnits, 0, wx.ALL, 5 )
Expand Down Expand Up @@ -278,7 +278,7 @@ def __init__( self, parent ):
bSizerY.Add( self.staticYUnits, 0, wx.ALL, 5 )

comboYUnitsChoices = []
self.comboYUnits = wx.ComboBox( sbSizerOpt.GetStaticBox(), wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, comboYUnitsChoices, 0 )
self.comboYUnits = wx.ComboBox( sbSizerOpt.GetStaticBox(), wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, comboYUnitsChoices, style=wx.CB_READONLY)
self.comboYUnits.SetMinSize( wx.Size( 160,-1 ) )

bSizerY.Add( self.comboYUnits, 0, wx.ALL, 5 )
Expand Down Expand Up @@ -307,7 +307,7 @@ def __init__( self, parent ):
bSizerZ.Add( self.m_staticText422110, 0, wx.ALL, 5 )

comboZUnitsChoices = []
self.comboZUnits = wx.ComboBox( sbSizerOpt.GetStaticBox(), wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, comboZUnitsChoices, 0 )
self.comboZUnits = wx.ComboBox( sbSizerOpt.GetStaticBox(), wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, comboZUnitsChoices, style=wx.CB_READONLY)
self.comboZUnits.SetMinSize( wx.Size( 160,-1 ) )

bSizerZ.Add( self.comboZUnits, 0, wx.ALL, 5 )
Expand All @@ -334,7 +334,7 @@ def __init__( self, parent ):
bSizerIntended.Add( self.m_staticText4221101, 0, wx.ALL, 5 )

comboIntendedUnitsChoices = []
self.comboIntendedUnits = wx.ComboBox( sbSizerOpt.GetStaticBox(), wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, comboIntendedUnitsChoices, 0 )
self.comboIntendedUnits = wx.ComboBox( sbSizerOpt.GetStaticBox(), wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, comboIntendedUnitsChoices, style=wx.CB_READONLY)
self.comboIntendedUnits.SetMinSize( wx.Size( 160,-1 ) )

bSizerIntended.Add( self.comboIntendedUnits, 0, wx.ALL, 5 )
Expand Down