Skip to content

Commit

Permalink
[new]
Browse files Browse the repository at this point in the history
* SpectraFox file format (.sfd)
* export possibility of grid spectra to SFD files
* separate data explorer for grid files
  • Loading branch information
chemicha committed Mar 31, 2017
1 parent 77cee08 commit f961e05
Show file tree
Hide file tree
Showing 51 changed files with 2,031 additions and 243 deletions.
Binary file modified artwork/icons/MyOwnIcons.pptx
Binary file not shown.
Binary file added artwork/icons/movie.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added artwork/icons/movie_16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added artwork/icons/movie_25.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion sourcecode/Build/x86/Debug/SpectroscopyManager.application
Expand Up @@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>Zcb+HZs8TwWKEWs9HdsYauF2t4AAA9V/E0RJW91o6bo=</dsig:DigestValue>
<dsig:DigestValue>jFbShhRUbtLMYqpnXrZdVt7sC/32W7yUeVhJ/VvsfBE=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified sourcecode/Build/x86/Debug/SpectroscopyManager.exe
Binary file not shown.
8 changes: 4 additions & 4 deletions sourcecode/Build/x86/Debug/SpectroscopyManager.exe.manifest
Expand Up @@ -151,14 +151,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="SpectroscopyManager.exe" size="3864064">
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="SpectroscopyManager.exe" size="3888128">
<assemblyIdentity name="SpectroscopyManager" version="2017.3.9.0" language="neutral" processorArchitecture="x86" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>g9O53EoPj/QLu5Mkkz5YuWyQyONmxK496J/LHsvlFEw=</dsig:DigestValue>
<dsig:DigestValue>pH2tU41e8cNSbq/grzlCvbKiUAk1r1rsVUux7rEFjlA=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down Expand Up @@ -186,13 +186,13 @@
</hash>
</dependentAssembly>
</dependency>
<file name="changelog_dev.html" size="2411">
<file name="changelog_dev.html" size="2917">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>sOw7wg1/MQLx7/5o3LpZS6F7BK4/J0IhwsYdDZF8a5g=</dsig:DigestValue>
<dsig:DigestValue>29cP9OVRdv7UJ7FY3kijOz7mVcvS325drzaBAl7pcXo=</dsig:DigestValue>
</hash>
</file>
<file name="changelog_stable.html" size="40535">
Expand Down
Binary file modified sourcecode/Build/x86/Debug/SpectroscopyManager.pdb
Binary file not shown.
Expand Up @@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>Zcb+HZs8TwWKEWs9HdsYauF2t4AAA9V/E0RJW91o6bo=</dsig:DigestValue>
<dsig:DigestValue>jFbShhRUbtLMYqpnXrZdVt7sC/32W7yUeVhJ/VvsfBE=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Expand Up @@ -151,14 +151,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="SpectroscopyManager.exe" size="3864064">
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="SpectroscopyManager.exe" size="3888128">
<assemblyIdentity name="SpectroscopyManager" version="2017.3.9.0" language="neutral" processorArchitecture="x86" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>g9O53EoPj/QLu5Mkkz5YuWyQyONmxK496J/LHsvlFEw=</dsig:DigestValue>
<dsig:DigestValue>pH2tU41e8cNSbq/grzlCvbKiUAk1r1rsVUux7rEFjlA=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down Expand Up @@ -186,13 +186,13 @@
</hash>
</dependentAssembly>
</dependency>
<file name="changelog_dev.html" size="2411">
<file name="changelog_dev.html" size="2917">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>sOw7wg1/MQLx7/5o3LpZS6F7BK4/J0IhwsYdDZF8a5g=</dsig:DigestValue>
<dsig:DigestValue>29cP9OVRdv7UJ7FY3kijOz7mVcvS325drzaBAl7pcXo=</dsig:DigestValue>
</hash>
</file>
<file name="changelog_stable.html" size="40535">
Expand Down
Binary file modified sourcecode/Build/x86/Debug/app.publish/SpectroscopyManager.exe
Binary file not shown.
11 changes: 11 additions & 0 deletions sourcecode/Build/x86/Debug/changelog_dev.html
Expand Up @@ -13,6 +13,17 @@
Change your update-channel in the "Help"-menu of the main window.
</span>

<p>
Version 2017.03.29.0<br />
<ol>
<li>[new] SpectraFox file format (.sfd)</li>
<li>[new] export possibility of grid spectra to SFD files</li>
<li>[new] separate data explorer for grid files</li>
<li>[improved] the scan image file viewer has now a new tab showing all header properties</li>
<li>[improved] the scan image viewer can now display an arbitrary property embed in the image</li>
</ol>
</p>

