Remove "asdf" mention from limr.py

This commit is contained in:
Kumi 2024-02-05 11:47:50 +01:00
parent b3e542d2f6
commit 8284dcb5bb
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -20,6 +20,7 @@ import datetime # to generate timestamps for parsweeps
import h5py # to have organized data storage.....
import numpy as np # ...
import matplotlib.pyplot as plt
import pathlib
class limr():
@ -242,13 +243,11 @@ class limr():
self.HDF.load(self.HDFfile)
# helper functoin to guess the savepath from the file. This should not be called, since it should be obtained from the output of the program call
# helper function to guess the savepath from the file. This should not be called, since it should be obtained from the output of the program call
def __guess_savepath(self):
savepath = getattr(self,'spt')
if savepath == []: savepath = './asdf/' # not recommended here: knowledge about the standard directory in the cpp file.... could be parsed, but user will usually provide a folder to limr.spt
if savepath[-1] != '/': savepath += '/' # and that little fix since users seldomly put the '/' for the directory...
savepath = savepath + getattr(self,'fst') + '_' + getattr(self,'fpa') + '.h5'
return savepath
savepath = pathlib.Path(getattr(self,'spt'))
savepath = savepath / (getattr(self,'fst') + '_' + getattr(self,'fpa') + '.h5')
return str(savepath)
# run for one single constellation
def __run_single(self, oup = True):