Skip to content

Commit 6789e34

Browse files
author
Yves Ulrich Tittes
committed
updated Readme
1 parent 6967e6e commit 6789e34

File tree

4 files changed

+55
-4
lines changed

4 files changed

+55
-4
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
dist/

.goreleaser.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
4+
# The lines below are called `modelines`. See `:help modeline`
5+
# Feel free to remove those if you don't want/need to use them.
6+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
8+
9+
version: 2
10+
11+
before:
12+
hooks:
13+
# You may remove this if you don't use go modules.
14+
- go mod tidy
15+
# you may remove this if you don't need go generate
16+
- go generate ./...
17+
18+
builds:
19+
- env:
20+
- CGO_ENABLED=0
21+
goos:
22+
- linux
23+
- windows
24+
- darwin
25+
26+
archives:
27+
- format: tar.gz
28+
# this name template makes the OS and Arch compatible with the results of `uname`.
29+
name_template: >-
30+
{{ .ProjectName }}_
31+
{{- title .Os }}_
32+
{{- if eq .Arch "amd64" }}x86_64
33+
{{- else if eq .Arch "386" }}i386
34+
{{- else }}{{ .Arch }}{{ end }}
35+
{{- if .Arm }}v{{ .Arm }}{{ end }}
36+
# use zip for windows archives
37+
format_overrides:
38+
- goos: windows
39+
format: zip
40+
41+
changelog:
42+
sort: asc
43+
filters:
44+
exclude:
45+
- "^docs:"
46+
- "^test:"

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ Small tool to move some of the data and the metadata that EPU usually keeps on t
1212
* Atlas Mountpoint(Optional): Depending on your setup these might be on a different system or not, so it really depends - in the setup this was written for they have their own partition.
1313

1414
## Flags:
15-
* --i wants your EPU folder
16-
* --o should point to your data folder (where full datasets are output to)
17-
* --a Optional, if you want an Atlas and have it on a different directory.
15+
* --i point to your EPU folder on the microscope computer
16+
* --o point to your dataset folder (where full datasets are output to) TFS typical: "OffloadData". This one is usually NOT on the microscope computer
17+
* --a Optional, point to atlas folder if you want the overview atlas with your data. Sometimes these can also be in the EPU folder - in that case point it there. The flag is required to be set if you want the atlas.
18+
19+
## Where and how o deploy
20+
Depending on your setup and the mountpoints you can run this on a (linux) machine that has access to both the datasets and the EPU folders (and the atlas one if you want those). Alternatively it is Windows compatible so you can directly run it on the mircoscope computer. We recommend using task scheduler, systemd or similar to automatize it in the background. Running every 15-20 minutes has worked well in our experience (even with a lot of datasets runtime of the merger should be <5 min).
1821

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ func getAtlas(yPath string, atlas string, xPath string) error {
304304
switch runtime.GOOS {
305305
case "windows":
306306
fullpath = value
307-
// if os not windows change the Windows path to a linux one (if required) and change drive D:\ start to mountpoint *aFlag
307+
// if os not windows change the Windows path to a linux compatible one and change drive to mountpoint *aFlag
308308
default:
309309
atlasdm := strings.ReplaceAll(value, `\`, string(filepath.Separator))
310310
if len(atlasdm) > 1 && atlasdm[1] == ':' {

0 commit comments

Comments
 (0)