code stringlengths 3 6.57k |
|---|
print([np.around(float(val) |
cluster_EF_index_dict.get(zeolite) |
make_parity_plot(np.array(np.reshape(FF_f, [-1, 3]) |
np.array(np.reshape(DFT_f, [-1, 3]) |
np.array(np.reshape(FF_f, [-1, 3]) |
np.array(np.reshape(DFT_f, [-1, 3]) |
open(output_path + '/forces_%s.pickle' % numb_skip, 'wb') |
pickle.dump(force_dict, f) |
time.perf_counter() |
print(f"Program terminated in {toc - tic:0.4f} seconds") |
func() |
read(folder_path + '/%s.traj' % traj_name, '0::%s' % numb_skip) |
read(folder_path + '/%s.traj' % traj_name, '-1') |
DFT_E.append(atoms.calc.results['energy']) |
np.exp(-(np.array(DFT_E) |
len(traj[0]) |
plt.plot(DFT_E, weight, 'o') |
plt.xlabel('DFT electronic energies (eV) |
plt.ylabel('Boltzmann weighting', fontsize=16) |
plt.show() |
bitbay (Exchange) |
describe(self) |
self.deep_extend(super(bitbay, self) |
describe() |
fetch_balance(self, params={}) |
self.privatePostInfo() |
list(self.currencies.keys() |
range(0, len(codes) |
self.account() |
float(balance[id]['available']) |
float(balance[id]['locked']) |
self.sum(account['free'], account['used']) |
self.parse_balance(result) |
ExchangeError(self.id + ' empty balance response ' + self.json(response) |
fetch_order_book(self, symbol, limit=None, params={}) |
self.market_id(symbol) |
self.parse_order_book(orderbook) |
fetch_ticker(self, symbol, params={}) |
self.market_id(symbol) |
self.milliseconds() |
self.safe_float(ticker, 'volume') |
self.safe_float(ticker, 'vwap') |
self.safe_float(ticker, 'last') |
self.iso8601(timestamp) |
self.safe_float(ticker, 'max') |
self.safe_float(ticker, 'min') |
self.safe_float(ticker, 'bid') |
self.safe_float(ticker, 'ask') |
self.safe_float(ticker, 'average') |
parse_trade(self, trade, market) |
self.iso8601(timestamp) |
fetch_trades(self, symbol, since=None, limit=None, params={}) |
self.market(symbol) |
self.parse_trades(response, market, since, limit) |
create_order(self, symbol, type, side, amount, price=None, params={}) |
ExchangeError(self.id + ' allows limit orders only') |
self.market(symbol) |
cancel_order(self, id, symbol=None, params={}) |
self.privatePostCancel({'id': id}) |
is_fiat(self, currency) |
withdraw(self, code, amount, address, tag=None, params={}) |
self.check_address(address) |
self.load_markets() |
self.currency(code) |
self.is_fiat(code) |
str(tag) |
getattr(self, method) |
self.extend(request, params) |
sign(self, path, api='public', method='GET', params={}, headers=None, body=None) |
self.omit(params, self.extract_params(path) |
self.implode_params(path, params) |
self.urlencode(query) |
self.check_required_credentials() |
self.nonce() |
self.hmac(self.encode(body) |
self.encode(self.secret) |
handle_errors(self, httpCode, reason, url, method, headers, body) |
isinstance(body, basestring) |
len(body) |
if (body[0] == '{') |
or (body[0] == '[') |
json.loads(body) |
self.json(response) |
ExchangeError(feedback) |
StackedRNNCells(Layer) |
keras.layers.LSTMCell(output_dim) |
keras.layers.LSTMCell(output_dim) |
keras.layers.LSTMCell(output_dim) |
keras.Input((timesteps, input_dim) |
keras.layers.RNN(cells) |
__init__(self, cells, **kwargs) |
hasattr(cell, 'call') |
hasattr(cell, 'state_size') |
super(StackedRNNCells, self) |
__init__(**kwargs) |
state_size(self) |
hasattr(cell.state_size, '__len__') |
list(cell.state_size) |
state_size.append(cell.state_size) |
tuple(state_size) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.