<p>
Version 2017.03.09.0<br />
<ol>
Expand Down
Binary file modified sourcecode/SpectroscopyManager/.vs/SpectroscopyManager/v14/.suo
Binary file not shown.
@@ -0,0 +1,123 @@
Imports Amib.Threading

''' <summary>
''' Base class for fetching a desired grid file in a background-thread
''' </summary>
Public Class cGridFileFetcher

#Region "Properties"
''' <summary>
''' GridFile Object
''' </summary>
Protected oGridFile As cGridFile

''' <summary>
''' Returns the currently loaded GridFile,
''' </summary>
Public Property CurrentGridFile As cGridFile
Get
Return Me.oGridFile
End Get
Set(value As cGridFile)
Me.oGridFile = value
End Set
End Property

''' <summary>
''' File-Object of the Grid-File
''' </summary>
Protected CurrentFileObject As cFileObject

''' <summary>
''' Priority of the background thread used.
''' </summary>
Private FetchThreadPriority As WorkItemPriority

''' <summary>
''' Currently used Threadpool to load data.
''' </summary>
Private _ThreadPool As SmartThreadPool

''' <summary>
''' Just fetch the header of the file?
''' Speeds things up, if data not needed!
''' </summary>
Private _FetchOnlyFileHeader As Boolean
#End Region

#Region "Constructor"
''' <summary>
''' Constructor takes the selected GridFile-FileObject.
''' Allows to hand over a Thread-Pool that is used to manage the
''' fetch-thread. If not set, or set to nothing, a separate,
''' non-managed thread will be used.
''' </summary>
Public Sub New(ByRef GridFile As cFileObject,
Optional ByRef ThreadPoolToUse As SmartThreadPool = Nothing,
Optional ByVal FetchPriority As WorkItemPriority = WorkItemPriority.Normal,
Optional ByVal FetchOnlyFileHeader As Boolean = False)
' Add file to local Object
Me.CurrentFileObject = GridFile
Me._ThreadPool = ThreadPoolToUse
Me.FetchThreadPriority = FetchPriority
Me._FetchOnlyFileHeader = FetchOnlyFileHeader
End Sub
#End Region

#Region "Events"
''' <summary>
''' Event that gets fired, when the GridFile was successfully loaded.
''' </summary>
Public Event FileFetchedComplete(ByRef GridFile As cGridFile)
#End Region

#Region "File Fetch Function"

''' <summary>
''' Starts the fetching procedure for the selected File. (ASYNC)
''' </summary>
Public Sub FetchAsync()

' If no thread-pool is definied, use a non-managed thread to load the data.
If Me._ThreadPool Is Nothing Then
Dim NonMangedThread As New Threading.Thread(AddressOf Me.FileFetcherSub)
NonMangedThread.Start(Me.CurrentFileObject)
Else
' Send FileObject to ThreadPoolQueue
Me._ThreadPool.QueueWorkItem(AddressOf Me.FileFetcher,
Me.CurrentFileObject,
Me.FetchThreadPriority)
End If

End Sub

''' <summary>
''' Starts the fetching procedure for the selected file (DIRECT)
''' </summary>
Public Sub FetchDirect()
Me.FileFetcherSub(Me.CurrentFileObject)
End Sub

''' <summary>
''' Spectroscopy File Fetcher to load the Gridfile.
''' </summary>
Private Function FileFetcher(FileObjectToLoad As Object) As Object
Dim oFileObjectToLoad As cFileObject = CType(FileObjectToLoad, cFileObject)

' Load the file from disk
Me.oGridFile = Nothing
If cFileImport.GetGridFile(oFileObjectToLoad, oGridFile, Me._FetchOnlyFileHeader) Then
RaiseEvent FileFetchedComplete(Me.oGridFile)
End If
Return Nothing
End Function

''' <summary>
''' Sub-Delegate version
''' </summary>
Private Sub FileFetcherSub(FileObjectToLoad As Object)
Me.FileFetcher(FileObjectToLoad)
End Sub
#End Region

End Class
Expand Up @@ -374,6 +374,7 @@ Public Class cFileImportNanonisGrid
Else
.Name = oGridFile.SweepSignalColumn
End If
SweepSignalColumn.IsSpectraFoxGenerated = False
End With
' Add the SpectroscopyTable to the GridFile
DuplicatedSpectroscopyTable.AddNonPersistentColumn(SweepSignalColumn)
Expand All @@ -394,6 +395,7 @@ Public Class cFileImportNanonisGrid
.Name = oGridFile.ChannelsRecorded(i)
End If

DataColumn.IsSpectraFoxGenerated = False
End With
DuplicatedSpectroscopyTable.AddNonPersistentColumn(DataColumn)
Next
Expand Down

0 comments on commit f961e05

Please sign in to comment.